@rt-tools/ui-kit-v2 0.3.0 → 0.5.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.
- package/README.md +25 -16
- package/fesm2022/rt-tools-ui-kit-v2.mjs +732 -1351
- package/fesm2022/rt-tools-ui-kit-v2.mjs.map +1 -1
- package/package.json +1 -2
- package/rt-tools-ui-kit-v2-0.5.0.tgz +0 -0
- package/src/lib/components/CONTEXT.md +1 -1
- package/src/lib/components/bar-list/CONTEXT.md +5 -5
- package/src/lib/components/button/rt-button.directive.scss +4 -0
- package/src/lib/components/checkbox/rt-checkbox.component.scss +6 -2
- package/src/lib/components/confirm-popover/CONTEXT.md +8 -8
- package/src/lib/components/container/CONTEXT.md +22 -0
- package/src/lib/components/dialog/footer/rt-dialog-footer.component.scss +20 -9
- package/src/lib/components/dialog/header/rt-dialog-header.component.scss +27 -15
- package/src/lib/components/download-link/CONTEXT.md +1 -1
- package/src/lib/components/download-link/rt-download-link.component.scss +13 -0
- package/src/lib/components/file-drop/CONTEXT.md +6 -6
- package/src/lib/components/file-input/CONTEXT.md +6 -6
- package/src/lib/components/live-badge/CONTEXT.md +5 -5
- package/src/lib/components/menu/CONTEXT.md +6 -6
- package/src/lib/components/message-composer/CONTEXT.md +10 -10
- package/src/lib/components/multiselect/CONTEXT.md +6 -6
- package/src/lib/components/night-grid/CONTEXT.md +4 -4
- package/src/lib/components/page-header/CONTEXT.md +7 -7
- package/src/lib/components/pagination/CONTEXT.md +1 -1
- package/src/lib/components/select/CONTEXT.md +8 -8
- package/src/lib/components/split-button/CONTEXT.md +7 -7
- package/src/lib/components/split-button/rt-split-button.component.scss +13 -0
- package/src/lib/components/stat-tile/CONTEXT.md +1 -1
- package/src/lib/components/table/CONTEXT.md +1 -1
- package/src/lib/components/table/sort-header/CONTEXT.md +40 -0
- package/src/lib/components/tabs/CONTEXT.md +14 -9
- package/src/lib/components/tag/CONTEXT.md +2 -2
- package/src/lib/components/theme-toggle/CONTEXT.md +1 -1
- package/src/lib/components/toast/CONTEXT.md +8 -0
- package/src/lib/components/toggle-switch/rt-toggle-switch.component.scss +6 -2
- package/src/styles/_semantic.scss +11 -2
- package/styles/tokens.css +12 -1
- package/types/rt-tools-ui-kit-v2.d.ts +324 -74
- package/rt-tools-ui-kit-v2-0.3.0.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InputSignal, WritableSignal, Renderer2, InjectionToken, Signal,
|
|
2
|
+
import { InputSignal, WritableSignal, Renderer2, InjectionToken, Signal, EnvironmentProviders, InputSignalWithTransform, OutputEmitterRef, OnInit, OnDestroy, TemplateRef, ElementRef, AfterViewInit, DestroyRef, AfterContentInit, PipeTransform, ModelSignal } from '@angular/core';
|
|
3
3
|
import { OverlayRef, ComponentType, ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
4
|
import { Observable, MonoTypeOperatorFunction } from 'rxjs';
|
|
5
5
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
@@ -191,6 +191,262 @@ declare class RtAsideService {
|
|
|
191
191
|
*/
|
|
192
192
|
declare const RT_ASIDE_DATA: InjectionToken<unknown>;
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Английские подписи кита — умолчание, а не локализация.
|
|
196
|
+
*
|
|
197
|
+
* Кит рисует часть текста сам: кнопки диалогов, тексты ошибок поля, расшифровки
|
|
198
|
+
* иконок для скринридера. Своего языка у него нет и быть не может — его знает
|
|
199
|
+
* приложение и отдаёт функцией-переводчиком (`provideRtKitLabels`). Этот набор
|
|
200
|
+
* стоит под ней умолчанием, чтобы кит без единой настройки не рисовал пустоты:
|
|
201
|
+
* среди ключей много `aria`-подписей, и пустая там означает кнопку без имени
|
|
202
|
+
* для скринридера.
|
|
203
|
+
*
|
|
204
|
+
* Набор задаёт и **перечень ключей**: `RtKitLabelKey` выводится отсюда, поэтому
|
|
205
|
+
* опечатка в ключе не доживает до рантайма.
|
|
206
|
+
*
|
|
207
|
+
* Места вида `{{name}}` заполняются параметрами — их принимает `rtKitLabel()`.
|
|
208
|
+
*/
|
|
209
|
+
declare const RT_KIT_LABELS_EN: {
|
|
210
|
+
readonly bottomSheetClose: "Close";
|
|
211
|
+
readonly chatAttachAria: "Attach a file";
|
|
212
|
+
readonly chatAttachTooltip: "Attach a file";
|
|
213
|
+
readonly chatAttachmentFallback: "Attachment";
|
|
214
|
+
readonly chatCollapse: "Collapse chat";
|
|
215
|
+
readonly chatComposerAria: "Message input";
|
|
216
|
+
readonly chatDeleteAria: "Delete message";
|
|
217
|
+
readonly chatDeleteTooltip: "Delete";
|
|
218
|
+
readonly chatDropOverlay: "Drop the files to attach them to your message";
|
|
219
|
+
readonly chatEmptyHint: "Chat is not available yet.";
|
|
220
|
+
readonly chatEmptyThread: "No messages yet.";
|
|
221
|
+
readonly chatExpand: "Expand chat to full screen";
|
|
222
|
+
readonly chatMessageDeleted: "Message deleted";
|
|
223
|
+
readonly chatPlaceholder: "Type a message";
|
|
224
|
+
readonly chatRefreshAria: "Refresh messages";
|
|
225
|
+
readonly chatRefreshTooltip: "Refresh messages";
|
|
226
|
+
readonly chatRetryAria: "Send again";
|
|
227
|
+
readonly chatRetryTooltip: "Retry";
|
|
228
|
+
readonly chatSendAria: "Send message";
|
|
229
|
+
readonly chatSendLabel: "Send";
|
|
230
|
+
readonly chatStatusFailed: "Not sent";
|
|
231
|
+
readonly chatStatusRead: "Read";
|
|
232
|
+
readonly chatStatusSending: "Sending";
|
|
233
|
+
readonly chatStatusSent: "Delivered";
|
|
234
|
+
readonly chatTitle: "Chat";
|
|
235
|
+
readonly counterDecrease: "Decrease";
|
|
236
|
+
readonly counterIncrease: "Increase";
|
|
237
|
+
readonly fieldErrorEmail: "Invalid email";
|
|
238
|
+
readonly fieldErrorMax: "Value is too large";
|
|
239
|
+
readonly fieldErrorMaxLength: "Value is too long";
|
|
240
|
+
readonly fieldErrorMin: "Value is too small";
|
|
241
|
+
readonly fieldErrorMinLength: "Value is too short";
|
|
242
|
+
readonly fieldErrorPattern: "Invalid format";
|
|
243
|
+
readonly fieldErrorRequired: "Required field";
|
|
244
|
+
readonly photoViewerClose: "Close viewer";
|
|
245
|
+
readonly photoViewerNext: "Next photo";
|
|
246
|
+
readonly photoViewerPrev: "Previous photo";
|
|
247
|
+
readonly themeToggleLabel: "Switch theme";
|
|
248
|
+
readonly uiActions: "Actions";
|
|
249
|
+
readonly uiAuditEmptyHint: "Deal events will appear here — stage changes and other actions.";
|
|
250
|
+
readonly uiBack: "Back";
|
|
251
|
+
readonly uiBackToList: "Back to list";
|
|
252
|
+
readonly uiBaseline: "was {{value}}";
|
|
253
|
+
readonly uiCancel: "Cancel";
|
|
254
|
+
readonly uiChangeAgent: "Change agent";
|
|
255
|
+
readonly uiChooseFile: "Choose file";
|
|
256
|
+
readonly uiClear: "Clear";
|
|
257
|
+
readonly uiClose: "Close";
|
|
258
|
+
readonly uiCollapse: "Collapse";
|
|
259
|
+
readonly uiColumnLocked: "Column is pinned";
|
|
260
|
+
readonly uiColumnSettings: "Column settings";
|
|
261
|
+
readonly uiColumnSettingsTitle: "Configure columns";
|
|
262
|
+
readonly uiCommentOptional: "Comment (optional)";
|
|
263
|
+
readonly uiConfirm: "Confirm";
|
|
264
|
+
readonly uiConfirmAction: "Confirm action";
|
|
265
|
+
readonly uiContinue: "Continue";
|
|
266
|
+
readonly uiCopied: "Copied";
|
|
267
|
+
readonly uiCopy: "Copy";
|
|
268
|
+
readonly uiCurrentStage: "Current stage";
|
|
269
|
+
readonly uiDetails: "Details";
|
|
270
|
+
readonly uiDownload: "Download";
|
|
271
|
+
readonly uiDownloadFile: "Download: {{name}}";
|
|
272
|
+
readonly uiDragColumn: "Drag column";
|
|
273
|
+
readonly uiFileDropOverlay: "Drop the files to attach them";
|
|
274
|
+
readonly uiFilters: "Filters";
|
|
275
|
+
readonly uiForward: "Forward";
|
|
276
|
+
readonly uiHide: "Hide";
|
|
277
|
+
readonly uiHideColumn: "Hide column";
|
|
278
|
+
readonly uiHidePassword: "Hide password";
|
|
279
|
+
readonly uiHint: "Hint";
|
|
280
|
+
readonly uiHistory: "History";
|
|
281
|
+
readonly uiInviteUser: "Invite user";
|
|
282
|
+
readonly uiItemsPerPage: "Items per page";
|
|
283
|
+
readonly uiLiveOnSite: "On the site now";
|
|
284
|
+
readonly uiLoadMore: "Load more";
|
|
285
|
+
readonly uiMainNav: "Main navigation";
|
|
286
|
+
readonly uiMore: "More";
|
|
287
|
+
readonly uiMoreActions: "More actions";
|
|
288
|
+
readonly uiMoveStage: "Move";
|
|
289
|
+
readonly uiMoveStageAria: "Move stage";
|
|
290
|
+
readonly uiNavMenu: "Navigation menu";
|
|
291
|
+
readonly uiNavUnread: "Unread";
|
|
292
|
+
readonly uiNextPage: "Next page";
|
|
293
|
+
readonly uiNightGridAria: "Occupancy grid";
|
|
294
|
+
readonly uiNoData: "No data yet";
|
|
295
|
+
readonly uiNoOptions: "No options";
|
|
296
|
+
readonly uiNoRows: "No data";
|
|
297
|
+
readonly uiNothingFound: "Nothing found";
|
|
298
|
+
readonly uiNotifications: "Notifications";
|
|
299
|
+
readonly uiPageOf: "Page {{page}} of {{last}}";
|
|
300
|
+
readonly uiPagination: "Pagination";
|
|
301
|
+
readonly uiPerPage: "Per page:";
|
|
302
|
+
readonly uiPickAgent: "Select an agent";
|
|
303
|
+
readonly uiPickAnotherAgent: "Select a different agent";
|
|
304
|
+
readonly uiPickTransition: "Select a transition";
|
|
305
|
+
readonly uiPrevPage: "Previous page";
|
|
306
|
+
readonly uiProfile: "Profile";
|
|
307
|
+
readonly uiRangeEmpty: "0 of 0";
|
|
308
|
+
readonly uiRangeOf: "{{from}}–{{to}} of {{total}}";
|
|
309
|
+
readonly uiRemove: "Delete";
|
|
310
|
+
readonly uiRename: "Rename";
|
|
311
|
+
readonly uiReplace: "Replace";
|
|
312
|
+
readonly uiReplaceAgentTitle: "Replace agent";
|
|
313
|
+
readonly uiResetDefaults: "Reset to defaults";
|
|
314
|
+
readonly uiResizeDetails: "Resize details pane";
|
|
315
|
+
readonly uiResizeList: "Resize list pane";
|
|
316
|
+
readonly uiRevert: "Revert";
|
|
317
|
+
readonly uiSave: "Save";
|
|
318
|
+
readonly uiSaveNewAgent: "Save the new agent";
|
|
319
|
+
readonly uiSearch: "Search";
|
|
320
|
+
readonly uiSectionInProgress: "{{label}} — section under development";
|
|
321
|
+
readonly uiSelectValues: "Select values";
|
|
322
|
+
readonly uiShow: "Show";
|
|
323
|
+
readonly uiShowColumn: "Show column";
|
|
324
|
+
readonly uiShowDetails: "Show details";
|
|
325
|
+
readonly uiShowPassword: "Show password";
|
|
326
|
+
readonly uiStageNoteHint: "Internal note — the client will not see it.";
|
|
327
|
+
readonly uiStageTransition: "Stage transition";
|
|
328
|
+
readonly uiSubscribeNotifications: "Subscribe to notifications";
|
|
329
|
+
readonly uiTabInvalid: "This tab contains errors";
|
|
330
|
+
readonly uiTargetStage: "Target stage";
|
|
331
|
+
readonly uiTargetStageRequired: "Select a target stage.";
|
|
332
|
+
readonly uiThreadListEmptyHint: "New threads will appear here.";
|
|
333
|
+
readonly uiToList: "To list";
|
|
334
|
+
readonly uiUnsavedDiscard: "Close without saving";
|
|
335
|
+
readonly uiUnsavedMessage: "The panel has edits that have not been saved yet. Choose what to do with them.";
|
|
336
|
+
readonly uiUnsavedSave: "Save and close";
|
|
337
|
+
readonly uiUnsavedStay: "Stay";
|
|
338
|
+
readonly uiUnsavedTitle: "Unsaved changes";
|
|
339
|
+
readonly uiWelcomeAria: "Welcome message for a new user";
|
|
340
|
+
readonly uiYearOverYear: "YoY";
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Ключ подписи кита. Перечень выводится из английского набора — того самого,
|
|
345
|
+
* что стоит умолчанием, — поэтому ключа, которого кит не рисует, не существует,
|
|
346
|
+
* а опечатка не доживает до рантайма.
|
|
347
|
+
*/
|
|
348
|
+
type RtKitLabelKey = keyof typeof RT_KIT_LABELS_EN;
|
|
349
|
+
/**
|
|
350
|
+
* Подстановки в места вида `{{name}}`. Их просят пять подписей: строка
|
|
351
|
+
* сравнения, имя скачиваемого файла, «страница N из M», диапазон записей и
|
|
352
|
+
* подпись раздела в разработке.
|
|
353
|
+
*/
|
|
354
|
+
type RtKitLabelParams = Readonly<Record<string, string | number>>;
|
|
355
|
+
/**
|
|
356
|
+
* Чем кит получает подпись. Даёт её приложение — оно одно знает и язык
|
|
357
|
+
* продукта, и его формулировки.
|
|
358
|
+
*
|
|
359
|
+
* Возвращать функция обязана готовую строку: подстановки уже сделаны, ключа на
|
|
360
|
+
* экране не бывает. Вернувшая пустое считается не давшей ответа — кит возьмёт
|
|
361
|
+
* английское умолчание, потому что пустая `aria`-подпись означает кнопку без
|
|
362
|
+
* имени для скринридера, а это хуже чужого языка.
|
|
363
|
+
*/
|
|
364
|
+
type RtKitTranslator = (key: RtKitLabelKey, params?: RtKitLabelParams) => string;
|
|
365
|
+
/**
|
|
366
|
+
* Все подписи разом, ключ → готовая строка.
|
|
367
|
+
*
|
|
368
|
+
* Компонент читает карту целиком (`t().uiClose`), а не ключ по одному: одно поле
|
|
369
|
+
* на компонент вместо десятка, и при смене языка перерисовывается всё сразу.
|
|
370
|
+
* Подписи с подстановками в карту не входят — им нужны параметры, и они берутся
|
|
371
|
+
* через `rtKitLabel()`.
|
|
372
|
+
*/
|
|
373
|
+
type RtKitLabelMap = Readonly<Record<RtKitLabelKey, string>>;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Функция, которой кит получает подписи. Её отдаёт приложение —
|
|
377
|
+
* `provideRtKitLabels()`.
|
|
378
|
+
*
|
|
379
|
+
* Токен объявлен **сигналом**, а не просто функцией: приложение, меняющее язык
|
|
380
|
+
* на ходу, кладёт в него новую функцию, и всё, что от неё считано,
|
|
381
|
+
* пересчитывается само.
|
|
382
|
+
*/
|
|
383
|
+
declare const RT_KIT_TRANSLATOR: InjectionToken<Signal<RtKitTranslator>>;
|
|
384
|
+
/**
|
|
385
|
+
* Активная локаль. Ею кит форматирует даты — больше ни для чего она ему не
|
|
386
|
+
* нужна.
|
|
387
|
+
*
|
|
388
|
+
* Данные локали для `DatePipe` регистрирует приложение: без них пайп падает
|
|
389
|
+
* `Missing locale data`, и кит за это не отвечает.
|
|
390
|
+
*/
|
|
391
|
+
declare const RT_KIT_LOCALE: InjectionToken<Signal<string>>;
|
|
392
|
+
/**
|
|
393
|
+
* Все подписи кита разом, ключ → готовая строка.
|
|
394
|
+
*
|
|
395
|
+
* Этим пользуются компоненты: `t().uiClose` вместо ключа по одному. Карта
|
|
396
|
+
* строится один раз на приложение (`providedIn: 'root'`) и пересчитывается,
|
|
397
|
+
* только когда приложение сменило функцию-переводчик.
|
|
398
|
+
*
|
|
399
|
+
* Подпись, которой переводчик не дал (вернул пустое или упал), берётся
|
|
400
|
+
* английской: пустая `aria`-подпись означает кнопку без имени для скринридера.
|
|
401
|
+
*/
|
|
402
|
+
declare const RT_KIT_LABELS: InjectionToken<Signal<RtKitLabelMap>>;
|
|
403
|
+
/**
|
|
404
|
+
* Одна подпись, а не вся карта.
|
|
405
|
+
*
|
|
406
|
+
* Карте не годятся две вещи: подпись с подстановками (параметры приходят из
|
|
407
|
+
* состояния компонента) и подпись, ключ которой выбирается на ходу — кнопка
|
|
408
|
+
* «свернуть ↔ развернуть», текст ошибки поля по сработавшему валидатору. Обе
|
|
409
|
+
* берутся отсюда. Зовётся в поле класса, в инъекционном контексте.
|
|
410
|
+
*
|
|
411
|
+
* ```typescript
|
|
412
|
+
* readonly #range: Signal<string> = rtKitLabel('uiRangeOf', this.#rangeParams);
|
|
413
|
+
* readonly #expand: Signal<string> = rtKitLabel(computed(() => (this.expanded() ? 'chatCollapse' : 'chatExpand')));
|
|
414
|
+
* ```
|
|
415
|
+
*
|
|
416
|
+
* @param key Ключ подписи — значением или сигналом, если он меняется. Пустой
|
|
417
|
+
* ключ даёт пустую строку: у поля без сработавшего валидатора подписи нет, и
|
|
418
|
+
* умолчание тут показало бы ошибку там, где её не случилось.
|
|
419
|
+
* @param params Подстановки — значением или сигналом, если они меняются.
|
|
420
|
+
*/
|
|
421
|
+
declare function rtKitLabel(key: RtKitLabelKey | '' | Signal<RtKitLabelKey | ''>, params?: RtKitLabelParams | Signal<RtKitLabelParams>): Signal<string>;
|
|
422
|
+
/**
|
|
423
|
+
* Отдаёт киту подписи приложения.
|
|
424
|
+
*
|
|
425
|
+
* Без него кит работает на английском умолчании — оно вшито и покрывает все
|
|
426
|
+
* ключи, поэтому пустой кнопки на экране не бывает никогда.
|
|
427
|
+
*
|
|
428
|
+
* ```typescript
|
|
429
|
+
* export const appConfig: ApplicationConfig = {
|
|
430
|
+
* providers: [
|
|
431
|
+
* provideRtKitLabels({
|
|
432
|
+
* translator: computed(() => (key, params) => transloco.translate(`rtKit.${key}`, params)),
|
|
433
|
+
* locale: toSignal(transloco.langChanges$, { initialValue: transloco.getActiveLang() }),
|
|
434
|
+
* }),
|
|
435
|
+
* ],
|
|
436
|
+
* };
|
|
437
|
+
* ```
|
|
438
|
+
*
|
|
439
|
+
* Способ доставки — дело приложения: Transloco, `$localize`, собственный
|
|
440
|
+
* словарь. Кит знает только ключи и то, что на них отвечают строкой.
|
|
441
|
+
*
|
|
442
|
+
* @param source Функция-переводчик и активная локаль. Локаль необязательна —
|
|
443
|
+
* без неё кит форматирует даты по-английски.
|
|
444
|
+
*/
|
|
445
|
+
declare function provideRtKitLabels(source: {
|
|
446
|
+
readonly translator: Signal<RtKitTranslator>;
|
|
447
|
+
readonly locale?: Signal<string>;
|
|
448
|
+
}): EnvironmentProviders;
|
|
449
|
+
|
|
194
450
|
/**
|
|
195
451
|
* Имена иконок rt-icon. Набор лежит в `assets/icons` пакета, откуда сборка
|
|
196
452
|
* приложения кладёт его туда, куда указывает `provideRtIcons()`. Большинство
|
|
@@ -395,6 +651,7 @@ declare class RtAsideHeaderComponent {
|
|
|
395
651
|
#private;
|
|
396
652
|
/** Текст заголовка — рендерится в `<h2>`. Null/пустая строка вместе с
|
|
397
653
|
* `[loading]=true` показывают skeleton вместо title. */
|
|
654
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
398
655
|
readonly title: InputSignal<string | null>;
|
|
399
656
|
/**
|
|
400
657
|
* Мелкий приглушённый надзаголовок НАД основным title (контекст действия:
|
|
@@ -664,6 +921,7 @@ declare namespace IRtAutocomplete {
|
|
|
664
921
|
*/
|
|
665
922
|
declare class RtAutocompleteComponent<TItem> extends RtFormControlBase<TItem | null> {
|
|
666
923
|
#private;
|
|
924
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
667
925
|
protected readonly panelId: string;
|
|
668
926
|
protected readonly popover: Signal<RtPopoverDirective>;
|
|
669
927
|
protected readonly fieldEl: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
@@ -738,6 +996,7 @@ declare class RtBarListComponent {
|
|
|
738
996
|
|
|
739
997
|
declare class RtBottomSheetComponent {
|
|
740
998
|
#private;
|
|
999
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
741
1000
|
protected readonly dragDeltaY: WritableSignal<number>;
|
|
742
1001
|
protected readonly dragging: WritableSignal<boolean>;
|
|
743
1002
|
readonly open: InputSignal<boolean>;
|
|
@@ -777,7 +1036,7 @@ declare namespace IButton {
|
|
|
777
1036
|
* ```html
|
|
778
1037
|
* <button rtButton label="Войти" theme="primary"></button>
|
|
779
1038
|
* <button rtButton label="Скачать" icon="ico-download" theme="success"></button>
|
|
780
|
-
* <button rtButton icon="
|
|
1039
|
+
* <button rtButton icon="pencil" theme="info" appearance="text"></button>
|
|
781
1040
|
* <button rtButton label="Сохранение..." [loading]="saving()" [disabled]="saving()"></button>
|
|
782
1041
|
* <a rtButton label="Главная" [routerLink]="'/'"></a>
|
|
783
1042
|
* ```
|
|
@@ -1147,13 +1406,14 @@ declare namespace IRtChat {
|
|
|
1147
1406
|
declare class RtChatComponent {
|
|
1148
1407
|
#private;
|
|
1149
1408
|
/**
|
|
1150
|
-
* Дата сообщения форматируется по
|
|
1409
|
+
* Дата сообщения форматируется по активной локали приложения, а не по
|
|
1151
1410
|
* `LOCALE_ID`: тот вычисляется на подъёме приложения и там, где язык
|
|
1152
1411
|
* переключают на ходу, оставил бы часы в прежнем формате до перезагрузки.
|
|
1153
1412
|
*
|
|
1154
1413
|
* Данные локали для `DatePipe` регистрирует приложение: без них пайп падает
|
|
1155
1414
|
* `Missing locale data`, и кит за это не отвечает.
|
|
1156
1415
|
*/
|
|
1416
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
1157
1417
|
protected readonly locale: Signal<string>;
|
|
1158
1418
|
/**
|
|
1159
1419
|
* Скролл-контейнер треда — для автопрокрутки к последнему сообщению.
|
|
@@ -1414,6 +1674,7 @@ declare class RtCheckboxComponent implements ControlValueAccessor {
|
|
|
1414
1674
|
|
|
1415
1675
|
declare class RtCollapsibleTextComponent implements OnDestroy {
|
|
1416
1676
|
#private;
|
|
1677
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
1417
1678
|
protected readonly textRef: Signal<ElementRef<HTMLElement> | undefined>;
|
|
1418
1679
|
protected readonly expanded: WritableSignal<boolean>;
|
|
1419
1680
|
protected readonly overflowing: WritableSignal<boolean>;
|
|
@@ -1868,9 +2129,12 @@ declare abstract class RtRouteAsideComponent<T> implements OnInit {
|
|
|
1868
2129
|
protected onResolved(): void;
|
|
1869
2130
|
protected closeOutlets(): Record<string, Array<string> | null>;
|
|
1870
2131
|
/**
|
|
1871
|
-
* `
|
|
1872
|
-
*
|
|
1873
|
-
*
|
|
2132
|
+
* `successText` — готовый текст тоста об успехе. Он принадлежит конкретной
|
|
2133
|
+
* мутации, а не панели: у снятия промокода и опроса подписки свой текст
|
|
2134
|
+
* успеха, и один на панель показал бы не тот.
|
|
2135
|
+
*
|
|
2136
|
+
* Именно текст, а не ключ словаря: ключ принадлежал бы словарю приложения, а
|
|
2137
|
+
* кит чужих словарей не знает — переводит приложение и передаёт готовое.
|
|
1874
2138
|
*
|
|
1875
2139
|
* `errorText` принимается и функцией: причина отказа известна только после
|
|
1876
2140
|
* него — стор кладёт её в свой сигнал, а панель без стора выводит из ответа
|
|
@@ -1878,7 +2142,7 @@ declare abstract class RtRouteAsideComponent<T> implements OnInit {
|
|
|
1878
2142
|
*/
|
|
1879
2143
|
protected runMutation(op$: Observable<unknown>, opts?: {
|
|
1880
2144
|
onSuccess?: () => void;
|
|
1881
|
-
|
|
2145
|
+
successText?: string;
|
|
1882
2146
|
errorText?: string | ((error: unknown) => string);
|
|
1883
2147
|
closeOnSuccess?: boolean;
|
|
1884
2148
|
refreshOnSuccess?: boolean;
|
|
@@ -1901,19 +2165,6 @@ declare abstract class RtRouteAsideComponent<T> implements OnInit {
|
|
|
1901
2165
|
interface IRtAsideDeactivate {
|
|
1902
2166
|
canDeactivate(): Observable<boolean>;
|
|
1903
2167
|
}
|
|
1904
|
-
/**
|
|
1905
|
-
* Панель с несохранёнными правками спрашивает о них и при смене маршрута, а не
|
|
1906
|
-
* только при закрытии: аутлет `ro` занимает соседняя панель, и правки пропали бы
|
|
1907
|
-
* молча.
|
|
1908
|
-
*
|
|
1909
|
-
* Ставится на каждый ro-маршрут: гард висит на кнопках, нажатии мимо и Esc, а
|
|
1910
|
-
* смену маршрута ловит только роутер.
|
|
1911
|
-
*
|
|
1912
|
-
* Панели может не быть: роутер зовёт гард и для маршрута, чей компонент не создан.
|
|
1913
|
-
* Спрашивать тогда не о чем — уступить место можно. Без этой проверки первая же
|
|
1914
|
-
* такая навигация падает, а следом отказывает любая другая: маршрут остаётся
|
|
1915
|
-
* активным, и приложение застревает на адресе панели.
|
|
1916
|
-
*/
|
|
1917
2168
|
declare const rtAsideUnsavedGuard: CanDeactivateFn<IRtAsideDeactivate | null>;
|
|
1918
2169
|
|
|
1919
2170
|
/**
|
|
@@ -1976,8 +2227,8 @@ declare class RtCounterComponent implements ControlValueAccessor {
|
|
|
1976
2227
|
* берёт компонент, у которого есть доступ к текущей локали; перекрываются
|
|
1977
2228
|
* поштучно через input'ы `decreaseLabel` / `increaseLabel`.
|
|
1978
2229
|
*/
|
|
1979
|
-
declare const RT_COUNTER_DECREASE_KEY:
|
|
1980
|
-
declare const RT_COUNTER_INCREASE_KEY:
|
|
2230
|
+
declare const RT_COUNTER_DECREASE_KEY: RtKitLabelKey;
|
|
2231
|
+
declare const RT_COUNTER_INCREASE_KEY: RtKitLabelKey;
|
|
1981
2232
|
|
|
1982
2233
|
/**
|
|
1983
2234
|
* Строка списка со счётчиком: подпись с пояснением слева, контрол справа,
|
|
@@ -2015,6 +2266,7 @@ declare namespace IRtDatePicker {
|
|
|
2015
2266
|
*/
|
|
2016
2267
|
declare class RtDatePickerComponent extends RtFormControlBase<string> {
|
|
2017
2268
|
#private;
|
|
2269
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2018
2270
|
protected readonly fieldEl: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
2019
2271
|
protected readonly hasValue: Signal<boolean>;
|
|
2020
2272
|
readonly displayText: Signal<string>;
|
|
@@ -2262,6 +2514,7 @@ declare const RT_DIALOG_DATA: InjectionToken<unknown>;
|
|
|
2262
2514
|
declare class RtDialogHeaderComponent {
|
|
2263
2515
|
#private;
|
|
2264
2516
|
/** Текст заголовка — рендерится в `<h2>`. */
|
|
2517
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2265
2518
|
readonly title: InputSignal<string>;
|
|
2266
2519
|
/** Показывать кнопку закрытия в углу заголовка. Дефолт `true`. */
|
|
2267
2520
|
readonly closable: InputSignalWithTransform<boolean, BooleanInput>;
|
|
@@ -2291,6 +2544,11 @@ declare class RtDialogFooterComponent {
|
|
|
2291
2544
|
}
|
|
2292
2545
|
|
|
2293
2546
|
declare class RtDownloadLinkComponent {
|
|
2547
|
+
/**
|
|
2548
|
+
* Подпись для скринридера: имя файла подставляется в неё, поэтому карты
|
|
2549
|
+
* подписей ей мало — параметр приходит из входа.
|
|
2550
|
+
*/
|
|
2551
|
+
protected readonly downloadAriaLabel: Signal<string>;
|
|
2294
2552
|
readonly label: InputSignal<string>;
|
|
2295
2553
|
readonly downloadClick: OutputEmitterRef<void>;
|
|
2296
2554
|
protected onClick(): void;
|
|
@@ -2340,7 +2598,7 @@ declare namespace IRtField {
|
|
|
2340
2598
|
* страницы ещё неизвестен, и готовый текст остался бы на языке по умолчанию
|
|
2341
2599
|
* даже под переведённой подписью поля. Переводит сам компонент поля.
|
|
2342
2600
|
*/
|
|
2343
|
-
declare const RT_FIELD_DEFAULT_ERROR_KEYS:
|
|
2601
|
+
declare const RT_FIELD_DEFAULT_ERROR_KEYS: Readonly<Record<string, RtKitLabelKey>>;
|
|
2344
2602
|
/** Текст-плейсхолдер read-only поля без значения. */
|
|
2345
2603
|
declare const RT_FIELD_EMPTY_VALUE: string;
|
|
2346
2604
|
|
|
@@ -2360,6 +2618,7 @@ declare const RT_FIELD_EMPTY_VALUE: string;
|
|
|
2360
2618
|
*/
|
|
2361
2619
|
declare class RtFieldComponent implements AfterContentInit {
|
|
2362
2620
|
#private;
|
|
2621
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2363
2622
|
protected readonly projectedControl: Signal<RtFormControlBase<unknown> | undefined>;
|
|
2364
2623
|
protected readonly projectedHint: Signal<RtFieldHintDirective | undefined>;
|
|
2365
2624
|
/** Итоговый id: явный controlId контрола важнее авто-id. */
|
|
@@ -2438,6 +2697,7 @@ declare namespace IRtFileCard {
|
|
|
2438
2697
|
*/
|
|
2439
2698
|
declare class RtFileCardComponent {
|
|
2440
2699
|
/** Имя цветной иконки типа файла по расширению. */
|
|
2700
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2441
2701
|
protected readonly iconName: Signal<IRtIcon.Name>;
|
|
2442
2702
|
/** Заголовок карточки, выведенный из имени файла (без расширения, разделители → пробелы). */
|
|
2443
2703
|
protected readonly title: Signal<string>;
|
|
@@ -2724,6 +2984,7 @@ declare class RtFilterControlComponent<T = string> {
|
|
|
2724
2984
|
* страницы в dark).
|
|
2725
2985
|
*/
|
|
2726
2986
|
declare class RtHeaderComponent {
|
|
2987
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2727
2988
|
readonly canGoBack: InputSignal<boolean>;
|
|
2728
2989
|
/** Показывать action-иконку «Пригласить пользователя» слева от колокола. */
|
|
2729
2990
|
readonly showInvite: InputSignalWithTransform<boolean, boolean | string>;
|
|
@@ -2836,6 +3097,7 @@ declare class RtInfoItemComponent {
|
|
|
2836
3097
|
* Все размеры/цвета — через `--rt-input-*` semantic-токены.
|
|
2837
3098
|
*/
|
|
2838
3099
|
declare class RtInputComponent extends RtFormControlBase<string> {
|
|
3100
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2839
3101
|
protected readonly fieldEl: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
2840
3102
|
protected readonly isPasswordVisible: WritableSignal<boolean>;
|
|
2841
3103
|
protected readonly hasValue: Signal<boolean>;
|
|
@@ -2883,6 +3145,7 @@ declare class RtInputComponent extends RtFormControlBase<string> {
|
|
|
2883
3145
|
*/
|
|
2884
3146
|
declare class RtInputNumberComponent extends RtFormControlBase<number | null> {
|
|
2885
3147
|
#private;
|
|
3148
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
2886
3149
|
protected readonly fieldEl: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
2887
3150
|
protected readonly displayValue: WritableSignal<string>;
|
|
2888
3151
|
protected readonly hasValue: Signal<boolean>;
|
|
@@ -3189,6 +3452,7 @@ declare class RtMessageComponent {
|
|
|
3189
3452
|
* передайте пустую строку как `[icon]` — она будет falsy и не «победит» default.
|
|
3190
3453
|
* Полное отключение делается через severity `secondary` / `neutral`.
|
|
3191
3454
|
*/
|
|
3455
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3192
3456
|
protected readonly effectiveIcon: Signal<IRtIcon.Name | null>;
|
|
3193
3457
|
/** Семантическая палитра. По умолчанию `info` (синий info-banner). */
|
|
3194
3458
|
readonly severity: InputSignal<IRtTag.Severity>;
|
|
@@ -3220,6 +3484,7 @@ interface IComposerFormShape {
|
|
|
3220
3484
|
*/
|
|
3221
3485
|
declare class RtMessageComposerComponent {
|
|
3222
3486
|
#private;
|
|
3487
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3223
3488
|
protected readonly placeholderText: Signal<string>;
|
|
3224
3489
|
protected readonly fileInput: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
3225
3490
|
protected readonly form: FormGroup<IComposerFormShape>;
|
|
@@ -3305,6 +3570,7 @@ declare class RtMoneyRowComponent {
|
|
|
3305
3570
|
*/
|
|
3306
3571
|
declare class RtMultiselectComponent<TValue> extends RtFormControlBase<ReadonlyArray<TValue>> {
|
|
3307
3572
|
#private;
|
|
3573
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3308
3574
|
protected readonly panelId: string;
|
|
3309
3575
|
protected readonly placeholderText: Signal<string>;
|
|
3310
3576
|
protected readonly popover: Signal<RtPopoverDirective>;
|
|
@@ -3524,6 +3790,7 @@ declare namespace IRtPageHeaderView {
|
|
|
3524
3790
|
*/
|
|
3525
3791
|
declare class RtPageHeaderComponent {
|
|
3526
3792
|
#private;
|
|
3793
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3527
3794
|
protected readonly mobileNavPopoverRef: Signal<RtPopoverDirective | undefined>;
|
|
3528
3795
|
/** Форма пункта решается один раз здесь, а не ветвлениями в шаблоне. */
|
|
3529
3796
|
protected readonly sections: Signal<ReadonlyArray<IRtPageHeaderView.Section>>;
|
|
@@ -3553,6 +3820,12 @@ declare class RtPageHeaderComponent {
|
|
|
3553
3820
|
readonly itemClick: OutputEmitterRef<string>;
|
|
3554
3821
|
readonly userClick: OutputEmitterRef<void>;
|
|
3555
3822
|
constructor();
|
|
3823
|
+
/**
|
|
3824
|
+
* Подпись раздела в разработке. Методом, а не сигналом: имя раздела приходит
|
|
3825
|
+
* элементом цикла, и до него подписи ещё нет. Метод читает сигнал
|
|
3826
|
+
* переводчика, поэтому смена языка перерисовывает разметку и зовёт его заново.
|
|
3827
|
+
*/
|
|
3828
|
+
protected sectionInProgressLabel(label: string): string;
|
|
3556
3829
|
protected onItemClick(id: string): void;
|
|
3557
3830
|
protected onUserClick(): void;
|
|
3558
3831
|
/** Аккордеон мобильной панели: тумблер раскрытия раздела по его id. */
|
|
@@ -3615,6 +3888,7 @@ declare namespace IRtPhotoViewer {
|
|
|
3615
3888
|
*/
|
|
3616
3889
|
declare class RtPhotoViewerComponent {
|
|
3617
3890
|
#private;
|
|
3891
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3618
3892
|
protected readonly track: Signal<ElementRef<HTMLElement> | undefined>;
|
|
3619
3893
|
protected readonly photos: readonly IRtPhotoViewer.Photo[];
|
|
3620
3894
|
/** Панель правки под дорожкой; там, где кадр только смотрят, её нет */
|
|
@@ -3661,7 +3935,14 @@ declare namespace IRtPagination {
|
|
|
3661
3935
|
}
|
|
3662
3936
|
|
|
3663
3937
|
declare class RtPaginationComponent {
|
|
3938
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3664
3939
|
protected readonly perPageSelectOptions: Signal<ReadonlyArray<IRtSelect.Option<number>>>;
|
|
3940
|
+
/**
|
|
3941
|
+
* Диапазон записей и номер страницы — с подстановками, поэтому карте подписей
|
|
3942
|
+
* они не годятся: числа приходят из модели страницы.
|
|
3943
|
+
*/
|
|
3944
|
+
protected readonly rangeLabel: Signal<string>;
|
|
3945
|
+
protected readonly pageLabel: Signal<string>;
|
|
3665
3946
|
protected readonly isFirst: Signal<boolean>;
|
|
3666
3947
|
protected readonly isLast: Signal<boolean>;
|
|
3667
3948
|
readonly pageModel: InputSignal<IPageModel>;
|
|
@@ -3725,6 +4006,7 @@ type IBooleanInput = boolean | string;
|
|
|
3725
4006
|
*/
|
|
3726
4007
|
declare class RtSelectComponent<TValue> extends RtFormControlBase<TValue | null> {
|
|
3727
4008
|
#private;
|
|
4009
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3728
4010
|
protected readonly panelId: string;
|
|
3729
4011
|
protected readonly filterPlaceholderText: Signal<string>;
|
|
3730
4012
|
protected readonly popover: Signal<RtPopoverDirective>;
|
|
@@ -3971,6 +4253,7 @@ declare class RtStatTileComponent {
|
|
|
3971
4253
|
* = null) не рисуется вовсе: «—» рядом с цифрой читается как поломка, а не
|
|
3972
4254
|
* как «сравнивать не с чем».
|
|
3973
4255
|
*/
|
|
4256
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
3974
4257
|
protected readonly primaryDelta: Signal<IDeltaRow | null>;
|
|
3975
4258
|
/** Годовое сравнение — отдельным компактным чипом, без слов в строке. */
|
|
3976
4259
|
protected readonly yearDelta: Signal<IDeltaRow | null>;
|
|
@@ -4554,6 +4837,7 @@ declare class RtTableSettingsRegistry {
|
|
|
4554
4837
|
declare class RtTableSettingsAsideComponent extends RtRouteAsideComponent<never> {
|
|
4555
4838
|
#private;
|
|
4556
4839
|
/** Рабочая копия списка колонок (сидится из регистрации, редактируется телом-панелью). */
|
|
4840
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
4557
4841
|
protected readonly items: WritableSignal<ReadonlyArray<IRtTable.ColumnSettingItem>>;
|
|
4558
4842
|
constructor();
|
|
4559
4843
|
protected resolve(): Observable<never | null>;
|
|
@@ -4572,6 +4856,7 @@ declare class RtTableSettingsAsideComponent extends RtRouteAsideComponent<never>
|
|
|
4572
4856
|
* для «Сохранить»/«Сбросить» и передаёт сюда через `[(items)]`.
|
|
4573
4857
|
*/
|
|
4574
4858
|
declare class RtTableSettingsPanelComponent {
|
|
4859
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
4575
4860
|
readonly items: ModelSignal<ReadonlyArray<IRtTable.ColumnSettingItem>>;
|
|
4576
4861
|
/** Reorder через drag-drop. Locked-строки drag-disabled; индексы — по всему списку. */
|
|
4577
4862
|
protected onDrop(event: CdkDragDrop<ReadonlyArray<IRtTable.ColumnSettingItem>>): void;
|
|
@@ -4643,8 +4928,14 @@ declare class RtTabDirective {
|
|
|
4643
4928
|
declare class RtTabsControlDirective {
|
|
4644
4929
|
/** Шаблон контрола, выводимый в header-слоте. */
|
|
4645
4930
|
readonly templateRef: TemplateRef<unknown>;
|
|
4646
|
-
/**
|
|
4647
|
-
|
|
4931
|
+
/**
|
|
4932
|
+
* Сторона размещения относительно полосы вкладок.
|
|
4933
|
+
*
|
|
4934
|
+
* Пустое значение приводится к правой стороне: `<ng-template rtTabsControl>` без значения
|
|
4935
|
+
* задаёт входу пустую строку, а не умолчание, и такой контрол не попадал ни в левый слот,
|
|
4936
|
+
* ни в правый — он пропадал из шапки вовсе.
|
|
4937
|
+
*/
|
|
4938
|
+
readonly side: InputSignalWithTransform<IRtTabs.ControlSide, IRtTabs.ControlSide | ''>;
|
|
4648
4939
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtTabsControlDirective, never>;
|
|
4649
4940
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtTabsControlDirective, "[rtTabsControl]", never, { "side": { "alias": "rtTabsControl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4650
4941
|
}
|
|
@@ -4724,6 +5015,7 @@ declare class RtTabsComponent {
|
|
|
4724
5015
|
*/
|
|
4725
5016
|
declare class RtTagComponent {
|
|
4726
5017
|
/** Текст pill — обязательный input. */
|
|
5018
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
4727
5019
|
readonly value: InputSignal<string>;
|
|
4728
5020
|
/** Семантическая палитра. По умолчанию `neutral` (нейтральный серый). */
|
|
4729
5021
|
readonly severity: InputSignal<IRtTag.Severity>;
|
|
@@ -4880,6 +5172,7 @@ declare class RtThreadListSearchDirective {
|
|
|
4880
5172
|
*/
|
|
4881
5173
|
declare class RtThreadListComponent<TRow extends IRtThreadList.Row> implements OnInit {
|
|
4882
5174
|
#private;
|
|
5175
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
4883
5176
|
protected readonly searchPlaceholderText: Signal<string>;
|
|
4884
5177
|
protected readonly emptyTitle: Signal<string>;
|
|
4885
5178
|
protected readonly skeletonRows: number[];
|
|
@@ -5116,6 +5409,7 @@ declare namespace IRtToaster {
|
|
|
5116
5409
|
|
|
5117
5410
|
declare class RtToastComponent implements AfterViewInit, OnDestroy {
|
|
5118
5411
|
#private;
|
|
5412
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
5119
5413
|
protected readonly icon: Signal<IRtIcon.Name>;
|
|
5120
5414
|
readonly toast: InputSignal<IRtToaster.Toast>;
|
|
5121
5415
|
readonly index: InputSignal<number>;
|
|
@@ -5387,6 +5681,7 @@ declare namespace IRtWelcomeDialog {
|
|
|
5387
5681
|
*/
|
|
5388
5682
|
declare class RtWelcomeDialogComponent {
|
|
5389
5683
|
#private;
|
|
5684
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
5390
5685
|
protected readonly title: string;
|
|
5391
5686
|
protected readonly paragraphs: string[];
|
|
5392
5687
|
/** Своя подпись важнее умолчания: роль знает, куда ведёт кнопка */
|
|
@@ -5442,6 +5737,7 @@ declare class RtWorkspaceAsideDirective {
|
|
|
5442
5737
|
|
|
5443
5738
|
declare class RtWorkspaceComponent implements IRtWorkspace.PanelApi {
|
|
5444
5739
|
#private;
|
|
5740
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
5445
5741
|
protected readonly listSlot: Signal<RtWorkspaceListDirective | undefined>;
|
|
5446
5742
|
protected readonly centerSlot: Signal<RtWorkspaceCenterDirective | undefined>;
|
|
5447
5743
|
protected readonly asideSlot: Signal<RtWorkspaceAsideDirective | undefined>;
|
|
@@ -5552,6 +5848,7 @@ interface ITransitionFormShape {
|
|
|
5552
5848
|
}
|
|
5553
5849
|
declare class RtWorkspaceDetailsComponent {
|
|
5554
5850
|
#private;
|
|
5851
|
+
protected readonly t: Signal<RtKitLabelMap>;
|
|
5555
5852
|
protected readonly editingAgent: WritableSignal<boolean>;
|
|
5556
5853
|
protected readonly selectedAgentId: WritableSignal<number | null>;
|
|
5557
5854
|
protected readonly transitionForm: FormGroup<ITransitionFormShape>;
|
|
@@ -5643,52 +5940,5 @@ declare class RtInfiniteScrollDirective implements OnDestroy {
|
|
|
5643
5940
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtInfiniteScrollDirective, "[rtInfiniteScroll]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rootMargin": { "alias": "rootMargin"; "required": false; "isSignal": true; }; }, { "loadMore": "loadMore"; }, never, never, true, never>;
|
|
5644
5941
|
}
|
|
5645
5942
|
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
* ярлыки состояний, подсказки для скринридера, тексты ошибок поля.
|
|
5649
|
-
*
|
|
5650
|
-
* Ключи лежат в собственном неймспейсе `rtKit`, чтобы не занимать глобальное
|
|
5651
|
-
* пространство ключей приложения: в разметке они пишутся полным именем
|
|
5652
|
-
* (`'rtKit.uiClose' | transloco`), а грузит их `provideRtKitTranslations()`.
|
|
5653
|
-
*
|
|
5654
|
-
* Приложение переопределяет любую подпись, передав свой словарь тем же
|
|
5655
|
-
* провайдером: переданные ключи ложатся поверх этих.
|
|
5656
|
-
*/
|
|
5657
|
-
declare const RT_KIT_TRANSLATIONS: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
5658
|
-
|
|
5659
|
-
/**
|
|
5660
|
-
* Неймспейс, под которым лежат подписи кита. Он же — префикс ключа в разметке:
|
|
5661
|
-
* `'rtKit.uiClose' | transloco`.
|
|
5662
|
-
*/
|
|
5663
|
-
declare const RT_KIT_TRANSLATION_NAMESPACE: string;
|
|
5664
|
-
/**
|
|
5665
|
-
* Подключает словари кита к Transloco приложения.
|
|
5666
|
-
*
|
|
5667
|
-
* Кит рисует часть подписей сам — кнопки диалогов, тексты ошибок поля,
|
|
5668
|
-
* расшифровки иконок для скринридера, — и без этого провайдера на экране
|
|
5669
|
-
* остались бы ключи. Словари вшиты в пакет: сеть за ними не ходит и копировать
|
|
5670
|
-
* ассеты не нужно.
|
|
5671
|
-
*
|
|
5672
|
-
* ```typescript
|
|
5673
|
-
* export const appConfig: ApplicationConfig = {
|
|
5674
|
-
* providers: [provideTransloco({ config, loader }), provideRtKitTranslations()],
|
|
5675
|
-
* };
|
|
5676
|
-
* ```
|
|
5677
|
-
*
|
|
5678
|
-
* Ключи ложатся в общий словарь языка под собственным неймспейсом, а не
|
|
5679
|
-
* скоупом Transloco: скоуп, объявленный на корне, приписался бы и ко всем
|
|
5680
|
-
* ключам приложения. Загрузку своих словарей это не задевает — они прилетают
|
|
5681
|
-
* позже и домешиваются рядом.
|
|
5682
|
-
*
|
|
5683
|
-
* Раскладываются все восемь языков, но прочитаются только заявленные в
|
|
5684
|
-
* `availableLangs` приложения: язык вне этого списка Transloco считает не
|
|
5685
|
-
* языком, а именем скоупа, и ключ по нему не найдётся.
|
|
5686
|
-
*
|
|
5687
|
-
* @param translations Свои словари поверх вшитых: ключи ложатся сверху по
|
|
5688
|
-
* каждому языку отдельно. Так переопределяется одна подпись, а не весь набор,
|
|
5689
|
-
* и так же добавляется язык, которого в пакете нет.
|
|
5690
|
-
*/
|
|
5691
|
-
declare function provideRtKitTranslations(translations?: Readonly<Record<string, Readonly<Record<string, string>>>>): EnvironmentProviders;
|
|
5692
|
-
|
|
5693
|
-
export { BreakpointsService, CATEGORY_ORDER, ERtCalendarDayState, ERtChatMessageStatus, ERtStorageKeys, IButton, ICON_CATEGORY_RULES, INotification, IRtAsideHeader, IRtAutocomplete, IRtBarList, IRtCalendar, IRtChat, IRtConfirmPopover, IRtDatePicker, IRtField, IRtFileCard, IRtFileDrop, IRtFileInput, IRtFilterControl, IRtIcon, IRtIconButton, IRtInput, IRtLogo, IRtMenu, IRtMessageComposer, IRtNightGrid, IRtPageHeader, IRtPagination, IRtPhotoViewer, IRtPopover, IRtSectionNav, IRtSelect, IRtSpinner, IRtSplitButton, IRtStatTile, IRtStepper, IRtTable, IRtTabs, IRtTag, IRtThemeToggle, IRtThreadList, IRtTimeline, IRtToaster, IRtToggleButtonGroup, IRtToggleSwitch, IRtTooltip, IRtWelcomeDialog, IRtWorkspace, IRtWorkspaceDetails, ITheme, MessageBus, NotificationBus, RT_ASIDE_DATA, RT_COUNTER_DECREASE_KEY, RT_COUNTER_INCREASE_KEY, RT_DIALOG_DATA, RT_FIELD_DEFAULT_ERROR_KEYS, RT_FIELD_EMPTY_VALUE, RT_ICONS_BASE_URL, RT_KIT_TRANSLATIONS, RT_KIT_TRANSLATION_NAMESPACE, RT_MENU_SELECT_EVENT, RT_TABLE_ROW_ACTIONS_COLUMN, RT_TOASTER_GAP_PX, RtAsideComponent, RtAsideFooterComponent, RtAsideHeaderComponent, RtAsideRef, RtAsideSectionComponent, RtAsideService, RtAutocompleteComponent, RtBarListComponent, RtBottomSheetComponent, RtButtonDirective, RtCalendarComponent, RtCardComponent, RtChatComponent, RtChatStatusLabelPipe, RtCheckboxComponent, RtCollapsibleTextComponent, RtConfirmDirective, RtConfirmPopoverComponent, RtContainerComponent, RtContainerContentDirective, RtContainerContentPanelDirective, RtContainerHeaderDirective, RtContainerLeftSidenavDirective, RtContainerLeftSidenavPanelDirective, RtContainerRightSidenavDirective, RtContainerRightSidenavPanelDirective, RtContainerStateService, RtContainerToolbarCenterDirective, RtContainerToolbarLeftDirective, RtContainerToolbarRightDirective, RtCopyCellComponent, RtCounterComponent, RtCounterRowComponent, RtDatePickerComponent, RtDayStampPipe, RtDeltaViewComponent, RtDetailListComponent, RtDetailRowComponent, RtDialogComponent, RtDialogFooterComponent, RtDialogHeaderComponent, RtDialogRef, RtDialogService, RtDownloadLinkComponent, RtEmptyStateComponent, RtFieldComponent, RtFieldHintDirective, RtFileCardComponent, RtFileDropComponent, RtFileInputComponent, RtFileListComponent, RtFilterControlComponent, RtFormControlBase, RtHeaderComponent, RtIconButtonComponent, RtIconComponent, RtIconRegistry, RtInfiniteScrollDirective, RtInfoItemComponent, RtInputComponent, RtInputNumberComponent, RtLiveBadgeComponent, RtLogoComponent, RtMenuComponent, RtMenuItemComponent, RtMessageComponent, RtMessageComposerComponent, RtMoneyListComponent, RtMoneyRowComponent, RtMultiselectComponent, RtNightGridComponent, RtNoteComponent, RtNotificationsBellComponent, RtPageHeaderComponent, RtPaginationComponent, RtPhotoViewerComponent, RtPopoverDirective, RtRichEditorComponent, RtRouteAsideComponent, RtRowHasActionsPipe, RtSectionNavComponent, RtSelectComponent, RtSkeletonComponent, RtSkeletonWrapperComponent, RtSpinnerComponent, RtSplitButtonComponent, RtStatTileComponent, RtStepperComponent, RtTabDirective, RtTableCardDirective, RtTableComponent, RtTableRowActionsDirective, RtTableRowDirective, RtTableSettingsAsideComponent, RtTableSettingsPanelComponent, RtTableSettingsRegistry, RtTableSortHeaderComponent, RtTabsComponent, RtTabsControlDirective, RtTagComponent, RtTextareaComponent, RtThemeToggleComponent, RtThreadListComponent, RtThreadListFiltersDirective, RtThreadListRowDirective, RtThreadListSearchDirective, RtTimelineComponent, RtToastComponent, RtToasterComponent, RtToggleButtonGroupComponent, RtToggleSwitchComponent, RtToolbarCenterDirective, RtToolbarComponent, RtToolbarLeftDirective, RtToolbarRightDirective, RtTooltipComponent, RtTooltipDirective, RtTruncateMiddlePipe, RtWelcomeDialogComponent, RtWorkspaceAsideDirective, RtWorkspaceCenterDirective, RtWorkspaceComponent, RtWorkspaceDesktopOnlyDirective, RtWorkspaceDetailsComponent, RtWorkspaceListDirective, SEARCH_DEBOUNCE_MS, ThemeService, ariaSortOf, categoryOf, coerceQuillDeltaOutput, deliveryStatus, deriveFileTitle, fileNameFromUrl, formatFileSize, getFileTypeIcon, iconsName, indexFromParam, indexFromScroll, isColumnSortable, nextPhotoIndex, nextSort, normalizeQuillDelta, paramFromIndex, pendingToRtMessage, provideRtIcons, provideRtKitTranslations, rowHasAvailableActions, rtAsideUnsavedGuard, searchDebounce, shouldRenderPhoto, sortDirectionOf, toRtMessage };
|
|
5694
|
-
export type { IIconCategory, IMessageBusEvent, IQuillDelta, IQuillDeltaAttributes, IQuillDeltaOp, IRtAsideConfig, IRtAsideContentLayout, IRtAsideDeactivate, IRtAsidePosition, IRtAsideSize, IRtDialogConfig, IRtDialogSize, IRtMappableMessage, IRtPendingMessage, IRtPicture, IRtPictureSource, IRtRichEditorToolbar, IRtSkeletonRadius, IRtSkeletonShape, IRtSkeletonSize, IRtTableAriaSort, IRtTableCardContext, IRtTableRowActionsContext, IRtTableSettingsRegistration, IRtTextareaResize, IToRtMessageOptions };
|
|
5943
|
+
export { BreakpointsService, CATEGORY_ORDER, ERtCalendarDayState, ERtChatMessageStatus, ERtStorageKeys, IButton, ICON_CATEGORY_RULES, INotification, IRtAsideHeader, IRtAutocomplete, IRtBarList, IRtCalendar, IRtChat, IRtConfirmPopover, IRtDatePicker, IRtField, IRtFileCard, IRtFileDrop, IRtFileInput, IRtFilterControl, IRtIcon, IRtIconButton, IRtInput, IRtLogo, IRtMenu, IRtMessageComposer, IRtNightGrid, IRtPageHeader, IRtPagination, IRtPhotoViewer, IRtPopover, IRtSectionNav, IRtSelect, IRtSpinner, IRtSplitButton, IRtStatTile, IRtStepper, IRtTable, IRtTabs, IRtTag, IRtThemeToggle, IRtThreadList, IRtTimeline, IRtToaster, IRtToggleButtonGroup, IRtToggleSwitch, IRtTooltip, IRtWelcomeDialog, IRtWorkspace, IRtWorkspaceDetails, ITheme, MessageBus, NotificationBus, RT_ASIDE_DATA, RT_COUNTER_DECREASE_KEY, RT_COUNTER_INCREASE_KEY, RT_DIALOG_DATA, RT_FIELD_DEFAULT_ERROR_KEYS, RT_FIELD_EMPTY_VALUE, RT_ICONS_BASE_URL, RT_KIT_LABELS, RT_KIT_LABELS_EN, RT_KIT_LOCALE, RT_KIT_TRANSLATOR, RT_MENU_SELECT_EVENT, RT_TABLE_ROW_ACTIONS_COLUMN, RT_TOASTER_GAP_PX, RtAsideComponent, RtAsideFooterComponent, RtAsideHeaderComponent, RtAsideRef, RtAsideSectionComponent, RtAsideService, RtAutocompleteComponent, RtBarListComponent, RtBottomSheetComponent, RtButtonDirective, RtCalendarComponent, RtCardComponent, RtChatComponent, RtChatStatusLabelPipe, RtCheckboxComponent, RtCollapsibleTextComponent, RtConfirmDirective, RtConfirmPopoverComponent, RtContainerComponent, RtContainerContentDirective, RtContainerContentPanelDirective, RtContainerHeaderDirective, RtContainerLeftSidenavDirective, RtContainerLeftSidenavPanelDirective, RtContainerRightSidenavDirective, RtContainerRightSidenavPanelDirective, RtContainerStateService, RtContainerToolbarCenterDirective, RtContainerToolbarLeftDirective, RtContainerToolbarRightDirective, RtCopyCellComponent, RtCounterComponent, RtCounterRowComponent, RtDatePickerComponent, RtDayStampPipe, RtDeltaViewComponent, RtDetailListComponent, RtDetailRowComponent, RtDialogComponent, RtDialogFooterComponent, RtDialogHeaderComponent, RtDialogRef, RtDialogService, RtDownloadLinkComponent, RtEmptyStateComponent, RtFieldComponent, RtFieldHintDirective, RtFileCardComponent, RtFileDropComponent, RtFileInputComponent, RtFileListComponent, RtFilterControlComponent, RtFormControlBase, RtHeaderComponent, RtIconButtonComponent, RtIconComponent, RtIconRegistry, RtInfiniteScrollDirective, RtInfoItemComponent, RtInputComponent, RtInputNumberComponent, RtLiveBadgeComponent, RtLogoComponent, RtMenuComponent, RtMenuItemComponent, RtMessageComponent, RtMessageComposerComponent, RtMoneyListComponent, RtMoneyRowComponent, RtMultiselectComponent, RtNightGridComponent, RtNoteComponent, RtNotificationsBellComponent, RtPageHeaderComponent, RtPaginationComponent, RtPhotoViewerComponent, RtPopoverDirective, RtRichEditorComponent, RtRouteAsideComponent, RtRowHasActionsPipe, RtSectionNavComponent, RtSelectComponent, RtSkeletonComponent, RtSkeletonWrapperComponent, RtSpinnerComponent, RtSplitButtonComponent, RtStatTileComponent, RtStepperComponent, RtTabDirective, RtTableCardDirective, RtTableComponent, RtTableRowActionsDirective, RtTableRowDirective, RtTableSettingsAsideComponent, RtTableSettingsPanelComponent, RtTableSettingsRegistry, RtTableSortHeaderComponent, RtTabsComponent, RtTabsControlDirective, RtTagComponent, RtTextareaComponent, RtThemeToggleComponent, RtThreadListComponent, RtThreadListFiltersDirective, RtThreadListRowDirective, RtThreadListSearchDirective, RtTimelineComponent, RtToastComponent, RtToasterComponent, RtToggleButtonGroupComponent, RtToggleSwitchComponent, RtToolbarCenterDirective, RtToolbarComponent, RtToolbarLeftDirective, RtToolbarRightDirective, RtTooltipComponent, RtTooltipDirective, RtTruncateMiddlePipe, RtWelcomeDialogComponent, RtWorkspaceAsideDirective, RtWorkspaceCenterDirective, RtWorkspaceComponent, RtWorkspaceDesktopOnlyDirective, RtWorkspaceDetailsComponent, RtWorkspaceListDirective, SEARCH_DEBOUNCE_MS, ThemeService, ariaSortOf, categoryOf, coerceQuillDeltaOutput, deliveryStatus, deriveFileTitle, fileNameFromUrl, formatFileSize, getFileTypeIcon, iconsName, indexFromParam, indexFromScroll, isColumnSortable, nextPhotoIndex, nextSort, normalizeQuillDelta, paramFromIndex, pendingToRtMessage, provideRtIcons, provideRtKitLabels, rowHasAvailableActions, rtAsideUnsavedGuard, rtKitLabel, searchDebounce, shouldRenderPhoto, sortDirectionOf, toRtMessage };
|
|
5944
|
+
export type { IIconCategory, IMessageBusEvent, IQuillDelta, IQuillDeltaAttributes, IQuillDeltaOp, IRtAsideConfig, IRtAsideContentLayout, IRtAsideDeactivate, IRtAsidePosition, IRtAsideSize, IRtDialogConfig, IRtDialogSize, IRtMappableMessage, IRtPendingMessage, IRtPicture, IRtPictureSource, IRtRichEditorToolbar, IRtSkeletonRadius, IRtSkeletonShape, IRtSkeletonSize, IRtTableAriaSort, IRtTableCardContext, IRtTableRowActionsContext, IRtTableSettingsRegistration, IRtTextareaResize, IToRtMessageOptions, RtKitLabelKey, RtKitLabelMap, RtKitLabelParams, RtKitTranslator };
|