@imihai/angular-datetime-picker 22.0.8 → 22.2.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ViewContainerRef, OnInit, EventEmitter, ElementRef, ComponentRef, EmbeddedViewRef, Signal, Injector, TemplateRef, InjectionToken, AfterContentInit, OnDestroy, Renderer2, ChangeDetectorRef, NgZone, OnChanges, SimpleChanges, AfterViewChecked, AfterViewInit, AnimationCallbackEvent, PipeTransform, Provider } from '@angular/core';
2
+ import { ViewContainerRef, OnInit, OnDestroy, EventEmitter, ElementRef, ComponentRef, EmbeddedViewRef, Signal, Injector, TemplateRef, InjectionToken, AfterContentInit, Renderer2, ChangeDetectorRef, NgZone, OnChanges, SimpleChanges, AfterViewChecked, AfterViewInit, AnimationCallbackEvent, Provider, PipeTransform } from '@angular/core';
3
3
  import * as i4 from '@angular/cdk/overlay';
4
4
  import { ScrollStrategy, OverlayRef, Overlay, OverlayContainer } from '@angular/cdk/overlay';
5
5
  import * as i2 from '@angular/common';
@@ -16,89 +16,89 @@ import { DateTime } from 'luxon';
16
16
  * dialog-config.class
17
17
  */
18
18
 
19
- /** Possible overrides for a dialog's position. */
19
+ /** Возможные переопределения положения диалогового окна */
20
20
  interface DialogPosition {
21
- /** Override for the dialog's top position. */
21
+ /** Переопределение отступа диалогового окна сверху */
22
22
  top?: string;
23
- /** Override for the dialog's bottom position. */
23
+ /** Переопределение отступа диалогового окна снизу */
24
24
  bottom?: string;
25
- /** Override for the dialog's left position. */
25
+ /** Переопределение отступа диалогового окна слева */
26
26
  left?: string;
27
- /** Override for the dialog's right position. */
27
+ /** Переопределение отступа диалогового окна справа */
28
28
  right?: string;
29
29
  }
