@rt-tools/ui-kit-v2 0.10.0 → 0.11.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/fesm2022/rt-tools-ui-kit-v2.mjs +413 -409
- package/fesm2022/rt-tools-ui-kit-v2.mjs.map +1 -1
- package/package.json +1 -1
- package/rt-tools-ui-kit-v2-0.11.0.tgz +0 -0
- package/src/lib/components/thread-list/CONTEXT.md +6 -1
- package/types/rt-tools-ui-kit-v2.d.ts +15 -13
- package/rt-tools-ui-kit-v2-0.10.0.tgz +0 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
(openInNewTab)="openInTab($event)"
|
|
14
14
|
(searchChange)="search($event)"
|
|
15
15
|
(loadMore)="next()">
|
|
16
|
-
<ng-template
|
|
16
|
+
<ng-template let-row [rtThreadListRow]="rows()">…</ng-template>
|
|
17
17
|
<ng-template rtThreadListFilters>…</ng-template>
|
|
18
18
|
</rt-thread-list>
|
|
19
19
|
```
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
`filtersActive`. Выходы: `selectRow`, `openInNewTab`, `searchChange`, `loadMore`.
|
|
23
23
|
|
|
24
24
|
Строка обязана иметь `id`, `hasUnread` и (необязательно) `overdue` — это всё, что список о ней знает.
|
|
25
|
+
Номер строки — число или строка: у записей домена ключ не всегда числовой. Тем же типом приходит
|
|
26
|
+
`activeId` и уходят `selectRow` и `openInNewTab`.
|
|
27
|
+
|
|
28
|
+
Тот же массив строк передаётся входом `[rtThreadListRow]` в шаблон строки: из него выводится тип
|
|
29
|
+
`row`. Без этого входа строгая сборка приложения отказывает — атрибут без значения приходит строкой.
|
|
25
30
|
|
|
26
31
|
## Главное, что нужно знать
|
|
27
32
|
|
|
@@ -164,7 +164,7 @@ declare class RtAsideService {
|
|
|
164
164
|
constructor();
|
|
165
165
|
open<TComponent, TData = unknown, TResult = unknown>(component: ComponentType<TComponent>, config?: IRtAsideConfig<TData>): RtAsideRef<TResult>;
|
|
166
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtAsideService, never>;
|
|
167
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
167
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/**
|
|
@@ -625,7 +625,7 @@ declare class RtIconRegistry {
|
|
|
625
625
|
*/
|
|
626
626
|
request(name: IRtIcon.Name, preset?: IRtIcon.Preset): void;
|
|
627
627
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtIconRegistry, never>;
|
|
628
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
628
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
/**
|
|
@@ -2310,7 +2310,7 @@ declare class RtContainerContentPanelDirective {
|
|
|
2310
2310
|
declare class RtContainerStateService {
|
|
2311
2311
|
readonly leftSidenavOpen: WritableSignal<boolean>;
|
|
2312
2312
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtContainerStateService, never>;
|
|
2313
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2313
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
2316
|
/**
|
|
@@ -2755,7 +2755,7 @@ declare class RtDialogService {
|
|
|
2755
2755
|
constructor();
|
|
2756
2756
|
open<TComponent, TData = unknown, TResult = unknown>(component: ComponentType<TComponent>, config?: IRtDialogConfig<TData>): RtDialogRef<TResult>;
|
|
2757
2757
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtDialogService, never>;
|
|
2758
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2758
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
2761
2761
|
/**
|
|
@@ -5194,7 +5194,7 @@ declare class RtTableSettingsRegistry {
|
|
|
5194
5194
|
setActive(tableId: string): void;
|
|
5195
5195
|
clearActive(): void;
|
|
5196
5196
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtTableSettingsRegistry, never>;
|
|
5197
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
5197
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
5198
5198
|
}
|
|
5199
5199
|
|
|
5200
5200
|
/**
|
|
@@ -5492,6 +5492,8 @@ declare class RtThemeToggleComponent {
|
|
|
5492
5492
|
* Модель `<rt-thread-list>`: один корневой неймспейс с префиксом `I`.
|
|
5493
5493
|
*/
|
|
5494
5494
|
declare namespace IRtThreadList {
|
|
5495
|
+
/** Номер строки: список ведёт записи и с числовым ключом, и со строковым. */
|
|
5496
|
+
type TRowId = number | string;
|
|
5495
5497
|
/**
|
|
5496
5498
|
* Минимальный контракт строки списка. Shell читает `id` (трек + активный
|
|
5497
5499
|
* сегмент + клик) и модификаторы отображения; всё остальное — забота
|
|
@@ -5501,7 +5503,7 @@ declare namespace IRtThreadList {
|
|
|
5501
5503
|
* - `overdue` — просрочка (акцент в meta); необязателен, дефолт — нет.
|
|
5502
5504
|
*/
|
|
5503
5505
|
interface Row {
|
|
5504
|
-
id:
|
|
5506
|
+
id: TRowId;
|
|
5505
5507
|
hasUnread: boolean;
|
|
5506
5508
|
overdue?: boolean;
|
|
5507
5509
|
}
|
|
@@ -5571,7 +5573,7 @@ declare class RtThreadListComponent<TRow extends IRtThreadList.Row> implements O
|
|
|
5571
5573
|
protected readonly filtersTemplate: Signal<RtThreadListFiltersDirective | undefined>;
|
|
5572
5574
|
protected readonly searchTemplate: Signal<RtThreadListSearchDirective | undefined>;
|
|
5573
5575
|
readonly rows: InputSignal<readonly TRow[]>;
|
|
5574
|
-
readonly activeId: InputSignal<
|
|
5576
|
+
readonly activeId: InputSignal<IRtThreadList.TRowId | null>;
|
|
5575
5577
|
/** Пусто — берётся переведённая подпись по умолчанию */
|
|
5576
5578
|
readonly searchPlaceholder: InputSignal<string>;
|
|
5577
5579
|
readonly emptyText: InputSignal<string>;
|
|
@@ -5579,12 +5581,12 @@ declare class RtThreadListComponent<TRow extends IRtThreadList.Row> implements O
|
|
|
5579
5581
|
readonly fetching: InputSignalWithTransform<boolean, boolean | string>;
|
|
5580
5582
|
readonly hasMore: InputSignalWithTransform<boolean, boolean | string>;
|
|
5581
5583
|
readonly filtersActive: InputSignalWithTransform<boolean, boolean | string>;
|
|
5582
|
-
readonly selectRow: OutputEmitterRef<
|
|
5583
|
-
readonly openInNewTab: OutputEmitterRef<
|
|
5584
|
+
readonly selectRow: OutputEmitterRef<IRtThreadList.TRowId>;
|
|
5585
|
+
readonly openInNewTab: OutputEmitterRef<IRtThreadList.TRowId>;
|
|
5584
5586
|
readonly searchChange: OutputEmitterRef<string>;
|
|
5585
5587
|
readonly loadMore: OutputEmitterRef<void>;
|
|
5586
5588
|
ngOnInit(): void;
|
|
5587
|
-
protected onSelect(id:
|
|
5589
|
+
protected onSelect(id: IRtThreadList.TRowId, event: MouseEvent): void;
|
|
5588
5590
|
protected onLoadMore(): void;
|
|
5589
5591
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtThreadListComponent<any>, never>;
|
|
5590
5592
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtThreadListComponent<any>, "rt-thread-list", never, { "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "activeId": { "alias": "activeId"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "fetching": { "alias": "fetching"; "required": false; "isSignal": true; }; "hasMore": { "alias": "hasMore"; "required": false; "isSignal": true; }; "filtersActive": { "alias": "filtersActive"; "required": false; "isSignal": true; }; }, { "selectRow": "selectRow"; "openInNewTab": "openInNewTab"; "searchChange": "searchChange"; "loadMore": "loadMore"; }, ["rowTemplate", "filtersTemplate", "searchTemplate"], never, true, never>;
|
|
@@ -5640,7 +5642,7 @@ declare class BreakpointsService {
|
|
|
5640
5642
|
*/
|
|
5641
5643
|
readonly narrow: Signal<boolean>;
|
|
5642
5644
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointsService, never>;
|
|
5643
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
5645
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
5644
5646
|
}
|
|
5645
5647
|
|
|
5646
5648
|
/**
|
|
@@ -5727,7 +5729,7 @@ declare class NotificationBus {
|
|
|
5727
5729
|
warning(message: string, type?: string, options?: INotification.Options): void;
|
|
5728
5730
|
error(message: string, type?: string, options?: INotification.Options): void;
|
|
5729
5731
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationBus, never>;
|
|
5730
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
5732
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
5731
5733
|
}
|
|
5732
5734
|
|
|
5733
5735
|
/**
|
|
@@ -5767,7 +5769,7 @@ declare class ThemeService {
|
|
|
5767
5769
|
toggle(): void;
|
|
5768
5770
|
setTheme(theme: ITheme.Mode): void;
|
|
5769
5771
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
5770
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
5772
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
5771
5773
|
}
|
|
5772
5774
|
|
|
5773
5775
|
declare const RT_TOASTER_GAP_PX: number;
|
|
Binary file
|