30
30
  interface OwlDialogConfigInterface {
31
31
  /**
32
- * ID of the element that describes the dialog.
32
+ * ID элемента с описанием диалогового окна
33
33
  */
34
34
  ariaDescribedBy?: string | null;
35
35
  /**
36
- * Whether to focus the dialog when the dialog is opened
36
+ * Нужно ли переводить фокус на диалоговое окно при открытии
37
37
  */
38
38
  autoFocus?: boolean;
39
- /** Whether the dialog has a backdrop. */
39
+ /** Есть ли у диалогового окна фон */
40
40
  hasBackdrop?: boolean;
41
41
  /**
42
- * Custom style for the backdrop
42
+ * Пользовательский стиль фона
43
43
  * */
44
44
  backdropStyle?: any;
45
- /** Data being injected into the child component. */
45
+ /** Данные, передаваемые в дочерний компонент через DI */
46
46
  data?: any;
47
- /** Whether the user can use escape or clicking outside to close a modal. */
47
+ /** Может ли пользователь закрыть диалоговое окно клавишей Escape или нажатием за его пределами */
48
48
  disableClose?: boolean;
49
49
  /**
50
- * ID for the modal. If omitted, a unique one will be generated.
50
+ * ID диалогового окна; если не указан, создаётся уникальный ID
51
51
  */
52
52
  id?: string;
53
53
  /**
54
- * The ARIA role of the dialog element.
54
+ * ARIA-роль элемента диалогового окна
55
55
  */
56
56
  role?: 'dialog' | 'alertdialog';
57
57
  /**
58
- * Custom class for the pane
58
+ * Пользовательский класс панели
59
59
  * */
60
60
  paneClass?: string | string[];
61
61
  /**
62
- * Mouse Event
62
+ * Событие мыши
63
63
  * */
64
64
  event?: MouseEvent;
65
65
  /**
66
- * Custom class for the backdrop
66
+ * Пользовательский класс фона
67
67
  * */
68
68
  backdropClass?: string | string[];
69
69
  /**
70
- * Whether the dialog should close when the user goes backwards/forwards in history.
70
+ * Нужно ли закрывать диалоговое окно при переходе назад или вперёд в истории браузера
71
71
  * */
72
72
  closeOnNavigation?: boolean;
73
- /** Width of the dialog. */
73
+ /** Ширина диалогового окна */
74
74
  width?: string;
75
- /** Height of the dialog. */
75
+ /** Высота диалогового окна */
76
76
  height?: string;
77
77
  /**
78
- * The min-width of the overlay panel.
79
- * If a number is provided, pixel units are assumed.
78
+ * Минимальная ширина overlay-панели
79
+ * Числовое значение задаётся в пикселях
80
80
  * */
81
81
  minWidth?: number | string;
82
82
  /**
83
- * The min-height of the overlay panel.
84
- * If a number is provided, pixel units are assumed.
83
+ * Минимальная высота overlay-панели
84
+ * Числовое значение задаётся в пикселях
85
85
  * */
86
86
  minHeight?: number | string;
87
87
  /**
88
- * The max-width of the overlay panel.
89
- * If a number is provided, pixel units are assumed.
88
+ * Максимальная ширина overlay-панели
89
+ * Числовое значение задаётся в пикселях
90
90
  * */
91
91
  maxWidth?: number | string;
92
92
  /**
93
- * The max-height of the overlay panel.
94
- * If a number is provided, pixel units are assumed.
93
+ * Максимальная высота overlay-панели
94
+ * Числовое значение задаётся в пикселях
95
95
  * */
96
96
  maxHeight?: number | string;
97
- /** Position overrides. */
97
+ /** Переопределения положения */
98
98
  position?: DialogPosition;
99
99
  /**
100
- * The scroll strategy when the dialog is open
101
- * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
100
+ * Стратегия прокрутки при открытом диалоговом окне
101
+ * Подробнее: https://material.angular.io/cdk/overlay/overview#scroll-strategies
102
102
  * */
103
103
  scrollStrategy?: ScrollStrategy;
104
104
  viewContainerRef?: ViewContainerRef;
@@ -109,16 +109,19 @@ interface IDateTimePickerAnimationEvent {
109
109
  toState: 'enter' | 'leave';
110
110
  }
111
111
 
112
- declare class OwlDialogContainerComponent extends BasePortalOutlet implements OnInit {
112
+ declare class OwlDialogContainerComponent extends BasePortalOutlet implements OnInit, OnDestroy {
113
113
  private elementRef;
114
114
  private focusTrapFactory;
115
115
  private document;
116
116
  portalOutlet: CdkPortalOutlet | null;
117
- /** The class that traps and manages focus within the dialog. */
117
+ /** Класс, удерживающий фокус внутри диалогового окна и управляющий им */
118
118
  private focusTrap;
119
- /** ID of the element that should be considered as the dialog's label. */
119
+ private contentAnimationSubscription;
120
+ private exiting;
121
+ private destroyed;
122
+ /** ID элемента, используемого как заголовок диалогового окна */
120
123
  ariaLabelledBy: string | null;
121
- /** Emits when an animation state changes. */
124
+ /** Событие изменения состояния анимации */
122
125
  animationStateChanged: EventEmitter<IDateTimePickerAnimationEvent>;
123
126
  isAnimating: i0.WritableSignal<boolean>;
124
127
  private _config;
@@ -134,8 +137,9 @@ declare class OwlDialogContainerComponent extends BasePortalOutlet implements On
134
137
  get owlDialogContainerAriaDescribedby(): string;
135
138
  constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, document: any);
136
139
  ngOnInit(): void;
140
+ ngOnDestroy(): void;
137
141
  /**
138
- * Attach a ComponentPortal as content to this dialog container.
142
+ * Подключает ComponentPortal как содержимое контейнера диалогового окна
139
143
  */
140
144
  attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
141
145
  attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
@@ -144,12 +148,12 @@ declare class OwlDialogContainerComponent extends BasePortalOutlet implements On
144
148
  onAnimationDone(event: IDateTimePickerAnimationEvent): void;
145
149
  startExitAnimation(): void;
146
150
  /**
147
- * Calculate origin used in the `zoomFadeInFrom()`
148
- * for animation purpose
151
+ * Вычисляет точку начала, используемую в `zoomFadeInFrom()`,
152
+ * Для анимации
149
153
  */
150
154
  private calculateZoomOrigin;
151
155
  /**
152
- * Save the focused element before dialog was open
156
+ * Сохраняет элемент, находившийся в фокусе до открытия диалогового окна
153
157
  */
154
158
  private savePreviouslyFocusedElement;
155
159
  private trapFocus;
@@ -163,37 +167,38 @@ declare class OwlDialogRef<T> {
163
167
  private container;
164
168
  readonly id: string;
165
169
  private result;
170
+ private closing;
166
171
  private _beforeClose$;
167
172
  private _beforeOpen$;
168
173
  private _afterOpen$;
169
174
  private _afterClosed$;
170
- /** Subscription to changes in the user's location. */
175
+ /** Подписка на изменения адреса в браузере */
171
176
  private locationChanged;
172
177
  /**
173
- * The instance of component opened into modal
178
+ * Экземпляр компонента, открытого в диалоговом окне
174
179
  * */
175
180
  componentInstance: i0.WritableSignal<T>;
176
- /** Whether the user is allowed to close the dialog. */
181
+ /** Разрешено ли пользователю закрывать диалоговое окно */
177
182
  disableClose: boolean;
178
183
  constructor(overlayRef: OverlayRef, container: OwlDialogContainerComponent, id: string, location?: Location);
179
184
  close(dialogResult?: any): void;
180
185
  /**
181
- * Gets an observable that emits when the overlay's backdrop has been clicked.
186
+ * Возвращает Observable нажатий на фон overlay
182
187
  */
183
188
  backdropClick(): Observable<any>;
184
189
  /**
185
- * Gets an observable that emits when keydown events are targeted on the overlay.
190
+ * Возвращает Observable событий keydown, направленных на overlay
186
191
  */
187
192
  keydownEvents(): Observable<KeyboardEvent>;
188
193
  /**
189
- * Updates the dialog's position.
190
- * @param position New dialog position.
194
+ * Обновляет положение диалогового окна
195
+ * @param position Новое положение диалогового окна
191
196
  */
192
197
  updatePosition(position?: DialogPosition): this;
193
198
  /**
194
- * Updates the dialog's width and height.
195
- * @param width New width of the dialog.
196
- * @param height New height of the dialog.
199
+ * Обновляет ширину и высоту диалогового окна
200
+ * @param width Новая ширина диалогового окна
201
+ * @param height Новая высота диалогового окна
197
202
  */
198
203
  updateSize(width?: string, height?: string): this;
199
204
  isAnimating(): Signal<boolean>;
@@ -201,7 +206,7 @@ declare class OwlDialogRef<T> {
201
206
  afterOpen(): Observable<any>;
202
207
  beforeClose(): Observable<any>;
203
208
  afterClosed(): Observable<any>;
204
- /** Fetches the position strategy object from the overlay ref. */
209
+ /** Возвращает стратегию позиционирования из ссылки на overlay */
205
210
  private getPositionStrategy;
206
211
  }
207
212
 
@@ -216,33 +221,34 @@ declare class OwlDialogService {
216
221
  private defaultOptions;
217
222
  private parentDialog;
218
223
  private overlayContainer;
219
- private ariaHiddenElements;
224
+ private readonly _ariaHiddenElements;
225
+ private get ariaHiddenElements();
220
226
  private _openDialogsAtThisLevel;
221
227
  private _beforeOpenAtThisLevel;
222
228
  private _afterOpenAtThisLevel;
223
229
  private _afterAllClosedAtThisLevel;
224
- /** Keeps track of the currently-open dialogs. */
230
+ /** Хранит текущие открытые диалоговые окна */
225
231
  get openDialogs(): OwlDialogRef<any>[];
226
- /** Stream that emits when a dialog has been opened. */
232
+ /** Поток событий открытия диалогового окна */
227
233
  get beforeOpen(): Subject<OwlDialogRef<any>>;
228
- /** Stream that emits when a dialog has been opened. */
234
+ /** Поток событий открытия диалогового окна */
229
235
  get afterOpen(): Subject<OwlDialogRef<any>>;
230
236
  get _afterAllClosed(): any;
231
237
  /**
232
- * Stream that emits when all open dialog have finished closing.
233
- * Will emit on subscribe if there are no open dialogs to begin with.
238
+ * Поток событий завершения закрытия всех диалоговых окон
239
+ * Если открытых окон нет, событие отправляется сразу при подписке
234
240
  */
235
241
  afterAllClosed: Observable<{}>;
236
242
  private readonly scrollStrategy;
237
243
  constructor(overlay: Overlay, injector: Injector, location: Location, scrollStrategy: any, defaultOptions: OwlDialogConfigInterface, parentDialog: OwlDialogService, overlayContainer: OverlayContainer);
238
244
  open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: OwlDialogConfigInterface): OwlDialogRef<any>;
239
245
  /**
240
- * Closes all of the currently-open dialogs.
246
+ * Закрывает все открытые диалоговые окна
241
247
  */
242
248
  closeAll(): void;
243
249
  /**
244
- * Finds an open dialog by its id.
245
- * @param id ID to use when looking up the dialog.
250
+ * Находит открытое диалоговое окно по ID
251
+ * @param id ID искомого диалогового окна
246
252
  */
247
253
  getDialogById(id: string): OwlDialogRef<any> | undefined;
248
254
  private attachDialogContent;
@@ -252,7 +258,7 @@ declare class OwlDialogService {
252
258
  private getOverlayConfig;
253
259
  private removeOpenDialog;
254
260
  /**
255
- * Hides all of the content that isn't an overlay from assistive technology.
261
+ * Скрывает от вспомогательных технологий всё содержимое за пределами overlay
256
262
  */
257
263
  private hideNonDialogContentFromAssistiveTechnology;
258
264
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlDialogService, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
@@ -263,191 +269,195 @@ declare class OwlDialogService {
263
269
  * date-time-adapter.class
264
270
  */
265
271
 
266
- /** InjectionToken for date time picker that can be used to override default locale code. */
272
+ /** InjectionToken для переопределения локали компонента выбора даты и времени */
267
273
  declare const OWL_DATE_TIME_LOCALE: InjectionToken<string>;
268
- /** Provider for OWL_DATE_TIME_LOCALE injection token. */
274
+ /** Провайдер токена OWL_DATE_TIME_LOCALE */
269
275
  declare const OWL_DATE_TIME_LOCALE_PROVIDER: {
270
276
  provide: InjectionToken<string>;
271
277
  useExisting: InjectionToken<string>;
272
278
  };
273
279
  declare abstract class DateTimeAdapter<T> {
274
- /** The locale to use for all dates. */
280
+ /** Локаль для всех дат */
275
281
  protected locale: any;
276
- /** A stream that emits when the locale changes. */
282
+ /** Поток уведомлений об изменении локали */
277
283
  protected _localeChanges: Subject<string>;
278
284
  get localeChanges(): Observable<string>;
279
285
  firstMonthOfTheYear: number;
280
286
  firstDayOfTheWeek: number;
281
- /** total milliseconds in a day. */
287
+ /** Количество миллисекунд в сутках */
282
288
  protected readonly millisecondsInDay = 86400000;
283
- /** total milliseconds in a minute. */
289
+ /** Количество миллисекунд в минуте */
284
290
  protected readonly millisecondsInMinute = 60000;
285
291
  /**
286
- * Get the year of the given date
292
+ * Возвращает год указанной даты
287
293
  */
288
294
  abstract getYear(date: T): number;
289
295
  /**
290
- * Get the month of the given date
291
- * 0 -- January
292
- * 11 -- December
296
+ * Возвращает индекс месяца указанной даты
297
+ * 0 -- январь
298
+ * 11 -- декабрь
293
299
  * */
294
300
  abstract getMonth(date: T): number;
295
301
  /**
296
- * Get the day of the week of the given date
297
- * 0 -- Sunday
298
- * 6 -- Saturday
302
+ * Возвращает день недели указанной даты
303
+ * 0 -- воскресенье
304
+ * 6 -- суббота
299
305
  * */
300
306
  abstract getDay(date: T): number;
301
307
  /**
302
- * Get the day num of the given date
308
+ * Возвращает число месяца указанной даты
303
309
  */
304
310
  abstract getDate(date: T): number;
305
311
  /**
306
- * Get the hours of the given date
312
+ * Возвращает часы указанной даты
307
313
  */
308
314
  abstract getHours(date: T): number;
309
315
  /**
310
- * Get the minutes of the given date
316
+ * Возвращает минуты указанной даты
311
317
  */
312
318
  abstract getMinutes(date: T): number;
313
319
  /**
314
- * Get the seconds of the given date
320
+ * Возвращает секунды указанной даты
315
321
  */
316
322
  abstract getSeconds(date: T): number;
317
323
  /**
318
- * Get the milliseconds timestamp of the given date
324
+ * Возвращает временную метку указанной даты в миллисекундах
319
325
  */
320
326
  abstract getTime(date: T): number;
321
327
  /**
322
- * Gets the number of days in the month of the given date.
328
+ * Возвращает количество дней в месяце указанной даты
323
329
  */
324
330
  abstract getNumDaysInMonth(date: T): number;
325
331
  /**
326
- * Get the number of calendar days between the given dates.
327
- * If dateLeft is before dateRight, it would return positive value
328
- * If dateLeft is after dateRight, it would return negative value
332
+ * Возвращает разницу между указанными датами в календарных днях
333
+ * Если dateLeft раньше dateRight, возвращает отрицательное значение
334
+ * Если dateLeft позже dateRight, возвращает положительное значение
329
335
  */
330
336
  abstract differenceInCalendarDays(dateLeft: T, dateRight: T): number;
331
337
  /**
332
- * Gets the name for the year of the given date.
338
+ * Возвращает строковое представление года указанной даты
333
339
  */
334
340
  abstract getYearName(date: T): string;
335
341
  /**
336
- * Get a list of month names
342
+ * Возвращает список названий месяцев
337
343
  */
338
344
  abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
339
345
  /**
340
- * Get a list of week names
346
+ * Возвращает список названий дней недели
341
347
  */
342
348
  abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
343
349
  /**
344
- * Gets a list of names for the dates of the month.
350
+ * Возвращает список строковых представлений чисел месяца
345
351
  */
346
352
  abstract getDateNames(): string[];
347
353
  /**
348
- * Return a Date object as a string, using the ISO standard
354
+ * Возвращает дату в виде строки по стандарту ISO
349
355
  */
350
356
  abstract toIso8601(date: T): string;
351
357
  /**
352
- * Check if the give dates are equal
358
+ * Проверяет равенство указанных дат
353
359
  */
354
360
  abstract isEqual(dateLeft: T, dateRight: T): boolean;
355
361
  /**
356
- * Check if the give dates are the same day
362
+ * Проверяет, относятся ли указанные даты к одному дню
357
363
  */
358
364
  abstract isSameDay(dateLeft: T, dateRight: T): boolean;
359
365
  /**
360
- * Checks whether the given date is valid.
366
+ * Проверяет корректность указанной даты
361
367
  */
362
368
  abstract isValid(date: T): boolean;
363
369
  /**
364
- * Gets date instance that is not valid.
370
+ * Возвращает экземпляр некорректной даты
365
371
  */
366
372
  abstract invalid(): T;
367
373
  /**
368
- * Checks whether the given object is considered a date instance by this DateTimeAdapter.
374
+ * Проверяет, считает ли этот DateTimeAdapter указанный объект экземпляром даты
369
375
  */
370
376
  abstract isDateInstance(obj: any): boolean;
371
377
  /**
372
- * Add the specified number of years to the given date
378
+ * Добавляет указанное количество лет к дате
373
379
  */
374
380
  abstract addCalendarYears(date: T, amount: number): T;
375
381
  /**
376
- * Add the specified number of months to the given date
382
+ * Добавляет указанное количество месяцев к дате
377
383
  */
378
384
  abstract addCalendarMonths(date: T, amount: number): T;
379
385
  /**
380
- * Add the specified number of days to the given date
386
+ * Добавляет указанное количество дней к дате
381
387
  */
382
388
  abstract addCalendarDays(date: T, amount: number): T;
383
389
  /**
384
- * Set the hours to the given date.
390
+ * Устанавливает часы указанной даты
385
391
  */
386
392
  abstract setHours(date: T, amount: number): T;
387
393
  /**
388
- * Set the minutes to the given date.
394
+ * Устанавливает минуты указанной даты
389
395
  */
390
396
  abstract setMinutes(date: T, amount: number): T;
391
397
  /**
392
- * Set the seconds to the given date.
398
+ * Устанавливает секунды указанной даты
393
399
  */
394
400
  abstract setSeconds(date: T, amount: number): T;
395
401
  /**
396
- * Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
397
- * month and date.
402
+ * Создаёт дату с указанными годом, месяцем, числом, часами, минутами и секундами
403
+ * Месяц и число должны находиться в допустимых пределах
398
404
  */
399
405
  abstract createDate(year: number, month: number, date: number): T;
400
406
  abstract createDate(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): T;
401
407
  /**
402
- * Clone the given date
408
+ * Создаёт копию указанной даты
403
409
  */
404
410
  abstract clone(date: T): T;
405
411
  /**
406
- * Get the current date and time.
412
+ * Возвращает текущие дату и время
407
413
  * */
408
414
  abstract now(): T;
409
415
  /**
410
- * Formats a date as a string according to the given format.
416
+ * Форматирует дату в строку по указанному формату
411
417
  */
412
418
  abstract format(date: T, displayFormat: any): string;
413
419
  /**
414
- * Parse a user-provided value to a Date Object
420
+ * Преобразует введённое пользователем значение в объект даты
415
421
  */
416
422
  abstract parse(value: any, parseFormat: any): T | null;
417
423
  /**
418
- * Compare two given dates
419
- * 1 if the first date is after the second,
420
- * -1 if the first date is before the second
421
- * 0 if dates are equal.
424
+ * Сравнивает две указанные даты
425
+ * 1, если первая дата позже второй;
426
+ * -1, если первая дата раньше второй;
427
+ * 0, если даты равны
422
428
  * */
423
429
  compare(first: T, second: T): number;
424
430
  /**
425
- * Check if two given dates are in the same year
426
- * 1 if the first date's year is after the second,
427
- * -1 if the first date's year is before the second
428
- * 0 if two given dates are in the same year
431
+ * Сравнивает годы двух указанных дат
432
+ * 1, если год первой даты больше года второй;
433
+ * -1, если год первой даты меньше года второй;
434
+ * 0, если обе даты относятся к одному году
429
435
  * */
430
436
  compareYear(first: T, second: T): number;
431
437
  /**
432
- * Attempts to deserialize a value to a valid date object. This is different from parsing in that
433
- * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
434
- * string). The default implementation does not allow any deserialization, it simply checks that
435
- * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
436
- * method on all of it's `@Input()` properties that accept dates. It is therefore possible to
437
- * support passing values from your backend directly to these properties by overriding this method
438
- * to also deserialize the format used by your backend.
438
+ * Пытается десериализовать значение в корректный объект даты
439
+ * В отличие от разбора
440
+ * пользовательского ввода, deserialize принимает только однозначные форматы, не зависящие
441
+ * от локали, например ISO 8601
442
+ * По умолчанию метод ничего не преобразует, а проверяет,
443
+ * что значение уже является корректным объектом даты или null
444
+ * Компонент выбора даты
445
+ * использует этот метод для входных значений, представляющих даты
446
+ * Переопределение
447
+ * метода позволяет передавать в такие свойства значения прямо с сервера,
448
+ * если реализовать десериализацию формата, используемого сервером
439
449
  */
440
450
  deserialize(value: any): T | null;
441
451
  /**
442
- * Sets the locale used for all dates.
452
+ * Устанавливает локаль для всех дат
443
453
  */
444
454
  setLocale(locale: string): void;
445
455
  /**
446
- * Get the locale used for all dates.
456
+ * Возвращает локаль для всех дат
447
457
  * */
448
458
  getLocale(): any;
449
459
  /**
450
- * Clamp the given date between min and max dates.
460
+ * Ограничивает дату минимальным и максимальным значениями
451
461
  */
452
462
  clampDate(date: T, min?: T | null, max?: T | null): T;
453
463
  }
@@ -465,7 +475,7 @@ interface OwlDateTimeFormats {
465
475
  dateA11yLabel: any;
466
476
  monthYearA11yLabel: any;
467
477
  }
468
- /** InjectionToken for date time picker that can be used to override default format. */
478
+ /** InjectionToken для переопределения формата даты и времени */
469
479
  declare const OWL_DATE_TIME_FORMATS: InjectionToken<OwlDateTimeFormats>;
470
480
 
471
481
  /**
@@ -485,59 +495,59 @@ declare abstract class OwlDateTime<T> {
485
495
  protected dateTimeAdapter: DateTimeAdapter<T>;
486
496
  protected dateTimeFormats: OwlDateTimeFormats;
487
497
  /**
488
- * Whether to show the second's timer
498
+ * Нужно ли показывать поле секунд
489
499
  */
490
500
  private _showSecondsTimer;
491
501
  get showSecondsTimer(): boolean;
492
502
  set showSecondsTimer(val: boolean);
493
503
  /**
494
- * Whether the timer is in hour12 format
504
+ * Используется ли 12-часовой формат времени
495
505
  */
496
506
  private _hour12Timer;
497
507
  get hour12Timer(): boolean;
498
508
  set hour12Timer(val: boolean);
499
509
  /**
500
- * The view that the calendar should start in.
510
+ * Начальное представление календаря
501
511
  */
502
512
  startView: DateViewType;
503
513
  /**
504
- * Whether to show calendar weeks in the calendar
514
+ * Нужно ли показывать номера недель в календаре
505
515
  * */
506
516
  showCalendarWeeks: boolean;
507
517
  /**
508
- * Whether to should only the year and multi-year views.
518
+ * Нужно ли показывать только представления года и нескольких лет
509
519
  */
510
520
  yearOnly: boolean;
511
521
  /**
512
- * Whether to should only the multi-year view.
522
+ * Нужно ли показывать только представление нескольких лет
513
523
  */
514
524
  multiyearOnly: boolean;
515
525
  /**
516
- * Hours to change per step
526
+ * Количество часов за один шаг
517
527
  */
518
528
  private _stepHour;
519
529
  get stepHour(): number;
520
530
  set stepHour(val: number);
521
531
  /**
522
- * Minutes to change per step
532
+ * Количество минут за один шаг
523
533
  */
524
534
  private _stepMinute;
525
535
  get stepMinute(): number;
526
536
  set stepMinute(val: number);
527
537
  /**
528
- * Seconds to change per step
538
+ * Количество секунд за один шаг
529
539
  */
530
540
  private _stepSecond;
531
541
  get stepSecond(): number;
532
542
  set stepSecond(val: number);
533
543
  /**
534
- * Set the first day of week
544
+ * Задаёт первый день недели
535
545
  */
536
546
  private _firstDayOfWeek;
537
547
  get firstDayOfWeek(): number;
538
548
  set firstDayOfWeek(value: number);
539
549
  /**
540
- * Whether to hide dates in other months at the start or end of the current month.
550
+ * Нужно ли скрывать даты соседних месяцев в начале или конце текущего месяца
541
551
  */
542
552
  private _hideOtherMonths;
543
553
  get hideOtherMonths(): boolean;
@@ -566,7 +576,7 @@ declare abstract class OwlDateTime<T> {
566
576
  abstract selectDate(normalizedDate: T): void;
567
577
  get formatString(): string;
568
578
  /**
569
- * Date Time Checker to check if the give dateTime is selectable
579
+ * Проверка доступности указанных даты и времени для выбора
570
580
  */
571
581
  dateTimeChecker: (dateTime: T) => boolean;
572
582
  get disabled(): boolean;
@@ -587,43 +597,44 @@ declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit,
587
597
  private renderer;
588
598
  private dateTimeAdapter;
589
599
  private dateTimeFormats;
600
+ private changeDetector;
590
601
  static ngAcceptInputType_disabled: boolean | '';
591
602
  /**
592
- * Required flag to be used for range of [null, null]
603
+ * Признак обязательного значения для диапазона [null, null]
593
604
  * */
594
605
  private _required;
595
606
  get required(): any;
596
607
  set required(value: any);
597
608
  /**
598
- * The date time picker that this input is associated with.
609
+ * Компонент выбора даты и времени, связанный с этим полем
599
610
  * */
600
611
  set owlDateTime(value: OwlDateTimeComponent<T>);
601
612
  /**
602
- * A function to filter date time
613
+ * Функция фильтрации даты и времени
603
614
  */
604
615
  set owlDateTimeFilter(filter: (date: T | null) => boolean);
605
616
  private _dateTimeFilter;
606
617
  get dateTimeFilter(): (date: T | null) => boolean;
607
- /** Whether the date time picker's input is disabled. */
618
+ /** Отключено ли поле ввода даты и времени */
608
619
  private _disabled;
609
620
  get disabled(): boolean;
610
621
  set disabled(value: boolean);
611
- /** The minimum valid date. */
622
+ /** Минимальная допустимая дата */
612
623
  private _min;
613
624
  get min(): T | null;
614
625
  set min(value: T | null);
615
- /** The maximum valid date. */
626
+ /** Максимальная допустимая дата */
616
627
  private _max;
617
628
  get max(): T | null;
618
629
  set max(value: T | null);
619
630
  /**
620
- * The picker's select mode
631
+ * Режим выбора даты
621
632
  */
622
633
  private _selectMode;
623
634
  get selectMode(): SelectMode;
624
635
  set selectMode(mode: SelectMode);
625
636
  /**
626
- * The character to separate the 'from' and 'to' in input value
637
+ * Символ, разделяющий начало ('from') и конец ('to') диапазона в поле ввода
627
638
  */
628
639
  rangeSeparator: string;
629
640
  private _value;
@@ -633,17 +644,17 @@ declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit,
633
644
  get values(): T[];
634
645
  set values(values: T[]);
635
646
  /**
636
- * Callback to invoke when `change` event is fired on this `<input>`
647
+ * Обработчик события `change` этого `<input>`
637
648
  * */
638
649
  dateTimeChange: EventEmitter<any>;
639
650
  /**
640
- * Callback to invoke when an `input` event is fired on this `<input>`.
651
+ * Обработчик события `input` этого `<input>`
641
652
  * */
642
653
  dateTimeInput: EventEmitter<any>;
643
654
  get elementRef(): ElementRef;
644
655
  get isInSingleMode(): boolean;
645
656
  get isInRangeMode(): boolean;
646
- /** The date-time-picker that this input is associated with. */
657
+ /** Компонент выбора даты и времени, связанный с этим полем */
647
658
  dtPicker: OwlDateTimeComponent<T>;
648
659
  private dtPickerSub;
649
660
  private localeSub;
@@ -651,36 +662,36 @@ declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit,
651
662
  private onModelChange;
652
663
  private onModelTouched;
653
664
  private validatorOnChange;
654
- /** The form control validator for whether the input parses. */
665
+ /** Валидатор корректности разбора введённого значения */
655
666
  private parseValidator;
656
- /** The form control validator for the min date. */
667
+ /** Валидатор минимальной даты */
657
668
  private minValidator;
658
- /** The form control validator for the max date. */
669
+ /** Валидатор максимальной даты */
659
670
  private maxValidator;
660
- /** The form control validator for the date filter. */
671
+ /** Валидатор соответствия фильтру дат */
661
672
  private filterValidator;
662
673
  /**
663
- * The form control validator for the range.
664
- * Check whether the 'before' value is before the 'to' value
674
+ * Валидатор диапазона дат
675
+ * Проверяет, что начало диапазона находится не позже конца ('to')
665
676
  * */
666
677
  private rangeValidator;
667
678
  /**
668
- * The form control validator for the range when required.
669
- * Check whether the 'before' and 'to' values are present
679
+ * Валидатор обязательного диапазона дат
680
+ * Проверяет наличие обеих границ диапазона
670
681
  * */
671
682
  private requiredRangeValidator;
672
- /** The combined form control validator for this input. */
683
+ /** Объединённый валидатор этого поля ввода */
673
684
  private validator;
674
- /** Emits when the value changes (either due to user input or programmatic change). */
685
+ /** Событие изменения значения пользователем или программно */
675
686
  valueChange: EventEmitter<T | T[]>;
676
- /** Emits when the disabled state has changed */
687
+ /** Событие изменения состояния disabled */
677
688
  disabledChange: EventEmitter<boolean>;
678
689
  get owlDateTimeInputAriaHaspopup(): boolean;
679
690
  get owlDateTimeInputAriaOwns(): string;
680
691
  get minIso8601(): string;
681
692
  get maxIso8601(): string;
682
693
  get owlDateTimeInputDisabled(): boolean;
683
- constructor(elmRef: ElementRef, renderer: Renderer2, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
694
+ constructor(elmRef: ElementRef, renderer: Renderer2, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats, changeDetector: ChangeDetectorRef);
684
695
  ngOnInit(): void;
685
696
  ngAfterContentInit(): void;
686
697
  ngOnDestroy(): void;
@@ -693,49 +704,49 @@ declare class OwlDateTimeInputDirective<T> implements OnInit, AfterContentInit,
693
704
  };
694
705
  registerOnValidatorChange(fn: () => void): void;
695
706
  /**
696
- * Open the picker when user hold alt + DOWN_ARROW
707
+ * Открывает компонент выбора по сочетанию Alt + ArrowDown
697
708
  * */
698
709
  handleKeydownOnHost(event: KeyboardEvent): void;
699
710
  handleBlurOnHost(event: Event): void;
700
711
  handleInputOnHost(event: any): void;
701
712
  handleChangeOnHost(event: any): void;
702
713
  /**
703
- * Set the native input property 'value'
714
+ * Задаёт свойство 'value' нативного поля ввода
704
715
  */
705
716
  formatNativeInputValue(): void;
706
717
  /**
707
- * Register the relationship between this input and its picker component
718
+ * Регистрирует связь между полем ввода и компонентом выбора
708
719
  */
709
720
  private registerDateTimePicker;
710
721
  /**
711
- * Convert a given obj to a valid date object
722
+ * Преобразует указанный объект в корректный объект даты
712
723
  */
713
724
  private getValidDate;
714
725
  /**
715
- * Convert a time string to a date-time string
716
- * When pickerType is 'timer', the value in the picker's input is a time string.
717
- * The dateTimeAdapter parse fn could not parse a time string to a Date Object.
718
- * Therefore we need this fn to convert a time string to a date-time string.
726
+ * Преобразует строку времени в строку даты и времени
727
+ * При pickerType равном 'timer' поле ввода содержит строку времени
728
+ * Метод parse адаптера dateTimeAdapter не может разобрать строку времени как объект даты
729
+ * Поэтому эта функция преобразует строку времени в строку даты и времени
719
730
  */
720
731
  private convertTimeStringToDateTimeString;
721
732
  /**
722
- * Handle input change in single mode
733
+ * Обрабатывает изменение поля ввода в режиме single
723
734
  */
724
735
  private changeInputInSingleMode;
725
736
  /**
726
- * Handle input change in rangeFrom or rangeTo mode
737
+ * Обрабатывает изменение поля ввода в режиме rangeFrom или rangeTo
727
738
  */
728
739
  private changeInputInRangeFromToMode;
729
740
  /**
730
- * Handle input change in range mode
741
+ * Обрабатывает изменение поля ввода в режиме range
731
742
  */
732
743
  private changeInputInRangeMode;
733
744
  /**
734
- * Check if the two value is the same
745
+ * Проверяет равенство двух значений
735
746
  */
736
747
  private isSameValue;
737
- static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInputDirective<any>, [null, null, { optional: true; }, { optional: true; }]>;
738
- static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeInputDirective<any>, "input[owlDateTime]", ["owlDateTimeInput"], { "required": { "alias": "required"; "required": false; }; "owlDateTime": { "alias": "owlDateTime"; "required": false; }; "owlDateTimeFilter": { "alias": "owlDateTimeFilter"; "required": false; }; "_disabled": { "alias": "_disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "rangeSeparator": { "alias": "rangeSeparator"; "required": false; }; "value": { "alias": "value"; "required": false; }; "values": { "alias": "values"; "required": false; }; }, { "dateTimeChange": "dateTimeChange"; "dateTimeInput": "dateTimeInput"; }, never, never, false, never>;
748
+ static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInputDirective<any>, [null, null, { optional: true; }, { optional: true; }, null]>;
749
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OwlDateTimeInputDirective<any>, "input[owlDateTime]", ["owlDateTimeInput"], { "required": { "alias": "required"; "required": false; }; "owlDateTime": { "alias": "owlDateTime"; "required": false; }; "owlDateTimeFilter": { "alias": "owlDateTimeFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "rangeSeparator": { "alias": "rangeSeparator"; "required": false; }; "value": { "alias": "value"; "required": false; }; "values": { "alias": "values"; "required": false; }; }, { "dateTimeChange": "dateTimeChange"; "dateTimeInput": "dateTimeInput"; }, never, never, false, never>;
739
750
  }
740
751
 
741
752
  /**
@@ -751,90 +762,95 @@ declare class OwlDateTimeComponent<T> extends OwlDateTime<T> implements OnInit,
751
762
  protected dateTimeAdapter: DateTimeAdapter<T>;
752
763
  protected dateTimeFormats: OwlDateTimeFormats;
753
764
  private document;
754
- /** Custom class for the picker backdrop. */
765
+ /** Пользовательский класс фона компонента выбора */
755
766
  backdropClass: string | string[];
756
- /** Custom class for the picker overlay pane. */
767
+ /** Пользовательский класс overlay-панели компонента выбора */
757
768
  panelClass: string | string[];
758
- /** The date to open the calendar to initially. */
769
+ /** Дата, на которой календарь открывается изначально */
759
770
  private _startAt;
760
771
  get startAt(): T | null;
761
772
  set startAt(date: T | null);
762
- /** The end date to set for range calendar. */
773
+ /** Конечная дата календаря в режиме диапазона */
763
774
  private _endAt;
764
775
  get endAt(): T | null;
765
776
  set endAt(date: T | null);
766
777
  /**
767
- * Set the type of the dateTime picker
768
- * 'both' -- show both calendar and timer
769
- * 'calendar' -- show only calendar
770
- * 'timer' -- show only timer
778
+ * Задаёт тип компонента выбора даты и времени:
779
+ * 'both' — календарь и выбор времени
780
+ * 'calendar' — только календарь
781
+ * 'timer' — только выбор времени
771
782
  */
772
783
  private _pickerType;
773
784
  get pickerType(): PickerType;
774
785
  set pickerType(val: PickerType);
775
786
  /**
776
- * Whether the picker open as a dialog
787
+ * Открывается ли компонент выбора в диалоговом окне
777
788
  */
778
789
  _pickerMode: PickerMode;
779
790
  get pickerMode(): PickerMode;
780
791
  set pickerMode(mode: PickerMode);
781
- /** Whether the date time picker should be disabled. */
792
+ /** Отключён ли компонент выбора даты и времени */
782
793
  private _disabled;
783
794
  get disabled(): boolean;
784
795
  set disabled(value: boolean);
785
- /** Whether the calendar is open. */
796
+ /** Открыт ли календарь */
786
797
  private _opened;
798
+ private closing;
799
+ private destroyed;
800
+ private positionRenderRef;
801
+ private readonly injector;
787
802
  get opened(): boolean;
788
803
  set opened(val: boolean);
789
804
  /**
790
- * The scroll strategy when the picker is open
791
- * Learn more this from https://material.angular.io/cdk/overlay/overview#scroll-strategies
805
+ * Стратегия прокрутки при открытом компоненте выбора
806
+ * Подробнее: https://material.angular.io/cdk/overlay/overview#scroll-strategies
792
807
  * */
793
808
  scrollStrategy: ScrollStrategy;
794
809
  /**
795
- * Callback when the picker is closed
810
+ * Обработчик закрытия компонента выбора
796
811
  * */
797
812
  afterPickerClosed: EventEmitter<any>;
798
813
  /**
799
- * Callback before the picker is open
814
+ * Обработчик перед открытием компонента выбора
800
815
  * */
801
816
  beforePickerOpen: EventEmitter<any>;
802
817
  /**
803
- * Callback when the picker is open
818
+ * Обработчик открытия компонента выбора
804
819
  * */
805
820
  afterPickerOpen: EventEmitter<any>;
806
821
  /**
807
- * Emits selected year in multi-year view
808
- * This doesn't imply a change on the selected date.
822
+ * Передаёт выбранный год в представлении нескольких лет
823
+ * При этом выбранная дата не изменяется
809
824
  * */
810
825
  yearSelected: EventEmitter<T>;
811
826
  /**
812
- * Emits selected month in year view
813
- * This doesn't imply a change on the selected date.
827
+ * Передаёт выбранный месяц в представлении года
828
+ * При этом выбранная дата не изменяется
814
829
  * */
815
830
  monthSelected: EventEmitter<T>;
816
831
  /**
817
- * Emits selected date
832
+ * Передаёт выбранную дату
818
833
  * */
819
834
  dateSelected: EventEmitter<T>;
820
835
  /**
821
- * Emit when the selected value has been confirmed
836
+ * Событие подтверждения выбранного значения
822
837
  * */
823
838
  confirmSelectedChange: EventEmitter<T | T[]>;
824
839
  /**
825
- * Emits when the date time picker is disabled.
840
+ * Событие отключения компонента выбора даты и времени
826
841
  * */
827
842
  disabledChange: EventEmitter<boolean>;
828
843
  private pickerContainerPortal;
829
844
  private pickerContainer;
830
845
  private popupRef;
831
846
  private dialogRef;
847
+ private dialogClosedStreamSub;
832
848
  private dtInputSub;
833
849
  private hidePickerStreamSub;
834
850
  private confirmSelectedStreamSub;
835
851
  private pickerOpenedStreamSub;
836
852
  private pickerBeforeOpenedStreamSub;
837
- /** The element that was focused before the date time picker was opened. */
853
+ /** Элемент, находившийся в фокусе до открытия компонента выбора даты и времени */
838
854
  private focusedElementBeforeOpen;
839
855
  private _dtInput;
840
856
  get dtInput(): OwlDateTimeInputDirective<T>;
@@ -844,9 +860,9 @@ declare class OwlDateTimeComponent<T> extends OwlDateTime<T> implements OnInit,
844
860
  private _selecteds;
845
861
  get selecteds(): T[];
846
862
  set selecteds(values: T[]);
847
- /** The minimum selectable date. */
863
+ /** Минимальная доступная для выбора дата */
848
864
  get minDateTime(): T | null;
849
- /** The maximum selectable date. */
865
+ /** Максимальная доступная для выбора дата */
850
866
  get maxDateTime(): T | null;
851
867
  get dateTimeFilter(): (date: T | null) => boolean;
852
868
  get selectMode(): SelectMode;
@@ -854,45 +870,46 @@ declare class OwlDateTimeComponent<T> extends OwlDateTime<T> implements OnInit,
854
870
  get isInRangeMode(): boolean;
855
871
  private readonly defaultScrollStrategy;
856
872
  constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dialogService: OwlDialogService, ngZone: NgZone, changeDetector: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, defaultScrollStrategy: any, dateTimeFormats: OwlDateTimeFormats, document: any);
873
+ refreshView(): void;
857
874
  ngOnInit(): void;
858
875
  ngOnDestroy(): void;
859
876
  registerInput(input: OwlDateTimeInputDirective<T>): void;
860
877
  open(): void;
861
878
  /**
862
- * Selects the given date
879
+ * Выбирает указанную дату
863
880
  */
864
881
  select(date: T[] | T): void;
865
882
  /**
866
- * Emits the selected year in multi-year view
883
+ * Передаёт выбранный год в представлении нескольких лет
867
884
  * */
868
885
  selectYear(normalizedYear: T): void;
869
886
  /**
870
- * Emits selected month in year view
887
+ * Передаёт выбранный месяц в представлении года
871
888
  * */
872
889
  selectMonth(normalizedMonth: T): void;
873
890
  /**
874
- * Emits the selected date
891
+ * Передаёт выбранную дату
875
892
  * */
876
893
  selectDate(normalizedDate: T): void;
877
894
  /**
878
- * Hide the picker
895
+ * Закрывает компонент выбора
879
896
  */
880
897
  close(): void;
881
898
  /**
882
- * Confirm the selected value
899
+ * Подтверждает выбранное значение
883
900
  */
884
901
  confirmSelect(event?: any): void;
885
902
  /**
886
- * Open the picker as a dialog
903
+ * Открывает компонент выбора в диалоговом окне
887
904
  */
888
905
  private openAsDialog;
889
906
  /**
890
- * Open the picker as popup
907
+ * Открывает компонент выбора во всплывающем окне
891
908
  */
892
909
  private openAsPopup;
893
910
  private createPopup;
894
911
  /**
895
- * Create the popup PositionStrategy.
912
+ * Создаёт PositionStrategy всплывающего окна
896
913
  * */
897
914
  private createPopupPositionStrategy;
898
915
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeComponent<any>, [null, null, null, null, null, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
@@ -924,49 +941,49 @@ declare class OwlDateTimeTriggerDirective<T> implements OnInit, OnChanges, After
924
941
 
925
942
  declare class OwlDateTimeIntl {
926
943
  /**
927
- * Stream that emits whenever the labels here are changed. Use this to notify
928
- * components if the labels have changed after initialization.
944
+ * Поток событий изменения подписей для уведомления
945
+ * компонентов об изменении подписей после инициализации
929
946
  */
930
947
  readonly changes: Subject<void>;
931
- /** A label for the up second button (used by screen readers). */
948
+ /** Подпись кнопки увеличения секунд для программ чтения с экрана */
932
949
  upSecondLabel: string;
933
- /** A label for the down second button (used by screen readers). */
950
+ /** Подпись кнопки уменьшения секунд для программ чтения с экрана */
934
951
  downSecondLabel: string;
935
- /** A label for the up minute button (used by screen readers). */
952
+ /** Подпись кнопки увеличения минут для программ чтения с экрана */
936
953
  upMinuteLabel: string;
937
- /** A label for the down minute button (used by screen readers). */
954
+ /** Подпись кнопки уменьшения минут для программ чтения с экрана */
938
955
  downMinuteLabel: string;
939
- /** A label for the up hour button (used by screen readers). */
956
+ /** Подпись кнопки увеличения часов для программ чтения с экрана */
940
957
  upHourLabel: string;
941
- /** A label for the down hour button (used by screen readers). */
958
+ /** Подпись кнопки уменьшения часов для программ чтения с экрана */
942
959
  downHourLabel: string;
943
- /** A label for the previous month button (used by screen readers). */
960
+ /** Подпись кнопки предыдущего месяца для программ чтения с экрана */
944
961
  prevMonthLabel: string;
945
- /** A label for the next month button (used by screen readers). */
962
+ /** Подпись кнопки следующего месяца для программ чтения с экрана */
946
963
  nextMonthLabel: string;
947
- /** A label for the previous year button (used by screen readers). */
964
+ /** Подпись кнопки предыдущего года для программ чтения с экрана */
948
965
  prevYearLabel: string;
949
- /** A label for the next year button (used by screen readers). */
966
+ /** Подпись кнопки следующего года для программ чтения с экрана */
950
967
  nextYearLabel: string;
951
- /** A label for the previous multi-year button (used by screen readers). */
968
+ /** Подпись кнопки предыдущей группы лет для программ чтения с экрана */
952
969
  prevMultiYearLabel: string;
953
- /** A label for the next multi-year button (used by screen readers). */
970
+ /** Подпись кнопки следующей группы лет для программ чтения с экрана */
954
971
  nextMultiYearLabel: string;
955
- /** A label for the 'switch to month view' button (used by screen readers). */
972
+ /** Подпись кнопки перехода к представлению месяца для программ чтения с экрана */
956
973
  switchToMonthViewLabel: string;
957
- /** A label for the 'switch to year view' button (used by screen readers). */
974
+ /** Подпись кнопки перехода к представлению года для программ чтения с экрана */
958
975
  switchToMultiYearViewLabel: string;
959
- /** A label for the cancel button */
976
+ /** Подпись кнопки отмены */
960
977
  cancelBtnLabel: string;
961
- /** A label for the set button */
978
+ /** Подпись кнопки подтверждения */
962
979
  setBtnLabel: string;
963
- /** A label for the range 'from' in picker info */
980
+ /** Подпись начала диапазона ('from') в информации о выбранных датах */
964
981
  rangeFromLabel: string;
965
- /** A label for the range 'to' in picker info */
982
+ /** Подпись конца диапазона ('to') в информации о выбранных датах */
966
983
  rangeToLabel: string;
967
- /** A label for the hour12 button (AM) */
984
+ /** Подпись кнопки AM в 12-часовом формате */
968
985
  hour12AMLabel: string;
969
- /** A label for the hour12 button (PM) */
986
+ /** Подпись кнопки PM в 12-часовом формате */
970
987
  hour12PMLabel: string;
971
988
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeIntl, never>;
972
989
  static ɵprov: i0.ɵɵInjectableDeclaration<OwlDateTimeIntl>;
@@ -983,6 +1000,9 @@ declare class OwlCalendarComponent<T> implements OnInit, AfterContentInit, After
983
1000
  private cdRef;
984
1001
  private dateTimeAdapter;
985
1002
  private dateTimeFormats;
1003
+ private readonly injector;
1004
+ private readonly destroyRef;
1005
+ private focusRef;
986
1006
  DateView: typeof DateView;
987
1007
  get minDate(): T | null;
988
1008
  set minDate(value: T | null);
@@ -1005,74 +1025,74 @@ declare class OwlCalendarComponent<T> implements OnInit, AfterContentInit, After
1005
1025
  get showControlArrows(): boolean;
1006
1026
  get isMonthView(): boolean;
1007
1027
  /**
1008
- * Bind class 'owl-dt-calendar' to host
1028
+ * Добавляет класс 'owl-dt-calendar' к элементу компонента
1009
1029
  * */
1010
1030
  get owlDTCalendarClass(): boolean;
1011
- constructor(elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, ngZone: NgZone, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
1031
+ constructor(elmRef: ElementRef<HTMLElement>, pickerIntl: OwlDateTimeIntl, ngZone: NgZone, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
1012
1032
  /**
1013
- * Date filter for the month and year view
1033
+ * Фильтр дат для представлений месяца и года
1014
1034
  * */
1015
1035
  dateFilter: (date: T) => boolean;
1016
1036
  /**
1017
- * Set the first day of week
1037
+ * Задаёт первый день недели
1018
1038
  */
1019
1039
  firstDayOfWeek: number;
1020
- /** The minimum selectable date. */
1040
+ /** Минимальная доступная для выбора дата */
1021
1041
  private _minDate;
1022
- /** The maximum selectable date. */
1042
+ /** Максимальная доступная для выбора дата */
1023
1043
  private _maxDate;
1024
- /** The date and time currently displayed by the picker. */
1044
+ /** Дата и время, отображаемые в компоненте выбора */
1025
1045
  private _pickerDateTime;
1026
1046
  selectMode: SelectMode;
1027
- /** The currently selected date and time. */
1047
+ /** Текущие выбранные дата и время */
1028
1048
  private _selected;
1029
1049
  private _selecteds;
1030
1050
  /**
1031
- * The view that the calendar should start in.
1051
+ * Начальное представление календаря
1032
1052
  */
1033
1053
  startView: DateViewType;
1034
1054
  /**
1035
- * Whether to should only the year and multi-year views.
1055
+ * Нужно ли показывать только представления года и нескольких лет
1036
1056
  */
1037
1057
  yearOnly: boolean;
1038
1058
  /**
1039
- * Whether to show calendar weeks in the calendar
1059
+ * Нужно ли показывать номера недель в календаре
1040
1060
  * */
1041
1061
  showCalendarWeeks: boolean;
1042
1062
  /**
1043
- * Whether to should only the multi-year view.
1063
+ * Нужно ли показывать только представление нескольких лет
1044
1064
  */
1045
1065
  multiyearOnly: boolean;
1046
1066
  /**
1047
- * Whether to hide dates in other months at the start or end of the current month.
1067
+ * Нужно ли скрывать даты соседних месяцев в начале или конце текущего месяца
1048
1068
  * */
1049
1069
  hideOtherMonths: boolean;
1050
- /** Emits when the displayed date and time changes. */
1070
+ /** Событие изменения отображаемых даты и времени */
1051
1071
  pickerDateTimeChange: EventEmitter<T>;
1052
- /** Emits when the selected date changes. */
1072
+ /** Событие изменения выбранной даты */
1053
1073
  readonly dateClicked: EventEmitter<T>;
1054
- /** Emits when the currently selected date changes. */
1074
+ /** Событие изменения текущей выбранной даты */
1055
1075
  readonly selectedChange: EventEmitter<T>;
1056
- /** Emits when any date is selected. */
1076
+ /** Событие выбора любой даты */
1057
1077
  readonly userSelection: EventEmitter<void>;
1058
1078
  /**
1059
- * Emits the selected year. This doesn't imply a change on the selected date
1079
+ * Передаёт выбранный год, не изменяя выбранную дату
1060
1080
  * */
1061
1081
  readonly yearSelected: EventEmitter<T>;
1062
1082
  /**
1063
- * Emits the selected month. This doesn't imply a change on the selected date
1083
+ * Передаёт выбранный месяц, не изменяя выбранную дату
1064
1084
  * */
1065
1085
  readonly monthSelected: EventEmitter<T>;
1066
1086
  private _currentView;
1067
1087
  private intlChangesSub;
1068
1088
  /**
1069
- * Used for scheduling that focus should be moved to the active cell on the next tick.
1070
- * We need to schedule it, rather than do it immediately, because we have to wait
1071
- * for Angular to re-evaluate the view children.
1089
+ * Откладывает перевод фокуса на активную ячейку до следующего обновления представления
1090
+ * Перевод фокуса откладывается, чтобы дождаться, пока Angular
1091
+ * обновит дочерние элементы представления
1072
1092
  */
1073
1093
  private moveFocusOnNextTick;
1074
1094
  /**
1075
- * Date filter for the month and year view
1095
+ * Фильтр дат для представлений месяца и года
1076
1096
  */
1077
1097
  dateFilterForViews: (date: T) => boolean;
1078
1098
  ngOnInit(): void;
@@ -1080,47 +1100,47 @@ declare class OwlCalendarComponent<T> implements OnInit, AfterContentInit, After
1080
1100
  ngAfterViewChecked(): void;
1081
1101
  ngOnDestroy(): void;
1082
1102
  /**
1083
- * Toggle between month view and year view
1103
+ * Переключает представления месяца и года
1084
1104
  */
1085
1105
  toggleViews(): void;
1086
1106
  /**
1087
- * Handles user clicks on the previous button.
1107
+ * Обрабатывает нажатие кнопки перехода к предыдущему периоду
1088
1108
  * */
1089
1109
  previousClicked(): void;
1090
1110
  /**
1091
- * Handles user clicks on the next button.
1111
+ * Обрабатывает нажатие кнопки перехода к следующему периоду
1092
1112
  * */
1093
1113
  nextClicked(): void;
1094
1114
  dateSelected(date: T): void;
1095
1115
  /**
1096
- * Change the displayed date and switch to a specific view.
1116
+ * Меняет отображаемую дату и переключается на указанное представление
1097
1117
  */
1098
1118
  goToDateInView(date: T, view: DateViewType): void;
1099
1119
  /**
1100
- * Change the displayed date.
1120
+ * Меняет отображаемую дату
1101
1121
  */
1102
1122
  handlePickerDateTimeChange(date: T): void;
1103
1123
  userSelected(): void;
1104
1124
  /**
1105
- * Whether the previous period button is enabled.
1125
+ * Доступна ли кнопка перехода к предыдущему периоду
1106
1126
  */
1107
1127
  prevButtonEnabled(): boolean;
1108
1128
  /**
1109
- * Whether the next period button is enabled.
1129
+ * Доступна ли кнопка перехода к следующему периоду
1110
1130
  */
1111
1131
  nextButtonEnabled(): boolean;
1112
1132
  /**
1113
- * Focus to the host element
1133
+ * Переводит фокус на элемент компонента
1114
1134
  * */
1115
1135
  focusActiveCell(): void;
1116
1136
  selectYearInMultiYearView(normalizedYear: T): void;
1117
1137
  selectMonthInYearView(normalizedMonth: T): void;
1118
1138
  /**
1119
- * Whether the two dates represent the same view in the current view mode (month or year).
1139
+ * Соответствуют ли две даты одному представлению в текущем режиме (месяц или год)
1120
1140
  */
1121
1141
  private isSameView;
1122
1142
  /**
1123
- * Get a valid date object
1143
+ * Возвращает корректный объект даты
1124
1144
  */
1125
1145
  private getValidDate;
1126
1146
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlCalendarComponent<any>, [null, null, null, null, { optional: true; }, { optional: true; }]>;
@@ -1131,50 +1151,54 @@ declare class OwlCalendarComponent<T> implements OnInit, AfterContentInit, After
1131
1151
  * timer.component
1132
1152
  */
1133
1153
 
1134
- declare class OwlTimerComponent<T> implements OnInit {
1154
+ declare class OwlTimerComponent<T> implements OnInit, OnDestroy {
1135
1155
  private ngZone;
1136
1156
  private elmRef;
1137
1157
  private pickerIntl;
1138
1158
  private cdRef;
1139
1159
  private dateTimeAdapter;
1140
- /** The date and time currently displayed by the picker. */
1160
+ private readonly injector;
1161
+ private readonly destroyRef;
1162
+ private focusRef;
1163
+ private intlChangesSub;
1164
+ /** Дата и время, отображаемые в компоненте выбора */
1141
1165
  private _pickerDateTime;
1142
1166
  get pickerDateTime(): T;
1143
1167
  set pickerDateTime(value: T);
1144
- /** The minimum selectable date time. */
1168
+ /** Минимальные доступные для выбора дата и время */
1145
1169
  private _minDateTime;
1146
1170
  get minDateTime(): T | null;
1147
1171
  set minDateTime(value: T | null);
1148
- /** The maximum selectable date time. */
1172
+ /** Максимальные доступные для выбора дата и время */
1149
1173
  private _maxDateTime;
1150
1174
  get maxDateTime(): T | null;
1151
1175
  set maxDateTime(value: T | null);
1152
1176
  private isPM;
1153
1177
  /**
1154
- * Whether to show the second's timer
1178
+ * Нужно ли показывать поле секунд
1155
1179
  */
1156
1180
  showSecondsTimer: boolean;
1157
1181
  /**
1158
- * Whether the timer is in hour12 format
1182
+ * Используется ли 12-часовой формат времени
1159
1183
  */
1160
1184
  hour12Timer: boolean;
1161
1185
  /**
1162
- * Hours to change per step
1186
+ * Количество часов за один шаг
1163
1187
  */
1164
1188
  stepHour: number;
1165
1189
  /**
1166
- * Minutes to change per step
1190
+ * Количество минут за один шаг
1167
1191
  */
1168
1192
  stepMinute: number;
1169
1193
  /**
1170
- * Seconds to change per step
1194
+ * Количество секунд за один шаг
1171
1195
  */
1172
1196
  stepSecond: number;
1173
1197
  get hourValue(): number;
1174
1198
  /**
1175
- * The value would be displayed in hourBox.
1176
- * We need this because the value displayed in hourBox it not
1177
- * the same as the hourValue when the timer is in hour12Timer mode.
1199
+ * Значение, отображаемое в hourBox
1200
+ * Оно требуется, поскольку значение в hourBox отличается
1201
+ * от hourValue в режиме hour12Timer
1178
1202
  * */
1179
1203
  get hourBoxValue(): number;
1180
1204
  get minuteValue(): number;
@@ -1189,15 +1213,16 @@ declare class OwlTimerComponent<T> implements OnInit {
1189
1213
  selectedChange: EventEmitter<T>;
1190
1214
  get owlDTTimerClass(): boolean;
1191
1215
  get owlDTTimeTabIndex(): number;
1192
- constructor(ngZone: NgZone, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>);
1216
+ constructor(ngZone: NgZone, elmRef: ElementRef<HTMLElement>, pickerIntl: OwlDateTimeIntl, cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>);
1193
1217
  ngOnInit(): void;
1218
+ ngOnDestroy(): void;
1194
1219
  /**
1195
- * Focus to the host element
1220
+ * Переводит фокус на элемент компонента
1196
1221
  * */
1197
1222
  focus(): void;
1198
1223
  /**
1199
- * Set the hour value via typing into timer box input
1200
- * We need this to handle the hour value when the timer is in hour12 mode
1224
+ * Задаёт час при вводе текста в поле времени
1225
+ * Нужно для обработки часа в 12-часовом формате времени
1201
1226
  * */
1202
1227
  setHourValueViaInput(hours: number): void;
1203
1228
  setHourValue(hours: number): void;
@@ -1205,52 +1230,52 @@ declare class OwlTimerComponent<T> implements OnInit {
1205
1230
  setSecondValue(seconds: number): void;
1206
1231
  setMeridiem(event: any): void;
1207
1232
  /**
1208
- * Check if the up hour button is enabled
1233
+ * Проверяет доступность кнопки увеличения часов
1209
1234
  */
1210
1235
  upHourEnabled(): boolean;
1211
1236
  /**
1212
- * Check if the down hour button is enabled
1237
+ * Проверяет доступность кнопки уменьшения часов
1213
1238
  */
1214
1239
  downHourEnabled(): boolean;
1215
1240
  /**
1216
- * Check if the up minute button is enabled
1241
+ * Проверяет доступность кнопки увеличения минут
1217
1242
  */
1218
1243
  upMinuteEnabled(): boolean;
1219
1244
  /**
1220
- * Check if the down minute button is enabled
1245
+ * Проверяет доступность кнопки уменьшения минут
1221
1246
  */
1222
1247
  downMinuteEnabled(): boolean;
1223
1248
  /**
1224
- * Check if the up second button is enabled
1249
+ * Проверяет доступность кнопки увеличения секунд
1225
1250
  */
1226
1251
  upSecondEnabled(): boolean;
1227
1252
  /**
1228
- * Check if the down second button is enabled
1253
+ * Проверяет доступность кнопки уменьшения секунд
1229
1254
  */
1230
1255
  downSecondEnabled(): boolean;
1231
1256
  /**
1232
- * Adjust the displayed hour and compare it to the given date.
1233
- * 1 is after the comparedDate
1234
- * -1 is before the comparedDate
1235
- * 0 is equal the comparedDate
1257
+ * Изменяет отображаемый час и сравнивает результат с указанной датой
1258
+ * 1 — позже comparedDate
1259
+ * -1 — раньше comparedDate
1260
+ * 0 — совпадает с comparedDate
1236
1261
  * */
1237
1262
  private compareHours;
1238
1263
  /**
1239
- * Adjust the displayed minute and compare it to the given date.
1240
- * 1 is after the comparedDate
1241
- * -1 is before the comparedDate
1242
- * 0 is equal the comparedDate
1264
+ * Изменяет отображаемую минуту и сравнивает результат с указанной датой
1265
+ * 1 — позже comparedDate
1266
+ * -1 — раньше comparedDate
1267
+ * 0 — совпадает с comparedDate
1243
1268
  * */
1244
1269
  private compareMinutes;
1245
1270
  /**
1246
- * Adjust the displayed second and compare it to the given date.
1247
- * 1 is after the comparedDate
1248
- * -1 is before the comparedDate
1249
- * 0 is equal the comparedDate
1271
+ * Изменяет отображаемую секунду и сравнивает результат с указанной датой
1272
+ * 1 — позже comparedDate
1273
+ * -1 — раньше comparedDate
1274
+ * 0 — совпадает с comparedDate
1250
1275
  * */
1251
1276
  private compareSeconds;
1252
1277
  /**
1253
- * Get a valid date object
1278
+ * Возвращает корректный объект даты
1254
1279
  */
1255
1280
  private getValidDate;
1256
1281
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlTimerComponent<any>, [null, null, null, null, { optional: true; }]>;
@@ -1270,17 +1295,17 @@ declare class OwlDateTimeContainerComponent<T> implements OnInit, AfterContentIn
1270
1295
  timer: OwlTimerComponent<T>;
1271
1296
  picker: OwlDateTime<T>;
1272
1297
  activeSelectedIndex: number;
1273
- /** Emits when an animation state changes. */
1298
+ /** Событие изменения состояния анимации */
1274
1299
  animationStateChanged: EventEmitter<IDateTimePickerAnimationEvent>;
1275
1300
  private retainStartTime;
1276
1301
  private retainEndTime;
1277
1302
  /**
1278
- * Stream emits when try to hide picker
1303
+ * Поток запросов на закрытие компонента выбора
1279
1304
  * */
1280
1305
  private hidePicker$;
1281
1306
  get hidePickerStream(): Observable<any>;
1282
1307
  /**
1283
- * Stream emits when try to confirm the selected value
1308
+ * Поток запросов на подтверждение выбранного значения
1284
1309
  * */
1285
1310
  private confirmSelected$;
1286
1311
  get confirmSelectedStream(): Observable<any>;
@@ -1289,8 +1314,8 @@ declare class OwlDateTimeContainerComponent<T> implements OnInit, AfterContentIn
1289
1314
  private pickerOpened$;
1290
1315
  get pickerOpenedStream(): Observable<any>;
1291
1316
  /**
1292
- * The current picker value. This determines which time period is shown and which date is
1293
- * highlighted when using keyboard navigation.
1317
+ * Текущее значение компонента выбора определяет отображаемый период и дату,
1318
+ * выделенную при навигации с клавиатуры
1294
1319
  */
1295
1320
  private _clampedPickerDateTime;
1296
1321
  get pickerDateTime(): T;
@@ -1299,25 +1324,25 @@ declare class OwlDateTimeContainerComponent<T> implements OnInit, AfterContentIn
1299
1324
  get cancelLabel(): string;
1300
1325
  get setLabel(): string;
1301
1326
  /**
1302
- * The range 'from' label
1327
+ * Подпись начала диапазона ('from')
1303
1328
  * */
1304
1329
  get fromLabel(): string;
1305
1330
  /**
1306
- * The range 'to' label
1331
+ * Подпись конца диапазона ('to')
1307
1332
  * */
1308
1333
  get toLabel(): string;
1309
1334
  /**
1310
- * The range 'from' formatted value
1335
+ * Отформатированное значение начала диапазона ('from')
1311
1336
  * */
1312
1337
  get fromFormattedValue(): string;
1313
1338
  /**
1314
- * The range 'to' formatted value
1339
+ * Отформатированное значение конца диапазона ('to')
1315
1340
  * */
1316
1341
  get toFormattedValue(): string;
1317
1342
  /**
1318
- * Cases in which the control buttons show in the picker
1319
- * 1) picker mode is 'dialog'
1320
- * 2) picker type is NOT 'calendar' and the picker mode is NOT 'inline'
1343
+ * Условия отображения кнопок управления:
1344
+ * 1) Режим компонента — 'dialog'
1345
+ * 2) Тип компонента отличается от 'calendar', а режим — от 'inline'
1321
1346
  * */
1322
1347
  get showControlButtons(): boolean;
1323
1348
  get containerElm(): HTMLElement;
@@ -1329,6 +1354,7 @@ declare class OwlDateTimeContainerComponent<T> implements OnInit, AfterContentIn
1329
1354
  get owlDTContainerId(): string;
1330
1355
  get owlDTContainerAnimation(): any;
1331
1356
  constructor(cdRef: ChangeDetectorRef, elmRef: ElementRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>);
1357
+ refreshView(): void;
1332
1358
  ngOnInit(): void;
1333
1359
  ngAfterContentInit(): void;
1334
1360
  ngAfterViewInit(): void;
@@ -1337,47 +1363,47 @@ declare class OwlDateTimeContainerComponent<T> implements OnInit, AfterContentIn
1337
1363
  dateSelected(date: T): void;
1338
1364
  timeSelected(time: T): void;
1339
1365
  /**
1340
- * Handle click on cancel button
1366
+ * Обрабатывает нажатие кнопки отмены
1341
1367
  */
1342
1368
  onCancelClicked(event: any): void;
1343
1369
  /**
1344
- * Handle click on set button
1370
+ * Обрабатывает нажатие кнопки подтверждения
1345
1371
  */
1346
1372
  onSetClicked(event: any): void;
1347
1373
  /**
1348
- * Handle click on inform radio group
1374
+ * Обрабатывает выбор границы диапазона в группе переключателей
1349
1375
  */
1350
1376
  handleClickOnInfoGroup(event: any, index: number): void;
1351
1377
  /**
1352
- * Handle click on inform radio group
1378
+ * Обрабатывает выбор границы диапазона в группе переключателей
1353
1379
  */
1354
1380
  handleKeydownOnInfoGroup(event: any, next: any, index: number): void;
1355
1381
  protected onAnimateEnter(event: AnimationCallbackEvent): void;
1356
1382
  protected onAnimateLeave(event: AnimationCallbackEvent): void;
1357
1383
  /**
1358
- * Set the value of activeSelectedIndex
1384
+ * Задаёт значение activeSelectedIndex
1359
1385
  */
1360
1386
  private setActiveSelectedIndex;
1361
1387
  private initPicker;
1362
1388
  /**
1363
- * Select calendar date in single mode,
1364
- * it returns null when date is not selected.
1389
+ * Выбирает дату календаря в режиме single
1390
+ * Возвращает null, если дата не выбрана
1365
1391
  */
1366
1392
  private dateSelectedInSingleMode;
1367
1393
  /**
1368
- * Select dates in range Mode
1394
+ * Выбирает даты в режиме диапазона
1369
1395
  */
1370
1396
  private dateSelectedInRangeMode;
1371
1397
  /**
1372
- * Update the given calendar date's time and check if it is valid
1373
- * Because the calendar date has 00:00:00 as default time, if the picker type is 'both',
1374
- * we need to update the given calendar date's time before selecting it.
1375
- * if it is valid, return the updated dateTime
1376
- * if it is not valid, return null
1398
+ * Обновляет время указанной даты календаря и проверяет её допустимость
1399
+ * Поскольку время даты календаря по умолчанию равно 00:00:00, в режиме 'both'
1400
+ * перед выбором даты необходимо обновить её время
1401
+ * Если дата допустима, возвращает обновлённое значение dateTime
1402
+ * Если дата недопустима, возвращает null
1377
1403
  */
1378
1404
  private updateAndCheckCalendarDate;
1379
1405
  /**
1380
- * Focus to the picker
1406
+ * Переводит фокус на компонент выбора
1381
1407
  * */
1382
1408
  private focusPicker;
1383
1409
  private parseCssVariableDuration;
@@ -1401,69 +1427,95 @@ declare class CalendarCell {
1401
1427
  declare class OwlCalendarBodyComponent implements OnInit {
1402
1428
  private elmRef;
1403
1429
  private ngZone;
1430
+ private readonly injector;
1431
+ private readonly destroyRef;
1432
+ private focusRef;
1404
1433
  /**
1405
- * The cell number of the active cell in the table.
1434
+ * Номер активной ячейки в таблице
1406
1435
  */
1407
1436
  activeCell: number;
1408
1437
  /**
1409
- * The cells to display in the table.
1438
+ * Ячейки, отображаемые в таблице
1410
1439
  * */
1411
1440
  rows: CalendarCell[][];
1412
1441
  /**
1413
- * The number of columns in the table.
1442
+ * Количество столбцов в таблице
1414
1443
  * */
1415
1444
  numCols: number;
1416
1445
  /**
1417
- * The ratio (width / height) to use for the cells in the table.
1446
+ * Соотношение ширины и высоты ячеек таблицы
1418
1447
  */
1419
1448
  cellRatio: number;
1420
1449
  /**
1421
- * The value in the table that corresponds to today.
1450
+ * Значение в таблице, соответствующее сегодняшней дате
1422
1451
  * */
1423
1452
  todayValue: number;
1424
1453
  /**
1425
- * The value in the table that is currently selected.
1454
+ * Выбранное значение в таблице
1426
1455
  * */
1427
1456
  selectedValues: number[];
1428
1457
  /**
1429
- * Current picker select mode
1458
+ * Текущий режим выбора даты
1430
1459
  */
1431
1460
  selectMode: SelectMode;
1432
1461
  /**
1433
- * Emit when a calendar cell is selected
1462
+ * Событие выбора ячейки календаря
1434
1463
  * */
1435
1464
  readonly select: EventEmitter<CalendarCell>;
1436
1465
  get owlDTCalendarBodyClass(): boolean;
1437
1466
  get isInSingleMode(): boolean;
1438
1467
  get isInRangeMode(): boolean;
1439
- constructor(elmRef: ElementRef, ngZone: NgZone);
1468
+ constructor(elmRef: ElementRef<HTMLElement>, ngZone: NgZone);
1440
1469
  ngOnInit(): void;
1441
1470
  selectCell(cell: CalendarCell): void;
1442
1471
  isActiveCell(rowIndex: number, colIndex: number): boolean;
1443
1472
  /**
1444
- * Check if the cell is selected
1473
+ * Проверяет, выбрана ли ячейка
1445
1474
  */
1446
1475
  isSelected(value: number): boolean;
1447
1476
  /**
1448
- * Check if the cell in the range
1477
+ * Проверяет, входит ли ячейка в диапазон
1449
1478
  * */
1450
1479
  isInRange(value: number): boolean;
1451
1480
  /**
1452
- * Check if the cell is the range from
1481
+ * Проверяет, соответствует ли ячейка началу диапазона
1453
1482
  * */
1454
1483
  isRangeFrom(value: number): boolean;
1455
1484
  /**
1456
- * Check if the cell is the range to
1485
+ * Проверяет, соответствует ли ячейка концу диапазона
1457
1486
  * */
1458
1487
  isRangeTo(value: number): boolean;
1459
1488
  /**
1460
- * Focus to a active cell
1489
+ * Переводит фокус на активную ячейку
1461
1490
  * */
1462
1491
  focusActiveCell(): void;
1463
1492
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlCalendarBodyComponent, never>;
1464
1493
  static ɵcmp: i0.ɵɵComponentDeclaration<OwlCalendarBodyComponent, "[owl-date-time-calendar-body]", ["owlDateTimeCalendarBody"], { "activeCell": { "alias": "activeCell"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "cellRatio": { "alias": "cellRatio"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
1465
1494
  }
1466
1495
 
1496
+ declare function defaultOptionsFactory(): Options;
1497
+ declare function multiYearOptionsFactory(options: Options): {
1498
+ yearsPerRow: number;
1499
+ yearRows: number;
1500
+ };
1501
+ interface Options {
1502
+ multiYear: {
1503
+ yearsPerRow: number;
1504
+ yearRows: number;
1505
+ };
1506
+ }
1507
+ declare class DefaultOptions {
1508
+ static create(): Options;
1509
+ }
1510
+ declare abstract class OptionsTokens {
1511
+ static all: InjectionToken<Options>;
1512
+ static multiYear: InjectionToken<{
1513
+ yearsPerRow: number;
1514
+ yearRows: number;
1515
+ }>;
1516
+ }
1517
+ declare const optionsProviders: Provider[];
1518
+
1467
1519
  /**
1468
1520
  * calendar-multi-year-view.component
1469
1521
  */
@@ -1472,14 +1524,14 @@ declare class OwlMultiYearViewComponent<T> implements OnInit, AfterContentInit {
1472
1524
  private cdRef;
1473
1525
  private pickerIntl;
1474
1526
  private dateTimeAdapter;
1475
- private options;
1527
+ readonly options: Options['multiYear'];
1476
1528
  /**
1477
- * The select mode of the picker;
1529
+ * Режим выбора даты
1478
1530
  * */
1479
1531
  private _selectMode;
1480
1532
  get selectMode(): SelectMode;
1481
1533
  set selectMode(val: SelectMode);
1482
- /** The currently selected date. */
1534
+ /** Текущая выбранная дата */
1483
1535
  private _selected;
1484
1536
  get selected(): T | null;
1485
1537
  set selected(value: T | null);
@@ -1490,16 +1542,16 @@ declare class OwlMultiYearViewComponent<T> implements OnInit, AfterContentInit {
1490
1542
  get pickerDateTime(): T;
1491
1543
  set pickerDateTime(value: T);
1492
1544
  /**
1493
- * A function used to filter which dates are selectable
1545
+ * Функция, определяющая доступные для выбора даты
1494
1546
  * */
1495
1547
  private _dateFilter;
1496
1548
  get dateFilter(): (date: T) => boolean;
1497
1549
  set dateFilter(filter: (date: T) => boolean);
1498
- /** The minimum selectable date. */
1550
+ /** Минимальная доступная для выбора дата */
1499
1551
  private _minDate;
1500
1552
  get minDate(): T | null;
1501
1553
  set minDate(value: T | null);
1502
- /** The maximum selectable date. */
1554
+ /** Максимальная доступная для выбора дата */
1503
1555
  private _maxDate;
1504
1556
  get maxDate(): T | null;
1505
1557
  set maxDate(value: T | null);
@@ -1517,53 +1569,54 @@ declare class OwlMultiYearViewComponent<T> implements OnInit, AfterContentInit {
1517
1569
  get prevButtonLabel(): string;
1518
1570
  get nextButtonLabel(): string;
1519
1571
  /**
1520
- * Callback to invoke when a new month is selected
1572
+ * Обработчик выбора нового месяца
1521
1573
  * */
1522
1574
  readonly change: EventEmitter<T>;
1523
1575
  /**
1524
- * Emits the selected year. This doesn't imply a change on the selected date
1576
+ * Передаёт выбранный год, не изменяя выбранную дату
1525
1577
  * */
1526
1578
  readonly yearSelected: EventEmitter<T>;
1527
- /** Emits when any date is activated. */
1579
+ /** Событие активации любой даты */
1528
1580
  readonly pickerDateTimeChange: EventEmitter<T>;
1529
- /** Emits when use keyboard enter to select a calendar cell */
1581
+ /** Событие выбора ячейки календаря клавишей Enter */
1530
1582
  readonly keyboardEnter: EventEmitter<any>;
1531
- /** The body of calendar table */
1583
+ /** Тело таблицы календаря */
1532
1584
  calendarBodyElm: OwlCalendarBodyComponent;
1533
1585
  get owlDTCalendarView(): boolean;
1534
1586
  get owlDTCalendarMultiYearView(): boolean;
1535
- constructor(cdRef: ChangeDetectorRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>, options: any);
1587
+ constructor(cdRef: ChangeDetectorRef, pickerIntl: OwlDateTimeIntl, dateTimeAdapter: DateTimeAdapter<T>, options: Options['multiYear']);
1536
1588
  ngOnInit(): void;
1537
1589
  ngAfterContentInit(): void;
1538
1590
  /**
1539
- * Handle a calendarCell selected
1591
+ * Обрабатывает выбор ячейки календаря
1540
1592
  */
1541
1593
  selectCalendarCell(cell: CalendarCell): void;
1542
1594
  private selectYear;
1543
1595
  /**
1544
- * Generate the previous year list
1596
+ * Создаёт список предыдущих лет
1545
1597
  * */
1546
1598
  prevYearList(event: any): void;
1547
1599
  /**
1548
- * Generate the next year list
1600
+ * Создаёт список следующих лет
1549
1601
  * */
1550
1602
  nextYearList(event: any): void;
1551
1603
  generateYearList(): void;
1552
- /** Whether the previous period button is enabled. */
1604
+ /** Доступна ли кнопка перехода к предыдущему периоду */
1553
1605
  previousEnabled(): boolean;
1554
- /** Whether the next period button is enabled. */
1606
+ /** Доступна ли кнопка перехода к следующему периоду */
1555
1607
  nextEnabled(): boolean;
1556
1608
  handleCalendarKeydown(event: KeyboardEvent): void;
1557
1609
  /**
1558
- * Creates an CalendarCell for the given year.
1610
+ * Создаёт CalendarCell для указанного года
1559
1611
  */
1560
1612
  private createYearCell;
1561
1613
  private setSelectedYears;
1562
- /** Whether the given year is enabled. */
1614
+ /** Доступен ли указанный год для выбора */
1563
1615
  private isYearEnabled;
1564
1616
  private isSameYearList;
1617
+ private getYearListStart;
1565
1618
  /**
1566
- * Get a valid date object
1619
+ * Возвращает корректный объект даты
1567
1620
  */
1568
1621
  private getValidDate;
1569
1622
  private focusActiveCell;
@@ -1580,12 +1633,12 @@ declare class OwlYearViewComponent<T> implements OnInit, AfterContentInit, OnDes
1580
1633
  private dateTimeAdapter;
1581
1634
  private dateTimeFormats;
1582
1635
  /**
1583
- * The select mode of the picker;
1636
+ * Режим выбора даты
1584
1637
  * */
1585
1638
  private _selectMode;
1586
1639
  get selectMode(): SelectMode;
1587
1640
  set selectMode(val: SelectMode);
1588
- /** The currently selected date. */
1641
+ /** Текущая выбранная дата */
1589
1642
  private _selected;
1590
1643
  get selected(): T | null;
1591
1644
  set selected(value: T | null);
@@ -1596,20 +1649,20 @@ declare class OwlYearViewComponent<T> implements OnInit, AfterContentInit, OnDes
1596
1649
  get pickerDateTime(): T;
1597
1650
  set pickerDateTime(value: T);
1598
1651
  /**
1599
- * A function used to filter which dates are selectable
1652
+ * Функция, определяющая доступные для выбора даты
1600
1653
  * */
1601
1654
  private _dateFilter;
1602
1655
  get dateFilter(): (date: T) => boolean;
1603
1656
  set dateFilter(filter: (date: T) => boolean);
1604
- /** The minimum selectable date. */
1657
+ /** Минимальная доступная для выбора дата */
1605
1658
  private _minDate;
1606
1659
  get minDate(): T | null;
1607
1660
  set minDate(value: T | null);
1608
- /** The maximum selectable date. */
1661
+ /** Максимальная доступная для выбора дата */
1609
1662
  private _maxDate;
1610
1663
  get maxDate(): T | null;
1611
1664
  set maxDate(value: T | null);
1612
- private readonly monthNames;
1665
+ private monthNames;
1613
1666
  private _months;
1614
1667
  get months(): CalendarCell[][];
1615
1668
  get activeCell(): number;
@@ -1619,23 +1672,23 @@ declare class OwlYearViewComponent<T> implements OnInit, AfterContentInit, OnDes
1619
1672
  private initiated;
1620
1673
  todayMonth: number | null;
1621
1674
  /**
1622
- * An array to hold all selectedDates' month value
1623
- * the value is the month number in current year
1675
+ * Массив номеров месяцев из selectedDates
1676
+ * Значение — номер месяца в текущем году
1624
1677
  * */
1625
1678
  selectedMonths: number[];
1626
1679
  /**
1627
- * Callback to invoke when a new month is selected
1680
+ * Обработчик выбора нового месяца
1628
1681
  * */
1629
1682
  readonly change: EventEmitter<T>;
1630
1683
  /**
1631
- * Emits the selected year. This doesn't imply a change on the selected date
1684
+ * Передаёт выбранный год, не изменяя выбранную дату
1632
1685
  * */
1633
1686
  readonly monthSelected: EventEmitter<T>;
1634
- /** Emits when any date is activated. */
1687
+ /** Событие активации любой даты */
1635
1688
  readonly pickerDateTimeChange: EventEmitter<T>;
1636
- /** Emits when use keyboard enter to select a calendar cell */
1689
+ /** Событие выбора ячейки календаря клавишей Enter */
1637
1690
  readonly keyboardEnter: EventEmitter<any>;
1638
- /** The body of calendar table */
1691
+ /** Тело таблицы календаря */
1639
1692
  calendarBodyElm: OwlCalendarBodyComponent;
1640
1693
  get owlDTCalendarView(): boolean;
1641
1694
  constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
@@ -1643,46 +1696,46 @@ declare class OwlYearViewComponent<T> implements OnInit, AfterContentInit, OnDes
1643
1696
  ngAfterContentInit(): void;
1644
1697
  ngOnDestroy(): void;
1645
1698
  /**
1646
- * Handle a calendarCell selected
1699
+ * Обрабатывает выбор ячейки календаря
1647
1700
  */
1648
1701
  selectCalendarCell(cell: CalendarCell): void;
1649
1702
  /**
1650
- * Handle a new month selected
1703
+ * Обрабатывает выбор нового месяца
1651
1704
  */
1652
1705
  private selectMonth;
1653
1706
  /**
1654
- * Handle keydown event on calendar body
1707
+ * Обрабатывает keydown в таблице календаря
1655
1708
  */
1656
1709
  handleCalendarKeydown(event: KeyboardEvent): void;
1657
1710
  /**
1658
- * Generate the calendar month list
1711
+ * Создаёт список месяцев календаря
1659
1712
  * */
1660
1713
  private generateMonthList;
1661
1714
  /**
1662
- * Creates an CalendarCell for the given month.
1715
+ * Создаёт CalendarCell для указанного месяца
1663
1716
  */
1664
1717
  private createMonthCell;
1665
1718
  /**
1666
- * Check if the given month is enable
1719
+ * Проверяет доступность указанного месяца для выбора
1667
1720
  */
1668
1721
  private isMonthEnabled;
1669
1722
  /**
1670
- * Gets the month in this year that the given Date falls on.
1671
- * Returns null if the given Date is in another year.
1723
+ * Возвращает месяц указанной даты в текущем году
1724
+ * Возвращает null, если указанная дата находится в другом году
1672
1725
  */
1673
1726
  private getMonthInCurrentYear;
1674
1727
  /**
1675
- * Set the selectedMonths value
1676
- * In single mode, it has only one value which represent the month the selected date in
1677
- * In range mode, it would has two values, one for the month the fromValue in and the other for the month the toValue in
1728
+ * Задаёт значение selectedMonths
1729
+ * В режиме single содержит одно значение — месяц выбранной даты
1730
+ * В режиме range содержит два значения: месяц fromValue и месяц toValue
1678
1731
  * */
1679
1732
  private setSelectedMonths;
1680
1733
  /**
1681
- * Check the given dates are in the same year
1734
+ * Проверяет, находятся ли указанные даты в одном году
1682
1735
  */
1683
1736
  private hasSameYear;
1684
1737
  /**
1685
- * Get a valid date object
1738
+ * Возвращает корректный объект даты
1686
1739
  */
1687
1740
  private getValidDate;
1688
1741
  private focusActiveCell;
@@ -1699,28 +1752,28 @@ declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDe
1699
1752
  private dateTimeAdapter;
1700
1753
  private dateTimeFormats;
1701
1754
  /**
1702
- * Whether to hide dates in other months at the start or end of the current month.
1755
+ * Нужно ли скрывать даты соседних месяцев в начале или конце текущего месяца
1703
1756
  * */
1704
1757
  hideOtherMonths: boolean;
1705
1758
  /**
1706
- * Whether to show calendar weeks in the calendar
1759
+ * Нужно ли показывать номера недель в календаре
1707
1760
  * */
1708
1761
  showCalendarWeeks: boolean;
1709
1762
  private isDefaultFirstDayOfWeek;
1710
1763
  /**
1711
- * Define the first day of a week
1712
- * Sunday: 0 - Saturday: 6
1764
+ * Задаёт первый день недели
1765
+ * Воскресенье: 0 — суббота: 6
1713
1766
  * */
1714
1767
  private _firstDayOfWeek;
1715
1768
  get firstDayOfWeek(): number;
1716
1769
  set firstDayOfWeek(val: number);
1717
1770
  /**
1718
- * The select mode of the picker;
1771
+ * Режим выбора даты
1719
1772
  * */
1720
1773
  private _selectMode;
1721
1774
  get selectMode(): SelectMode;
1722
1775
  set selectMode(val: SelectMode);
1723
- /** The currently selected date. */
1776
+ /** Текущая выбранная дата */
1724
1777
  private _selected;
1725
1778
  get selected(): T | null;
1726
1779
  set selected(value: T | null);
@@ -1731,16 +1784,16 @@ declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDe
1731
1784
  get pickerDateTime(): T;
1732
1785
  set pickerDateTime(value: T);
1733
1786
  /**
1734
- * A function used to filter which dates are selectable
1787
+ * Функция, определяющая доступные для выбора даты
1735
1788
  * */
1736
1789
  private _dateFilter;
1737
1790
  get dateFilter(): (date: T) => boolean;
1738
1791
  set dateFilter(filter: (date: T) => boolean);
1739
- /** The minimum selectable date. */
1792
+ /** Минимальная доступная для выбора дата */
1740
1793
  private _minDate;
1741
1794
  get minDate(): T | null;
1742
1795
  set minDate(value: T | null);
1743
- /** The maximum selectable date. */
1796
+ /** Максимальная доступная для выбора дата */
1744
1797
  private _maxDate;
1745
1798
  get maxDate(): T | null;
1746
1799
  set maxDate(value: T | null);
@@ -1760,30 +1813,30 @@ declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDe
1760
1813
  private initiated;
1761
1814
  private dateNames;
1762
1815
  /**
1763
- * The date of the month that today falls on.
1816
+ * Число месяца, соответствующее сегодняшней дате
1764
1817
  * */
1765
1818
  todayDate: number | null;
1766
1819
  /**
1767
- * Week day numbers
1820
+ * Номера дней недели
1768
1821
  * */
1769
1822
  weekNumbers: number[];
1770
1823
  /**
1771
- * An array to hold all selectedDates' value
1772
- * the value is the day number in current month
1824
+ * Массив значений selectedDates
1825
+ * Значение — номер дня в текущем месяце
1773
1826
  * */
1774
1827
  selectedDates: number[];
1775
1828
  firstRowOffset: number;
1776
1829
  /**
1777
- * Callback to invoke when a new date is selected
1830
+ * Обработчик выбора новой даты
1778
1831
  * */
1779
1832
  readonly selectedChange: EventEmitter<T>;
1780
1833
  /**
1781
- * Callback to invoke when any date is selected.
1834
+ * Обработчик выбора любой даты
1782
1835
  * */
1783
1836
  readonly userSelection: EventEmitter<void>;
1784
- /** Emits when any date is activated. */
1837
+ /** Событие активации любой даты */
1785
1838
  readonly pickerDateTimeChange: EventEmitter<T>;
1786
- /** The body of calendar table */
1839
+ /** Тело таблицы календаря */
1787
1840
  calendarBodyElm: OwlCalendarBodyComponent;
1788
1841
  get owlDTCalendarView(): boolean;
1789
1842
  constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter<T>, dateTimeFormats: OwlDateTimeFormats);
@@ -1791,48 +1844,48 @@ declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDe
1791
1844
  ngAfterContentInit(): void;
1792
1845
  ngOnDestroy(): void;
1793
1846
  /**
1794
- * Handle a calendarCell selected
1847
+ * Обрабатывает выбор ячейки календаря
1795
1848
  */
1796
1849
  selectCalendarCell(cell: CalendarCell): void;
1797
1850
  /**
1798
- * Handle a new date selected
1851
+ * Обрабатывает выбор новой даты
1799
1852
  */
1800
1853
  private selectDate;
1801
1854
  /**
1802
- * Handle keydown event on calendar body
1855
+ * Обрабатывает keydown в таблице календаря
1803
1856
  */
1804
1857
  handleCalendarKeydown(event: KeyboardEvent): void;
1805
1858
  /**
1806
- * Generate the calendar weekdays array
1859
+ * Создаёт массив дней недели для календаря
1807
1860
  * */
1808
1861
  private generateWeekDays;
1809
1862
  /**
1810
- * Generate the calendar days array
1863
+ * Создаёт массив дней календаря
1811
1864
  * */
1812
1865
  private generateCalendar;
1813
1866
  getISOWeek(d: Date): number;
1814
1867
  private updateFirstDayOfWeek;
1815
1868
  /**
1816
- * Creates CalendarCell for days.
1869
+ * Создаёт CalendarCell для дней
1817
1870
  */
1818
1871
  private createDateCell;
1819
1872
  /**
1820
- * Check if the date is valid
1873
+ * Проверяет допустимость даты
1821
1874
  */
1822
1875
  private isDateEnabled;
1823
1876
  /**
1824
- * Get a valid date object
1877
+ * Возвращает корректный объект даты
1825
1878
  */
1826
1879
  private getValidDate;
1827
1880
  /**
1828
- * Check if the give dates are none-null and in the same month
1881
+ * Проверяет, что даты не равны null и находятся в одном месяце
1829
1882
  */
1830
1883
  isSameMonth(dateLeft: T, dateRight: T): boolean;
1831
1884
  private getISOWeekFromDate;
1832
1885
  /**
1833
- * Set the selectedDates value.
1834
- * In single mode, it has only one value which represent the selected date
1835
- * In range mode, it would has two values, one for the fromValue and the other for the toValue
1886
+ * Задаёт значение selectedDates
1887
+ * В режиме single содержит одно значение — выбранную дату
1888
+ * В режиме range содержит два значения: fromValue и toValue
1836
1889
  * */
1837
1890
  private setSelectedDates;
1838
1891
  private focusActiveCell;
@@ -1845,14 +1898,15 @@ declare class OwlMonthViewComponent<T> implements OnInit, AfterContentInit, OnDe
1845
1898
  */
1846
1899
 
1847
1900
  declare class OwlTimerBoxComponent implements OnInit, OnDestroy {
1901
+ private changeDetector;
1848
1902
  showDivider: boolean;
1849
1903
  upBtnAriaLabel: string;
1850
1904
  upBtnDisabled: boolean;
1851
1905
  downBtnAriaLabel: string;
1852
1906
  downBtnDisabled: boolean;
1853
1907
  /**
1854
- * Value would be displayed in the box
1855
- * If it is null, the box would display [value]
1908
+ * Значение, отображаемое в поле
1909
+ * Если равно null, в поле отображается [value]
1856
1910
  * */
1857
1911
  boxValue: number;
1858
1912
  value: number;
@@ -1864,12 +1918,12 @@ declare class OwlTimerBoxComponent implements OnInit, OnDestroy {
1864
1918
  inputChange: EventEmitter<number>;
1865
1919
  private inputStream;
1866
1920
  private inputStreamSub;
1867
- private hasFocus;
1921
+ private isEditing;
1868
1922
  get displayValue(): string;
1869
1923
  get owlDTTimerBoxClass(): boolean;
1870
1924
  private valueInput;
1871
1925
  private onValueInputMouseWheelBind;
1872
- constructor();
1926
+ constructor(changeDetector: ChangeDetectorRef);
1873
1927
  ngOnInit(): void;
1874
1928
  ngOnDestroy(): void;
1875
1929
  upBtnClicked(): void;
@@ -1906,10 +1960,10 @@ declare class OwlDateTimeInlineComponent<T> extends OwlDateTime<T> implements On
1906
1960
  protected dateTimeFormats: OwlDateTimeFormats;
1907
1961
  container: OwlDateTimeContainerComponent<T>;
1908
1962
  /**
1909
- * Set the type of the dateTime picker
1910
- * 'both' -- show both calendar and timer
1911
- * 'calendar' -- show only calendar
1912
- * 'timer' -- show only timer
1963
+ * Задаёт тип компонента выбора даты и времени:
1964
+ * 'both' — календарь и выбор времени
1965
+ * 'calendar' — только календарь
1966
+ * 'timer' — только выбор времени
1913
1967
  */
1914
1968
  private _pickerType;
1915
1969
  get pickerType(): PickerType;
@@ -1920,22 +1974,22 @@ declare class OwlDateTimeInlineComponent<T> extends OwlDateTime<T> implements On
1920
1974
  private _selectMode;
1921
1975
  get selectMode(): SelectMode;
1922
1976
  set selectMode(mode: SelectMode);
1923
- /** The date to open the calendar to initially. */
1977
+ /** Дата, на которой календарь открывается изначально */
1924
1978
  private _startAt;
1925
1979
  get startAt(): T | null;
1926
1980
  set startAt(date: T | null);
1927
- /** The date to open for range calendar. */
1981
+ /** Дата открытия календаря в режиме диапазона */
1928
1982
  private _endAt;
1929
1983
  get endAt(): T | null;
1930
1984
  set endAt(date: T | null);
1931
1985
  private _dateTimeFilter;
1932
1986
  get dateTimeFilter(): (date: T | null) => boolean;
1933
1987
  set dateTimeFilter(filter: (date: T | null) => boolean);
1934
- /** The minimum valid date. */
1988
+ /** Минимальная допустимая дата */
1935
1989
  private _min;
1936
1990
  get minDateTime(): T | null;
1937
1991
  set minDateTime(value: T | null);
1938
- /** The maximum valid date. */
1992
+ /** Максимальная допустимая дата */
1939
1993
  private _max;
1940
1994
  get maxDateTime(): T | null;
1941
1995
  set maxDateTime(value: T | null);
@@ -1946,17 +2000,17 @@ declare class OwlDateTimeInlineComponent<T> extends OwlDateTime<T> implements On
1946
2000
  get values(): (T | null)[];
1947
2001
  set values(values: (T | null)[]);
1948
2002
  /**
1949
- * Emits selected year in multi-year view
1950
- * This doesn't imply a change on the selected date.
2003
+ * Передаёт выбранный год в представлении нескольких лет
2004
+ * При этом выбранная дата не изменяется
1951
2005
  * */
1952
2006
  yearSelected: EventEmitter<T>;
1953
2007
  /**
1954
- * Emits selected month in year view
1955
- * This doesn't imply a change on the selected date.
2008
+ * Передаёт выбранный месяц в представлении года
2009
+ * При этом выбранная дата не изменяется
1956
2010
  * */
1957
2011
  monthSelected: EventEmitter<T>;
1958
2012
  /**
1959
- * Emits selected date
2013
+ * Передаёт выбранную дату
1960
2014
  * */
1961
2015
  dateSelected: EventEmitter<T>;
1962
2016
  private _selected;
@@ -1980,15 +2034,15 @@ declare class OwlDateTimeInlineComponent<T> extends OwlDateTime<T> implements On
1980
2034
  setDisabledState(isDisabled: boolean): void;
1981
2035
  select(date: T[] | T): void;
1982
2036
  /**
1983
- * Emits the selected year in multi-year view
2037
+ * Передаёт выбранный год в представлении нескольких лет
1984
2038
  * */
1985
2039
  selectYear(normalizedYear: T): void;
1986
2040
  /**
1987
- * Emits selected month in year view
2041
+ * Передаёт выбранный месяц в представлении года
1988
2042
  * */
1989
2043
  selectMonth(normalizedMonth: T): void;
1990
2044
  /**
1991
- * Emits the selected date
2045
+ * Передаёт выбранную дату
1992
2046
  * */
1993
2047
  selectDate(normalizedDate: T): void;
1994
2048
  static ɵfac: i0.ɵɵFactoryDeclaration<OwlDateTimeInlineComponent<any>, [null, { optional: true; }, { optional: true; }]>;
@@ -2022,33 +2076,33 @@ declare class UnixTimestampDateTimeAdapter extends DateTimeAdapter<number> {
2022
2076
  private owlDateTimeLocale;
2023
2077
  firstMonthOfTheYear: number;
2024
2078
  /**
2025
- * Picker expects:
2026
- * 0 - Sunday
2027
- * 1 - Monday
2079
+ * Компонент выбора даты ожидает:
2080
+ * 0 - воскресенье
2081
+ * 1 - понедельник
2028
2082
  * ...
2029
- * 6 - Saturday
2083
+ * 6 - суббота
2030
2084
  */
2031
2085
  firstDayOfTheWeek: number;
2032
2086
  constructor(owlDateTimeLocale: string);
2033
2087
  getYear(date: number): number;
2034
2088
  /**
2035
- * Picker expects:
2036
- * 0 - January
2037
- * 11 - December
2089
+ * Компонент выбора даты ожидает:
2090
+ * 0 - январь
2091
+ * 11 - декабрь
2038
2092
  *
2039
- * Luxon uses:
2040
- * 1 - January
2041
- * 12 - December
2093
+ * Luxon использует:
2094
+ * 1 - январь
2095
+ * 12 - декабрь
2042
2096
  */
2043
2097
  getMonth(date: number): number;
2044
2098
  /**
2045
- * Picker expects:
2046
- * 0 - Sunday
2047
- * 6 - Saturday
2099
+ * Компонент выбора даты ожидает:
2100
+ * 0 - воскресенье
2101
+ * 6 - суббота
2048
2102
  *
2049
- * Luxon weekday:
2050
- * 1 - Monday
2051
- * 7 - Sunday
2103
+ * День недели в Luxon:
2104
+ * 1 - понедельник
2105
+ * 7 - воскресенье
2052
2106
  */
2053
2107
  getDay(date: number): number;
2054
2108
  getDate(date: number): number;
@@ -2078,9 +2132,9 @@ declare class UnixTimestampDateTimeAdapter extends DateTimeAdapter<number> {
2078
2132
  clone(date: number): number;
2079
2133
  now(): number;
2080
2134
  /**
2081
- * Hybrid formatter:
2082
- * - string => Luxon format, e.g. 'dd.MM.yyyy HH:mm'
2083
- * - Intl.DateTimeFormatOptions => old adapter-compatible formatting
2135
+ * Форматирование с поддержкой двух видов формата:
2136
+ * - string => формат Luxon, например 'dd.MM.yyyy HH:mm'
2137
+ * - Intl.DateTimeFormatOptions => форматирование, совместимое с прежним адаптером
2084
2138
  */
2085
2139
  format(date: number, displayFormat: string | Intl.DateTimeFormatOptions): string;
2086
2140
  parse(value: unknown, parseFormat: string | string[] | null): number | null;
@@ -2102,32 +2156,32 @@ declare class LuxonDateTimeAdapter extends DateTimeAdapter<DateTime> {
2102
2156
  private owlDateTimeLocale;
2103
2157
  firstMonthOfTheYear: number;
2104
2158
  /**
2105
- * 0 - Sunday
2106
- * 1 - Monday
2159
+ * 0 - воскресенье
2160
+ * 1 - понедельник
2107
2161
  * ...
2108
- * 6 - Saturday
2162
+ * 6 - суббота
2109
2163
  */
2110
2164
  firstDayOfTheWeek: number;
2111
2165
  constructor(owlDateTimeLocale: string);
2112
2166
  getYear(date: DateTime): number;
2113
2167
  /**
2114
- * Picker expects month index:
2115
- * 0 - January
2116
- * 11 - December
2168
+ * Компонент выбора даты ожидает индекс месяца:
2169
+ * 0 - январь
2170
+ * 11 - декабрь
2117
2171
  *
2118
- * Luxon uses:
2119
- * 1 - January
2120
- * 12 - December
2172
+ * Luxon использует:
2173
+ * 1 - январь
2174
+ * 12 - декабрь
2121
2175
  */
2122
2176
  getMonth(date: DateTime): number;
2123
2177
  /**
2124
- * Picker expects:
2125
- * 0 - Sunday
2126
- * 6 - Saturday
2178
+ * Компонент выбора даты ожидает:
2179
+ * 0 - воскресенье
2180
+ * 6 - суббота
2127
2181
  *
2128
- * Luxon weekday:
2129
- * 1 - Monday
2130
- * 7 - Sunday
2182
+ * День недели в Luxon:
2183
+ * 1 - понедельник
2184
+ * 7 - воскресенье
2131
2185
  */
2132
2186
  getDay(date: DateTime): number;
2133
2187
  getDate(date: DateTime): number;
@@ -2157,7 +2211,7 @@ declare class LuxonDateTimeAdapter extends DateTimeAdapter<DateTime> {
2157
2211
  clone(date: DateTime): DateTime;
2158
2212
  now(): DateTime;
2159
2213
  format(date: DateTime, displayFormat: string): string;
2160
- parse(value: unknown, parseFormat: string | string[]): DateTime | null;
2214
+ parse(value: unknown, parseFormat: string | string[] | null): DateTime | null;
2161
2215
  deserialize(value: unknown): DateTime | null;
2162
2216
  setLocale(locale: string): void;
2163
2217
  static ɵfac: i0.ɵɵFactoryDeclaration<LuxonDateTimeAdapter, [{ optional: true; }]>;
@@ -2166,28 +2220,5 @@ declare class LuxonDateTimeAdapter extends DateTimeAdapter<DateTime> {
2166
2220
 
2167
2221
  declare const OWL_LUXON_DATE_TIME_FORMATS: OwlDateTimeFormats;
2168
2222
 
2169
- declare function defaultOptionsFactory(): Options;
2170
- declare function multiYearOptionsFactory(options: Options): {
2171
- yearsPerRow: number;
2172
- yearRows: number;
2173
- };
2174
- interface Options {
2175
- multiYear: {
2176
- yearsPerRow: number;
2177
- yearRows: number;
2178
- };
2179
- }
2180
- declare class DefaultOptions {
2181
- static create(): Options;
2182
- }
2183
- declare abstract class OptionsTokens {
2184
- static all: InjectionToken<Options>;
2185
- static multiYear: InjectionToken<{
2186
- yearsPerRow: number;
2187
- yearRows: number;
2188
- }>;
2189
- }
2190
- declare const optionsProviders: Provider[];
2191
-
2192
2223
  export { CalendarCell, DateTimeAdapter, DateView, DefaultOptions, LuxonDateTimeAdapter, LuxonDateTimeModule, OWL_DATETIME_VALIDATORS, OWL_DATETIME_VALUE_ACCESSOR, OWL_DATE_TIME_FORMATS, OWL_DATE_TIME_LOCALE, OWL_DATE_TIME_LOCALE_PROVIDER, OWL_LUXON_DATE_TIME_FORMATS, OWL_UNIX_TIMESTAMP_DATE_TIME_FORMATS, OptionsTokens, OwlCalendarBodyComponent, OwlCalendarComponent, OwlDateTimeComponent, OwlDateTimeInlineComponent, OwlDateTimeInputDirective, OwlDateTimeIntl, OwlDateTimeModule, OwlDateTimeTriggerDirective, OwlLuxonDateTimeModule, OwlMonthViewComponent, OwlMultiYearViewComponent, OwlTimerComponent, OwlYearViewComponent, UnixTimestampDateTimeAdapter, defaultOptionsFactory, multiYearOptionsFactory, optionsProviders };
2193
2224
  export type { DateViewType, Options, OwlDateTimeFormats, PickerMode, PickerType, SelectMode };