@rt-tools/ui-kit 0.1.0 → 0.3.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 +172 -92
- package/fesm2022/rt-tools-ui-kit.mjs.map +1 -1
- package/package.json +7 -7
- package/rt-tools-ui-kit-0.3.0.tgz +0 -0
- package/types/rt-tools-ui-kit.d.ts +125 -126
- package/rt-tools-ui-kit-0.1.0.tgz +0 -0
|
@@ -3,12 +3,11 @@ import { Type, OnInit, Signal, TemplateRef, WritableSignal, InputSignal, InputSi
|
|
|
3
3
|
import { FormControl, ControlValueAccessor, Validator, FormGroup, ValidationErrors } from '@angular/forms';
|
|
4
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import {
|
|
6
|
+
import { INullable, IPageModel, ISortModel, FilterOperatorType, IFilterModel, FILTER_OPERATOR_TYPE_ENUM } from '@rt-tools/utils';
|
|
7
7
|
import { MatDialogConfig } from '@angular/material/dialog';
|
|
8
8
|
import { MatDrawer } from '@angular/material/sidenav';
|
|
9
9
|
import { OverlayRef, ComponentType, ConnectedPosition, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
10
10
|
import { ComponentType as ComponentType$1 } from '@angular/cdk/portal';
|
|
11
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
12
11
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
13
12
|
import { MatButtonAppearance } from '@angular/material/button';
|
|
14
13
|
import * as i1 from '@angular/material/tooltip';
|
|
@@ -34,12 +33,12 @@ interface Icon {
|
|
|
34
33
|
[className: string]: string;
|
|
35
34
|
};
|
|
36
35
|
}
|
|
37
|
-
interface
|
|
36
|
+
interface INameValueType<N = string, V = string> {
|
|
38
37
|
name: N;
|
|
39
38
|
value: V;
|
|
40
39
|
}
|
|
41
|
-
interface
|
|
42
|
-
value: Array<
|
|
40
|
+
interface ISelect<T> {
|
|
41
|
+
value: Array<INameValueType<string, T>>;
|
|
43
42
|
label?: string;
|
|
44
43
|
hint?: string;
|
|
45
44
|
}
|
|
@@ -47,7 +46,7 @@ declare namespace IModal {
|
|
|
47
46
|
interface Button<T> {
|
|
48
47
|
text: string;
|
|
49
48
|
color?: ThemePalette;
|
|
50
|
-
value:
|
|
49
|
+
value: INullable<T>;
|
|
51
50
|
appearance?: 'standard' | 'raised' | 'flat' | 'stroked' | 'fab' | 'mini-fab';
|
|
52
51
|
validateSelect?: boolean;
|
|
53
52
|
assignSelectedValue?: boolean;
|
|
@@ -74,17 +73,17 @@ declare namespace IModal {
|
|
|
74
73
|
value: string;
|
|
75
74
|
placeholder: string;
|
|
76
75
|
};
|
|
77
|
-
select?:
|
|
76
|
+
select?: ISelect<T>;
|
|
78
77
|
}
|
|
79
78
|
interface DataAnswer<T> {
|
|
80
79
|
value: T;
|
|
81
80
|
message: string;
|
|
82
81
|
}
|
|
83
|
-
type ConfirmResponsePredicate<T> = (answer:
|
|
82
|
+
type ConfirmResponsePredicate<T> = (answer: INullable<IModal.DataAnswer<T>>) => boolean;
|
|
84
83
|
interface ConfirmResponse<T> {
|
|
85
|
-
on(predicate: ConfirmResponsePredicate<T>): Observable<
|
|
86
|
-
onCancel(cancel?: ConfirmResponsePredicate<T>): Observable<
|
|
87
|
-
onConfirm(confirm?: ConfirmResponsePredicate<T>): Observable<
|
|
84
|
+
on(predicate: ConfirmResponsePredicate<T>): Observable<INullable<IModal.DataAnswer<T>>>;
|
|
85
|
+
onCancel(cancel?: ConfirmResponsePredicate<T>): Observable<INullable<IModal.DataAnswer<T>>>;
|
|
86
|
+
onConfirm(confirm?: ConfirmResponsePredicate<T>): Observable<INullable<IModal.DataAnswer<T>>>;
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
89
|
|
|
@@ -103,7 +102,7 @@ declare class RtuiModalComponent<T> implements OnInit {
|
|
|
103
102
|
|
|
104
103
|
declare class RtModalService {
|
|
105
104
|
#private;
|
|
106
|
-
confirm<T>(data: IModal.Data<T>, config?: MatDialogConfig): Observable<
|
|
105
|
+
confirm<T>(data: IModal.Data<T>, config?: MatDialogConfig): Observable<INullable<IModal.DataAnswer<T>>>;
|
|
107
106
|
with<T>(data: IModal.Data<T>, config?: MatDialogConfig): IModal.ConfirmResponse<T>;
|
|
108
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtModalService, never>;
|
|
109
108
|
static ɵprov: i0.ɵɵInjectableDeclaration<RtModalService>;
|
|
@@ -122,9 +121,9 @@ declare class RtuiScrollableContainerFooterDirective {
|
|
|
122
121
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiScrollableContainerFooterDirective, "[rtuiScrollableFooter]", never, {}, {}, never, never, true, never>;
|
|
123
122
|
}
|
|
124
123
|
declare class RtuiScrollableContainerComponent {
|
|
125
|
-
readonly headerTpl: Signal<
|
|
126
|
-
readonly contentTpl: Signal<
|
|
127
|
-
readonly footerTpl: Signal<
|
|
124
|
+
readonly headerTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
125
|
+
readonly contentTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
126
|
+
readonly footerTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
128
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiScrollableContainerComponent, never>;
|
|
129
128
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiScrollableContainerComponent, "rtui-scrollable", never, {}, {}, ["headerTpl", "contentTpl", "footerTpl"], never, true, never>;
|
|
130
129
|
}
|
|
@@ -154,15 +153,15 @@ declare class RtuiSideMenuFooterDirective {
|
|
|
154
153
|
}
|
|
155
154
|
declare class RtuiSideMenuComponent {
|
|
156
155
|
#private;
|
|
157
|
-
readonly headerTpl: Signal<
|
|
158
|
-
readonly footerTpl: Signal<
|
|
159
|
-
readonly subMenuRef: Signal<
|
|
156
|
+
readonly headerTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
157
|
+
readonly footerTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
158
|
+
readonly subMenuRef: Signal<INullable<MatDrawer>>;
|
|
160
159
|
readonly backToMainMenuButton: Signal<ISideMenu.Item>;
|
|
161
|
-
readonly selectedItem: WritableSignal<
|
|
162
|
-
readonly selectedSubMenu: WritableSignal<
|
|
160
|
+
readonly selectedItem: WritableSignal<INullable<ISideMenu.Item>>;
|
|
161
|
+
readonly selectedSubMenu: WritableSignal<INullable<ISideMenu.Item[]>>;
|
|
163
162
|
activeMenuIds: InputSignal<Array<string | number>>;
|
|
164
163
|
menuItems: InputSignalWithTransform<ISideMenu.Item[], ISideMenu.Item[]>;
|
|
165
|
-
isMobile: InputSignalWithTransform<
|
|
164
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, INullable<boolean>>;
|
|
166
165
|
isSubMenuXScrollEnabled: InputSignalWithTransform<boolean, boolean>;
|
|
167
166
|
isMainMenuIconsOutlined: InputSignalWithTransform<boolean, boolean>;
|
|
168
167
|
isSubMenuIconsOutlined: InputSignalWithTransform<boolean, boolean>;
|
|
@@ -262,21 +261,21 @@ declare class RtuiAsideContainerHeaderDirective {
|
|
|
262
261
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiAsideContainerHeaderDirective, "[rtuiAsideHeader]", never, {}, {}, never, never, true, never>;
|
|
263
262
|
}
|
|
264
263
|
declare class RtuiAsideContainerComponent {
|
|
265
|
-
title: InputSignal<
|
|
266
|
-
isMobile: InputSignalWithTransform<
|
|
264
|
+
title: InputSignal<INullable<string>>;
|
|
265
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
267
266
|
isSubmitButtonDisabled: InputSignalWithTransform<boolean, boolean>;
|
|
268
267
|
isFooterShown: InputSignalWithTransform<boolean, boolean>;
|
|
269
268
|
pending: InputSignalWithTransform<boolean, boolean>;
|
|
270
269
|
isRequestErrorShown: InputSignalWithTransform<boolean, boolean>;
|
|
271
270
|
headerActionsButtons: InputSignalWithTransform<IAside.HeaderActionButton[], IAside.HeaderActionButton[]>;
|
|
272
|
-
requestError: InputSignal<
|
|
271
|
+
requestError: InputSignal<INullable<unknown>>;
|
|
273
272
|
submitButtonTitle: InputSignal<string>;
|
|
274
273
|
cancelButtonTitle: InputSignal<string>;
|
|
275
274
|
submitButtonTooltip: InputSignal<string>;
|
|
276
275
|
readonly submitAction: OutputEmitterRef<void>;
|
|
277
276
|
readonly cancelAction: OutputEmitterRef<void>;
|
|
278
277
|
readonly headerAction: OutputEmitterRef<AsideButtonsType>;
|
|
279
|
-
readonly headerTpl: Signal<
|
|
278
|
+
readonly headerTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
280
279
|
onSubmit(): void;
|
|
281
280
|
onCancel(): void;
|
|
282
281
|
onHeaderActionClick(buttonName: AsideButtonsType): void;
|
|
@@ -464,10 +463,10 @@ declare class RtuiToolbarRightDirective {
|
|
|
464
463
|
}
|
|
465
464
|
declare class RtuiToolbarComponent {
|
|
466
465
|
isVisibleToolbar: Signal<boolean>;
|
|
467
|
-
readonly leftToolTpl: Signal<
|
|
468
|
-
readonly centerToolTpl: Signal<
|
|
469
|
-
readonly rightToolTpl: Signal<
|
|
470
|
-
sticky: InputSignalWithTransform<
|
|
466
|
+
readonly leftToolTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
467
|
+
readonly centerToolTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
468
|
+
readonly rightToolTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
469
|
+
sticky: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
471
470
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiToolbarComponent, never>;
|
|
472
471
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiToolbarComponent, "rtui-toolbar", never, { "isVisibleToolbar": { "alias": "isVisibleToolbar"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; }, {}, ["leftToolTpl", "centerToolTpl", "rightToolTpl"], never, true, never>;
|
|
473
472
|
}
|
|
@@ -485,11 +484,11 @@ declare class RtuiHeaderRightDirective {
|
|
|
485
484
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiHeaderRightDirective, "[rtuiHeaderRight]", never, {}, {}, never, never, true, never>;
|
|
486
485
|
}
|
|
487
486
|
declare class RtuiHeaderComponent {
|
|
488
|
-
isMobile: InputSignalWithTransform<
|
|
489
|
-
isMobileMenuButtonShown: InputSignalWithTransform<
|
|
490
|
-
readonly leftHeaderTpl: Signal<
|
|
491
|
-
readonly centerHeaderTpl: Signal<
|
|
492
|
-
readonly rightHeaderTpl: Signal<
|
|
487
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, INullable<boolean>>;
|
|
488
|
+
isMobileMenuButtonShown: InputSignalWithTransform<INullable<boolean>, INullable<boolean>>;
|
|
489
|
+
readonly leftHeaderTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
490
|
+
readonly centerHeaderTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
491
|
+
readonly rightHeaderTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
493
492
|
readonly openMobileMenuAction: OutputEmitterRef<void>;
|
|
494
493
|
openSideMenu(): void;
|
|
495
494
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiHeaderComponent, never>;
|
|
@@ -498,9 +497,9 @@ declare class RtuiHeaderComponent {
|
|
|
498
497
|
|
|
499
498
|
declare class RtuiClearButtonComponent {
|
|
500
499
|
#private;
|
|
501
|
-
isMobile: InputSignalWithTransform<
|
|
502
|
-
isButtonShown: InputSignalWithTransform<
|
|
503
|
-
tooltip: InputSignalWithTransform<
|
|
500
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
501
|
+
isButtonShown: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
502
|
+
tooltip: InputSignalWithTransform<INullable<string>, string>;
|
|
504
503
|
tooltipPosition: InputSignal<TooltipPosition>;
|
|
505
504
|
readonly keydownAction: OutputEmitterRef<void>;
|
|
506
505
|
readonly clickAction: OutputEmitterRef<void>;
|
|
@@ -513,11 +512,11 @@ declare class RtuiClearButtonComponent {
|
|
|
513
512
|
declare class RtuiPaginationComponent implements OnInit, AfterViewInit {
|
|
514
513
|
#private;
|
|
515
514
|
/** Current Page Model */
|
|
516
|
-
currentPageModel: InputSignal<
|
|
515
|
+
currentPageModel: InputSignal<IPageModel>;
|
|
517
516
|
/** Indicates is mobile view */
|
|
518
|
-
isMobile: InputSignalWithTransform<
|
|
517
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
519
518
|
/** Output action when Page Model changed */
|
|
520
|
-
readonly pageModelChange: OutputEmitterRef<Partial<
|
|
519
|
+
readonly pageModelChange: OutputEmitterRef<Partial<IPageModel>>;
|
|
521
520
|
/** Form control for selected page size */
|
|
522
521
|
control: FormControl<number>;
|
|
523
522
|
readonly divider: Signal<string>;
|
|
@@ -526,13 +525,13 @@ declare class RtuiPaginationComponent implements OnInit, AfterViewInit {
|
|
|
526
525
|
/** Array of current page numbers */
|
|
527
526
|
readonly numbers: WritableSignal<Array<number | string>>;
|
|
528
527
|
/** Page Model for compare */
|
|
529
|
-
readonly previousPageModel: WritableSignal<
|
|
528
|
+
readonly previousPageModel: WritableSignal<INullable<IPageModel>>;
|
|
530
529
|
/** Value of full content width */
|
|
531
530
|
readonly minContentFitWidth: WritableSignal<number>;
|
|
532
531
|
/** Indicates is content clipped */
|
|
533
532
|
readonly isContentClipped: WritableSignal<boolean>;
|
|
534
533
|
/** Container template ref */
|
|
535
|
-
readonly containerRef: Signal<
|
|
534
|
+
readonly containerRef: Signal<INullable<ElementRef<HTMLElement>>>;
|
|
536
535
|
/** Set 'isContentClipped' when widow resize */
|
|
537
536
|
onResize(): void;
|
|
538
537
|
ngOnInit(): void;
|
|
@@ -549,7 +548,7 @@ declare class RtuiPaginationComponent implements OnInit, AfterViewInit {
|
|
|
549
548
|
declare const RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE: string;
|
|
550
549
|
|
|
551
550
|
declare const DEFAULT_PAGE_SIZE: number;
|
|
552
|
-
declare const DEFAULT_PAGE_MODEL: Readonly<
|
|
551
|
+
declare const DEFAULT_PAGE_MODEL: Readonly<IPageModel>;
|
|
553
552
|
|
|
554
553
|
declare enum TABLE_COLUMN_TYPES_ENUM {
|
|
555
554
|
DATE = "date",
|
|
@@ -583,7 +582,7 @@ declare namespace ITable {
|
|
|
583
582
|
type: Type;
|
|
584
583
|
copyable: boolean;
|
|
585
584
|
header: Header;
|
|
586
|
-
sorting?:
|
|
585
|
+
sorting?: ISortModel<NonNullable<Extract<keyof T, string>>>;
|
|
587
586
|
filtering?: boolean;
|
|
588
587
|
filteringMultiple?: boolean;
|
|
589
588
|
copyBtnAlign?: 'right' | 'left';
|
|
@@ -640,23 +639,23 @@ declare namespace ITable {
|
|
|
640
639
|
declare const RTUI_TABLE_COMPONENT_TOKEN: InjectionToken<IRtuiTable<Record<string, unknown>, string, string>>;
|
|
641
640
|
interface IRtuiTable<ENTITY_TYPE extends Record<string, unknown>, SORT_PROPERTY extends Extract<keyof ENTITY_TYPE, string>, KEY extends Extract<keyof ENTITY_TYPE, string>> {
|
|
642
641
|
columns: Signal<Array<ITable.Column<ENTITY_TYPE>>>;
|
|
643
|
-
customCellsTpl: Signal<
|
|
642
|
+
customCellsTpl: Signal<INullable<{
|
|
644
643
|
getTemplateByPropName(propName: keyof ENTITY_TYPE): TemplateRef<{
|
|
645
644
|
$implicit: ENTITY_TYPE;
|
|
646
645
|
}>;
|
|
647
646
|
}>>;
|
|
648
|
-
rowActionsTpl: Signal<
|
|
647
|
+
rowActionsTpl: Signal<INullable<TemplateRef<{
|
|
649
648
|
$implicit: ENTITY_TYPE;
|
|
650
649
|
}>>>;
|
|
651
|
-
additionalRowActionsTpl: Signal<
|
|
650
|
+
additionalRowActionsTpl: Signal<INullable<TemplateRef<unknown>>>;
|
|
652
651
|
isMobile: Signal<boolean>;
|
|
653
652
|
isTableRowsClickable: Signal<boolean>;
|
|
654
653
|
keyExp: Signal<NonNullable<KEY>>;
|
|
655
654
|
entities: Signal<ENTITY_TYPE[]>;
|
|
656
|
-
currentSortModel: Signal<
|
|
655
|
+
currentSortModel: Signal<INullable<ISortModel<SORT_PROPERTY>>>;
|
|
657
656
|
appearance: Signal<MatFormFieldAppearance>;
|
|
658
657
|
filterAppearance: Signal<MatFormFieldAppearance>;
|
|
659
|
-
filterModel: Signal<
|
|
658
|
+
filterModel: Signal<IFilterModel<KEY>[]>;
|
|
660
659
|
isFiltersShown: Signal<boolean>;
|
|
661
660
|
selectedEntitiesIds: WritableSignal<ENTITY_TYPE[KEY][]>;
|
|
662
661
|
isPageEntitiesSelected: WritableSignal<boolean>;
|
|
@@ -664,9 +663,9 @@ interface IRtuiTable<ENTITY_TYPE extends Record<string, unknown>, SORT_PROPERTY
|
|
|
664
663
|
isMultiSelect: WritableSignal<boolean>;
|
|
665
664
|
isSelectorsColumnShown: WritableSignal<boolean>;
|
|
666
665
|
isSelectorsColumnDisabled: WritableSignal<boolean>;
|
|
667
|
-
activeRowIndex: WritableSignal<
|
|
668
|
-
onSortChange(sortModel:
|
|
669
|
-
onFilterChange(filterModel:
|
|
666
|
+
activeRowIndex: WritableSignal<INullable<number>>;
|
|
667
|
+
onSortChange(sortModel: ISortModel): void;
|
|
668
|
+
onFilterChange(filterModel: IFilterModel<KEY>[]): void;
|
|
670
669
|
onMenuOpen(index: number): void;
|
|
671
670
|
onMenuClose(): void;
|
|
672
671
|
onRowClick(row: ENTITY_TYPE, event: MouseEvent): void;
|
|
@@ -797,9 +796,9 @@ declare class RtuiTableAdditionalRowActionsDirective {
|
|
|
797
796
|
}
|
|
798
797
|
declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SORT_PROPERTY extends Extract<keyof ENTITY_TYPE, string>, KEY extends Extract<keyof ENTITY_TYPE, string>> implements IRtuiTable<ENTITY_TYPE, SORT_PROPERTY, KEY>, AfterViewChecked {
|
|
799
798
|
#private;
|
|
800
|
-
protected readonly rowActions: Signal<
|
|
801
|
-
protected readonly rowActionsHeaderPaddingHelper: Signal<
|
|
802
|
-
protected readonly rowActionsPaddingHelper: Signal<
|
|
799
|
+
protected readonly rowActions: Signal<INullable<ElementRef<HTMLElement>>>;
|
|
800
|
+
protected readonly rowActionsHeaderPaddingHelper: Signal<INullable<ElementRef<HTMLElement>>>;
|
|
801
|
+
protected readonly rowActionsPaddingHelper: Signal<INullable<ElementRef<HTMLElement>>>;
|
|
803
802
|
protected readonly columnTypes: typeof TABLE_COLUMN_TYPES_ENUM;
|
|
804
803
|
protected readonly filterOperators: typeof FILTER_OPERATOR_TYPE_ENUM;
|
|
805
804
|
/** Indicates is mobile view */
|
|
@@ -811,13 +810,13 @@ declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SO
|
|
|
811
810
|
/** List of entities */
|
|
812
811
|
entities: InputSignalWithTransform<ENTITY_TYPE[], ENTITY_TYPE[]>;
|
|
813
812
|
/** Current page model from store */
|
|
814
|
-
currentSortModel: InputSignal<
|
|
813
|
+
currentSortModel: InputSignal<INullable<ISortModel<SORT_PROPERTY>>>;
|
|
815
814
|
/** Current elements appearance */
|
|
816
815
|
appearance: InputSignal<MatFormFieldAppearance>;
|
|
817
816
|
/** Filter inputs appearance */
|
|
818
817
|
filterAppearance: InputSignal<MatFormFieldAppearance>;
|
|
819
818
|
/** Current filter model from store */
|
|
820
|
-
filterModel: InputSignalWithTransform<
|
|
819
|
+
filterModel: InputSignalWithTransform<IFilterModel<KEY>[], IFilterModel<KEY>[]>;
|
|
821
820
|
/** Indicates is filters shown */
|
|
822
821
|
isFiltersShown: InputSignalWithTransform<boolean, BooleanInput>;
|
|
823
822
|
/** Row click output action */
|
|
@@ -828,19 +827,19 @@ declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SO
|
|
|
828
827
|
/** Row doubleClick output action */
|
|
829
828
|
readonly rowDoubleClick: OutputEmitterRef<NonNullable<ENTITY_TYPE>>;
|
|
830
829
|
/** Sort change output action */
|
|
831
|
-
readonly sortChange: OutputEmitterRef<
|
|
830
|
+
readonly sortChange: OutputEmitterRef<ISortModel<SORT_PROPERTY>>;
|
|
832
831
|
/** Filter change output action */
|
|
833
|
-
readonly filterChange: OutputEmitterRef<
|
|
832
|
+
readonly filterChange: OutputEmitterRef<IFilterModel<KEY>[]>;
|
|
834
833
|
/** Columns config for table */
|
|
835
834
|
columns: Signal<Array<ITable.Column<ENTITY_TYPE>>>;
|
|
836
835
|
/** Custom cells template */
|
|
837
|
-
readonly customCellsTpl: Signal<
|
|
836
|
+
readonly customCellsTpl: Signal<INullable<RtuiCustomTableCellsDirective<ENTITY_TYPE>>>;
|
|
838
837
|
/** Row actions template */
|
|
839
|
-
readonly rowActionsTpl: Signal<
|
|
838
|
+
readonly rowActionsTpl: Signal<INullable<TemplateRef<{
|
|
840
839
|
$implicit: ENTITY_TYPE;
|
|
841
840
|
}>>>;
|
|
842
841
|
/** Additional row actions template */
|
|
843
|
-
readonly additionalRowActionsTpl: Signal<
|
|
842
|
+
readonly additionalRowActionsTpl: Signal<INullable<TemplateRef<RtuiTableAdditionalRowActionsDirective>>>;
|
|
844
843
|
/** Fields specified by the directive */
|
|
845
844
|
/** List of selected entities ids */
|
|
846
845
|
readonly selectedEntitiesIds: WritableSignal<ENTITY_TYPE[KEY][]>;
|
|
@@ -855,12 +854,12 @@ declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SO
|
|
|
855
854
|
/** Indicates is selectors column disabled */
|
|
856
855
|
readonly isSelectorsColumnDisabled: WritableSignal<boolean>;
|
|
857
856
|
/** Current row index */
|
|
858
|
-
readonly activeRowIndex: WritableSignal<
|
|
857
|
+
readonly activeRowIndex: WritableSignal<INullable<number>>;
|
|
859
858
|
ngAfterViewChecked(): void;
|
|
860
859
|
/** Sort change output action */
|
|
861
|
-
onSortChange(sortModel:
|
|
860
|
+
onSortChange(sortModel: ISortModel<string>): void;
|
|
862
861
|
/** Filter change output action */
|
|
863
|
-
onFilterChange(filterModel:
|
|
862
|
+
onFilterChange(filterModel: IFilterModel<KEY>[]): void;
|
|
864
863
|
/** Open row actions menu */
|
|
865
864
|
onMenuOpen(index: number): void;
|
|
866
865
|
/** Close the row actions menu */
|
|
@@ -882,7 +881,7 @@ declare class RtuiTableContainerComponent<ENTITY_TYPE> implements OnInit {
|
|
|
882
881
|
/** Table config storage key */
|
|
883
882
|
tableConfigStorageKey: InputSignalWithTransform<string, string>;
|
|
884
883
|
/** Current page model from store */
|
|
885
|
-
pageModel: InputSignal<
|
|
884
|
+
pageModel: InputSignal<IPageModel>;
|
|
886
885
|
/** Indicates is mobile view */
|
|
887
886
|
isMobile: InputSignalWithTransform<boolean, BooleanInput>;
|
|
888
887
|
/** Indicates is loading in progress */
|
|
@@ -904,27 +903,27 @@ declare class RtuiTableContainerComponent<ENTITY_TYPE> implements OnInit {
|
|
|
904
903
|
/** Indicates is filters empty */
|
|
905
904
|
isFiltersEmpty: InputSignalWithTransform<boolean, BooleanInput>;
|
|
906
905
|
/** Current search term from store */
|
|
907
|
-
searchTerm: InputSignalWithTransform<
|
|
906
|
+
searchTerm: InputSignalWithTransform<INullable<string>, INullable<string>>;
|
|
908
907
|
/** Current placeholder icon */
|
|
909
908
|
placeholderIcon: InputSignal<string>;
|
|
910
909
|
/** Current placeholder title */
|
|
911
910
|
placeholderTitle: InputSignal<string>;
|
|
912
911
|
/** Indicates is a small tablet view */
|
|
913
|
-
readonly isSmallTablet: Signal<
|
|
912
|
+
readonly isSmallTablet: Signal<INullable<boolean>>;
|
|
914
913
|
/** Config for table */
|
|
915
914
|
readonly tableConfig: Signal<ITable.Config.Data<ENTITY_TYPE>>;
|
|
916
915
|
/** Page model change output action */
|
|
917
|
-
readonly pageModelChange: OutputEmitterRef<Partial<
|
|
916
|
+
readonly pageModelChange: OutputEmitterRef<Partial<IPageModel>>;
|
|
918
917
|
/** Search change output action */
|
|
919
|
-
readonly searchChange: OutputEmitterRef<
|
|
918
|
+
readonly searchChange: OutputEmitterRef<INullable<string>>;
|
|
920
919
|
/** Refresh output action */
|
|
921
920
|
readonly refreshAction: OutputEmitterRef<void>;
|
|
922
921
|
/** Clear filters output action */
|
|
923
922
|
readonly clearFiltersAction: OutputEmitterRef<void>;
|
|
924
923
|
/** Toolbar selectors template */
|
|
925
|
-
readonly toolbarSelectorsTpl: Signal<
|
|
924
|
+
readonly toolbarSelectorsTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
926
925
|
/** Toolbar actions template */
|
|
927
|
-
readonly toolbarActionsTpl: Signal<
|
|
926
|
+
readonly toolbarActionsTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
928
927
|
/** Fields specified by the directive */
|
|
929
928
|
/** Indicates is multiselect mod enabled */
|
|
930
929
|
readonly isMultiSelect: WritableSignal<boolean>;
|
|
@@ -939,10 +938,10 @@ declare class RtuiTableContainerComponent<ENTITY_TYPE> implements OnInit {
|
|
|
939
938
|
/** Current selected entities count */
|
|
940
939
|
readonly selectedEntitiesCount: WritableSignal<number>;
|
|
941
940
|
/** Control for search */
|
|
942
|
-
readonly searchControl: FormControl<
|
|
941
|
+
readonly searchControl: FormControl<INullable<string>>;
|
|
943
942
|
ngOnInit(): void;
|
|
944
943
|
/** Page model change output action */
|
|
945
|
-
onPageModelChange(pageModel: Partial<
|
|
944
|
+
onPageModelChange(pageModel: Partial<IPageModel>): void;
|
|
946
945
|
/** Clear search control and search change output action */
|
|
947
946
|
onClearSearch(): void;
|
|
948
947
|
/** Refresh output action */
|
|
@@ -991,7 +990,7 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
991
990
|
/** Table config storage key */
|
|
992
991
|
tableConfigStorageKey: InputSignalWithTransform<string, unknown>;
|
|
993
992
|
/** Indicates is mobile view */
|
|
994
|
-
isMobile: InputSignalWithTransform<
|
|
993
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, BooleanInput>;
|
|
995
994
|
/** Indicates is loading in progress */
|
|
996
995
|
loading: InputSignalWithTransform<boolean, BooleanInput>;
|
|
997
996
|
/** Indicates is fetching in progress */
|
|
@@ -1011,25 +1010,25 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
1011
1010
|
/** List of entities */
|
|
1012
1011
|
entities: InputSignalWithTransform<ENTITY_TYPE[], ENTITY_TYPE[]>;
|
|
1013
1012
|
/** Current page model from store */
|
|
1014
|
-
pageModel: InputSignal<
|
|
1013
|
+
pageModel: InputSignal<IPageModel>;
|
|
1015
1014
|
/** Current search term from store */
|
|
1016
|
-
searchTerm: InputSignal<
|
|
1015
|
+
searchTerm: InputSignal<INullable<string>>;
|
|
1017
1016
|
/** Current sort model from store */
|
|
1018
|
-
currentSortModel: InputSignal<
|
|
1017
|
+
currentSortModel: InputSignal<INullable<ISortModel<NonNullable<KEY>>>>;
|
|
1019
1018
|
/** Inputs appearance */
|
|
1020
1019
|
appearance: InputSignal<MatFormFieldAppearance>;
|
|
1021
1020
|
/** Filter inputs appearance */
|
|
1022
1021
|
filterAppearance: InputSignal<MatFormFieldAppearance>;
|
|
1023
1022
|
/** Current filter model from store */
|
|
1024
|
-
filterModel: InputSignalWithTransform<
|
|
1023
|
+
filterModel: InputSignalWithTransform<IFilterModel<KEY>[], IFilterModel<KEY>[]>;
|
|
1025
1024
|
/** Indicates is filters shown */
|
|
1026
1025
|
isFiltersShown: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1027
1026
|
/** Sort model change output action */
|
|
1028
|
-
readonly sortChange: OutputEmitterRef<
|
|
1027
|
+
readonly sortChange: OutputEmitterRef<ISortModel<NonNullable<KEY>>>;
|
|
1029
1028
|
/** Page model change output action */
|
|
1030
|
-
readonly pageModelChange: OutputEmitterRef<Partial<
|
|
1029
|
+
readonly pageModelChange: OutputEmitterRef<Partial<IPageModel>>;
|
|
1031
1030
|
/** Search change output action */
|
|
1032
|
-
readonly searchChange: OutputEmitterRef<
|
|
1031
|
+
readonly searchChange: OutputEmitterRef<INullable<string>>;
|
|
1033
1032
|
/** Refresh output action */
|
|
1034
1033
|
readonly refresh: OutputEmitterRef<void>;
|
|
1035
1034
|
/** Clear filters output action */
|
|
@@ -1042,35 +1041,35 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
1042
1041
|
/** Row doubleClick output action */
|
|
1043
1042
|
readonly rowDoubleClick: OutputEmitterRef<NonNullable<ENTITY_TYPE>>;
|
|
1044
1043
|
/** Filter change output action */
|
|
1045
|
-
readonly filterChange: OutputEmitterRef<
|
|
1044
|
+
readonly filterChange: OutputEmitterRef<IFilterModel<KEY>[]>;
|
|
1046
1045
|
/** Toolbar selectors template */
|
|
1047
|
-
readonly toolbarSelectorsTpl: Signal<
|
|
1046
|
+
readonly toolbarSelectorsTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
1048
1047
|
/** Toolbar actions template */
|
|
1049
|
-
readonly toolbarActionsTpl: Signal<
|
|
1048
|
+
readonly toolbarActionsTpl: Signal<INullable<TemplateRef<Type<unknown>>>>;
|
|
1050
1049
|
/** Custom cells template */
|
|
1051
|
-
readonly customCellsTpl: Signal<
|
|
1050
|
+
readonly customCellsTpl: Signal<INullable<RtuiDynamicListCustomTableCellsDirective<{
|
|
1052
1051
|
$implicit: ENTITY_TYPE;
|
|
1053
1052
|
}>>>;
|
|
1054
1053
|
/** Row actions template */
|
|
1055
|
-
readonly rowActionsTpl: Signal<
|
|
1054
|
+
readonly rowActionsTpl: Signal<INullable<TemplateRef<{
|
|
1056
1055
|
$implicit: ENTITY_TYPE;
|
|
1057
1056
|
}>>>;
|
|
1058
1057
|
/** Additional row actions template */
|
|
1059
|
-
readonly additionalRowActionsTpl: Signal<
|
|
1058
|
+
readonly additionalRowActionsTpl: Signal<INullable<TemplateRef<{
|
|
1060
1059
|
$implicit: ENTITY_TYPE;
|
|
1061
1060
|
}>>>;
|
|
1062
1061
|
/** Table container for selectors directive usage */
|
|
1063
|
-
readonly tableContainerTpl: Signal<
|
|
1062
|
+
readonly tableContainerTpl: Signal<INullable<RtuiTableContainerComponent<ENTITY_TYPE>>>;
|
|
1064
1063
|
/** Table selector for selectors directive usage */
|
|
1065
|
-
readonly tableTpl: Signal<
|
|
1064
|
+
readonly tableTpl: Signal<INullable<RtuiTableComponent<ENTITY_TYPE, SORT_PROPERTY, KEY>>>;
|
|
1066
1065
|
/** Search change output action */
|
|
1067
|
-
onSearchChange(value:
|
|
1066
|
+
onSearchChange(value: INullable<string>): void;
|
|
1068
1067
|
/** Sort change output action */
|
|
1069
|
-
onSortChange(sortModel:
|
|
1068
|
+
onSortChange(sortModel: ISortModel<NonNullable<KEY>>): void;
|
|
1070
1069
|
/** Page model change output action */
|
|
1071
|
-
onPageModelChange(pageModel: Partial<
|
|
1070
|
+
onPageModelChange(pageModel: Partial<IPageModel>): void;
|
|
1072
1071
|
/** Filter change output action */
|
|
1073
|
-
onFilterChange(filterModel:
|
|
1072
|
+
onFilterChange(filterModel: IFilterModel<KEY>[]): void;
|
|
1074
1073
|
/** Refresh output action */
|
|
1075
1074
|
onRefresh(): void;
|
|
1076
1075
|
/** Clear filters output action */
|
|
@@ -1128,9 +1127,9 @@ declare function provideRtUi(config?: IRtUiConfig.Config): Provider[];
|
|
|
1128
1127
|
|
|
1129
1128
|
declare namespace IRtSnackBar {
|
|
1130
1129
|
interface Config extends MatSnackBarConfig {
|
|
1131
|
-
icon?:
|
|
1130
|
+
icon?: INullable<string>;
|
|
1132
1131
|
isColoredBackground?: boolean;
|
|
1133
|
-
action?:
|
|
1132
|
+
action?: INullable<string>;
|
|
1134
1133
|
isProgressBarShown?: boolean;
|
|
1135
1134
|
}
|
|
1136
1135
|
interface Data extends Config {
|
|
@@ -1142,7 +1141,7 @@ declare class RtuiSnackBarComponent {
|
|
|
1142
1141
|
#private;
|
|
1143
1142
|
readonly data: IRtSnackBar.Data;
|
|
1144
1143
|
player: AnimationPlayer | undefined;
|
|
1145
|
-
readonly progressTplRef: Signal<
|
|
1144
|
+
readonly progressTplRef: Signal<INullable<ElementRef<HTMLElement>>>;
|
|
1146
1145
|
constructor();
|
|
1147
1146
|
onMouseOver(): void;
|
|
1148
1147
|
onMouseOut(): void;
|
|
@@ -1185,7 +1184,7 @@ declare class RtuiInfoBadgeComponent implements AfterContentChecked {
|
|
|
1185
1184
|
glyph: InputSignal<string>;
|
|
1186
1185
|
iconSide: InputSignal<IconSideType>;
|
|
1187
1186
|
isFontBold: InputSignal<boolean>;
|
|
1188
|
-
isMobile: InputSignalWithTransform<
|
|
1187
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
1189
1188
|
isTitleCollapsed: WritableSignal<boolean>;
|
|
1190
1189
|
readonly contentRef: Signal<ElementRef<HTMLElement> | undefined>;
|
|
1191
1190
|
get badgeClass(): {
|
|
@@ -1218,13 +1217,13 @@ type ToggleSizeType = TOGGLE_SIZE_TYPE_ENUM.SM | TOGGLE_SIZE_TYPE_ENUM.MD;
|
|
|
1218
1217
|
declare class RtuiToggleComponent implements OnInit, ControlValueAccessor {
|
|
1219
1218
|
#private;
|
|
1220
1219
|
formControl: FormControl<boolean>;
|
|
1221
|
-
label: InputSignal<
|
|
1220
|
+
label: InputSignal<INullable<string>>;
|
|
1222
1221
|
tooltip: InputSignal<string>;
|
|
1223
1222
|
size: InputSignal<ToggleSizeType>;
|
|
1224
1223
|
tooltipPosition: InputSignal<TooltipPosition>;
|
|
1225
1224
|
isDisabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1226
1225
|
tooltipDisabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1227
|
-
readonly isMobile: Signal<
|
|
1226
|
+
readonly isMobile: Signal<INullable<boolean>>;
|
|
1228
1227
|
ngOnInit(): void;
|
|
1229
1228
|
writeValue(value: boolean): void;
|
|
1230
1229
|
registerOnChange(fn: () => void): void;
|
|
@@ -1248,7 +1247,7 @@ declare class RtuiFileUploadComponent {
|
|
|
1248
1247
|
|
|
1249
1248
|
declare abstract class RtuiDynamicSelectorsDirective {
|
|
1250
1249
|
/** Indicates if mobile view */
|
|
1251
|
-
isMobile: InputSignalWithTransform<
|
|
1250
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
1252
1251
|
/** Selections control button title */
|
|
1253
1252
|
buttonTitle: InputSignalWithTransform<string, string>;
|
|
1254
1253
|
/** Indicates if only one option can be chosen */
|
|
@@ -1275,7 +1274,7 @@ declare abstract class RtuiDynamicSelectorsDirective {
|
|
|
1275
1274
|
}
|
|
1276
1275
|
|
|
1277
1276
|
interface FormModel$1 {
|
|
1278
|
-
autocompleteControl: FormControl<
|
|
1277
|
+
autocompleteControl: FormControl<INullable<string>>;
|
|
1279
1278
|
}
|
|
1280
1279
|
/** Directive for row actions located outside a row menu button */
|
|
1281
1280
|
declare class RtuiDynamicSelectorAdditionalControlDirective {
|
|
@@ -1293,7 +1292,7 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1293
1292
|
protected readonly connectedOverlayPositions: ConnectedPosition[];
|
|
1294
1293
|
form: FormGroup<FormModel$1>;
|
|
1295
1294
|
/** Target element for overlay selector */
|
|
1296
|
-
selectedOverlayTrigger:
|
|
1295
|
+
selectedOverlayTrigger: INullable<CdkOverlayOrigin>;
|
|
1297
1296
|
/** A model's field which should be used for http-requests */
|
|
1298
1297
|
keyExp: InputSignal<KEY>;
|
|
1299
1298
|
/** A model's field which should be shown in ui */
|
|
@@ -1333,7 +1332,7 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1333
1332
|
/** Indicates that an additional control has been changed */
|
|
1334
1333
|
additionalControlChanged: InputSignal<boolean>;
|
|
1335
1334
|
/** Custom sort function for entities list in popup */
|
|
1336
|
-
sortFn: InputSignal<
|
|
1335
|
+
sortFn: InputSignal<INullable<(a: ENTITY, b: ENTITY) => number>>;
|
|
1337
1336
|
/** Output search action */
|
|
1338
1337
|
readonly searchAction: OutputEmitterRef<string>;
|
|
1339
1338
|
/** Output scroll action, needed for lazy loading */
|
|
@@ -1357,11 +1356,11 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1357
1356
|
/** Entities can be chosen, except selected on init */
|
|
1358
1357
|
readonly entitiesToSelect: Signal<ENTITY[]>;
|
|
1359
1358
|
/** Additional control for entity */
|
|
1360
|
-
readonly additionalControlTpl: Signal<
|
|
1359
|
+
readonly additionalControlTpl: Signal<INullable<TemplateRef<{
|
|
1361
1360
|
$implicit: ENTITY;
|
|
1362
1361
|
}>>>;
|
|
1363
1362
|
/** Custom item title template */
|
|
1364
|
-
readonly itemTitleTpl: Signal<
|
|
1363
|
+
readonly itemTitleTpl: Signal<INullable<TemplateRef<{
|
|
1365
1364
|
$implicit: ENTITY;
|
|
1366
1365
|
}>>>;
|
|
1367
1366
|
ngOnInit(): void;
|
|
@@ -1396,7 +1395,7 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1396
1395
|
|
|
1397
1396
|
interface FormModel {
|
|
1398
1397
|
control: FormControl<string[]>;
|
|
1399
|
-
controlForUi: FormControl<
|
|
1398
|
+
controlForUi: FormControl<INullable<string>>;
|
|
1400
1399
|
}
|
|
1401
1400
|
/** Directive for row actions located outside a row menu button */
|
|
1402
1401
|
declare class RtuiDynamicInputAdditionalControlDirective {
|
|
@@ -1407,7 +1406,7 @@ declare class RtuiDynamicInputComponent extends RtuiDynamicSelectorsDirective im
|
|
|
1407
1406
|
#private;
|
|
1408
1407
|
form: FormGroup<FormModel>;
|
|
1409
1408
|
/** Indicates is placeholder shown */
|
|
1410
|
-
isPlaceholderShown: ModelSignal<
|
|
1409
|
+
isPlaceholderShown: ModelSignal<INullable<boolean>>;
|
|
1411
1410
|
/** Indicates is inputs-editable */
|
|
1412
1411
|
isInputsEditable: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1413
1412
|
/** Input label */
|
|
@@ -1425,7 +1424,7 @@ declare class RtuiDynamicInputComponent extends RtuiDynamicSelectorsDirective im
|
|
|
1425
1424
|
/** Indicates the reset changes button is disabled */
|
|
1426
1425
|
readonly isResetButtonDisabled: WritableSignal<boolean>;
|
|
1427
1426
|
/** Additional control for entity */
|
|
1428
|
-
readonly additionalControlTpl: Signal<
|
|
1427
|
+
readonly additionalControlTpl: Signal<INullable<TemplateRef<{
|
|
1429
1428
|
$implicit: string;
|
|
1430
1429
|
}>>>;
|
|
1431
1430
|
ngOnInit(): void;
|
|
@@ -1465,7 +1464,7 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1465
1464
|
#private;
|
|
1466
1465
|
protected readonly oSTypes: typeof OSTypes;
|
|
1467
1466
|
/** Indicates is mobile view */
|
|
1468
|
-
isMobile: InputSignalWithTransform<
|
|
1467
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, INullable<boolean>>;
|
|
1469
1468
|
entitiesToSelect: InputSignalWithTransform<ENTITY[], ENTITY[]>;
|
|
1470
1469
|
/** Material elements appearance */
|
|
1471
1470
|
appearance: InputSignal<MatFormFieldAppearance>;
|
|
@@ -1492,9 +1491,9 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1492
1491
|
/** Indicates is BreakStringPipe used */
|
|
1493
1492
|
useNameBreaking: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1494
1493
|
/** Indicates lazy loading is used */
|
|
1495
|
-
isLazyLoad: InputSignalWithTransform<
|
|
1494
|
+
isLazyLoad: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
1496
1495
|
/** Indicates local search is used */
|
|
1497
|
-
isLocalSearch: InputSignalWithTransform<
|
|
1496
|
+
isLocalSearch: InputSignalWithTransform<INullable<boolean>, boolean>;
|
|
1498
1497
|
/** Keys of a pinned group kept at the top of the list — a trailing divider is drawn after the last visible one */
|
|
1499
1498
|
pinnedKeys: InputSignalWithTransform<ENTITY[KEY][], ENTITY[KEY][]>;
|
|
1500
1499
|
/** Send output selected entities ids */
|
|
@@ -1508,9 +1507,9 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1508
1507
|
/** Output temporary selection action, needed for store values */
|
|
1509
1508
|
readonly temporarySelectAction: OutputEmitterRef<ENTITY[]>;
|
|
1510
1509
|
/** Search input Ref for set focus on init */
|
|
1511
|
-
readonly searchInputRef: Signal<
|
|
1510
|
+
readonly searchInputRef: Signal<INullable<ElementRef<HTMLInputElement>>>;
|
|
1512
1511
|
/** Form control for search */
|
|
1513
|
-
readonly searchControl: FormControl<
|
|
1512
|
+
readonly searchControl: FormControl<INullable<string>>;
|
|
1514
1513
|
/** Form control for select */
|
|
1515
1514
|
readonly selectionControl: FormControl<ENTITY[KEY][]>;
|
|
1516
1515
|
/** Entities filtered by local search */
|
|
@@ -1524,7 +1523,7 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1524
1523
|
/** Indicates is macOS used */
|
|
1525
1524
|
readonly isMacOS: Signal<boolean>;
|
|
1526
1525
|
/** Key of the last visible pinned option — its row gets a trailing divider */
|
|
1527
|
-
readonly lastSeparatedKey: Signal<
|
|
1526
|
+
readonly lastSeparatedKey: Signal<INullable<ENTITY[KEY]>>;
|
|
1528
1527
|
ngOnInit(): void;
|
|
1529
1528
|
/** Set focus on search input */
|
|
1530
1529
|
ngAfterViewInit(): void;
|
|
@@ -1564,7 +1563,7 @@ declare class RtuiDynamicSelectorPlaceholderComponent {
|
|
|
1564
1563
|
}
|
|
1565
1564
|
|
|
1566
1565
|
declare class RtuiDynamicSelectorListActionsComponent {
|
|
1567
|
-
isMobile: InputSignalWithTransform<
|
|
1566
|
+
isMobile: InputSignalWithTransform<INullable<boolean>, INullable<boolean>>;
|
|
1568
1567
|
isResetButtonDisabled: InputSignalWithTransform<boolean, boolean>;
|
|
1569
1568
|
isClearButtonDisabled: InputSignalWithTransform<boolean, boolean>;
|
|
1570
1569
|
disabled: InputSignalWithTransform<boolean, boolean>;
|
|
@@ -1587,8 +1586,8 @@ declare class RtuiDynamicSelectorItemTitleDirective {
|
|
|
1587
1586
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiDynamicSelectorItemTitleDirective, "[rtuiDynamicSelectorItemTitleDirective]", never, {}, {}, never, never, true, never>;
|
|
1588
1587
|
}
|
|
1589
1588
|
declare class RtuiDynamicSelectorSelectedListComponent<ENTITY extends Record<string, unknown>, KEY extends Extract<keyof ENTITY, string>> {
|
|
1590
|
-
protected readonly editedItemIndex: WritableSignal<
|
|
1591
|
-
readonly inputRef: Signal<
|
|
1589
|
+
protected readonly editedItemIndex: WritableSignal<INullable<number>>;
|
|
1590
|
+
readonly inputRef: Signal<INullable<MatInput>>;
|
|
1592
1591
|
/** Indicates if mobile view */
|
|
1593
1592
|
isMobile: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1594
1593
|
/** A model's field, which should be used for http-requests */
|
|
@@ -1618,17 +1617,17 @@ declare class RtuiDynamicSelectorSelectedListComponent<ENTITY extends Record<str
|
|
|
1618
1617
|
new: string;
|
|
1619
1618
|
}>;
|
|
1620
1619
|
/** Additional control for entity */
|
|
1621
|
-
readonly additionalControlTpl: Signal<
|
|
1620
|
+
readonly additionalControlTpl: Signal<INullable<TemplateRef<{
|
|
1622
1621
|
$implicit: ENTITY;
|
|
1623
1622
|
}>>>;
|
|
1624
1623
|
/** Custom item title template */
|
|
1625
|
-
readonly itemTitleTpl: Signal<
|
|
1624
|
+
readonly itemTitleTpl: Signal<INullable<TemplateRef<{
|
|
1626
1625
|
$implicit: ENTITY;
|
|
1627
1626
|
}>>>;
|
|
1628
1627
|
protected onDelete(value: ENTITY[KEY]): void;
|
|
1629
1628
|
protected onDrop(event: CdkDragDrop<ENTITY[]>): void;
|
|
1630
1629
|
protected changeValue(prev: ENTITY[KEY]): void;
|
|
1631
|
-
protected setEditModState(index:
|
|
1630
|
+
protected setEditModState(index: INullable<number>): void;
|
|
1632
1631
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorSelectedListComponent<any, any>, never>;
|
|
1633
1632
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiDynamicSelectorSelectedListComponent<any, any>, "rtui-dynamic-selector-selected-list", never, { "isMobile": { "alias": "isMobile"; "required": true; "isSignal": true; }; "keyExp": { "alias": "keyExp"; "required": true; "isSignal": true; }; "displayExp": { "alias": "displayExp"; "required": true; "isSignal": true; }; "selectedEntities": { "alias": "selectedEntities"; "required": true; "isSignal": true; }; "readonlyEntitiesKeys": { "alias": "readonlyEntitiesKeys"; "required": false; "isSignal": true; }; "isListDraggable": { "alias": "isListDraggable"; "required": false; "isSignal": true; }; "useNameBreaking": { "alias": "useNameBreaking"; "required": false; "isSignal": true; }; "useTitleCase": { "alias": "useTitleCase"; "required": false; "isSignal": true; }; "isDeleteButtonShown": { "alias": "isDeleteButtonShown"; "required": false; "isSignal": true; }; "isItemsEditable": { "alias": "isItemsEditable"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, { "deleteFromSelectedAction": "deleteFromSelectedAction"; "dropAction": "dropAction"; "changeValueAction": "changeValueAction"; }, ["additionalControlTpl", "itemTitleTpl"], never, true, never>;
|
|
1634
1633
|
}
|
|
@@ -1637,7 +1636,7 @@ type IImageUploadFormat = 'png' | 'jpeg' | 'webp';
|
|
|
1637
1636
|
declare class RtuiImageUploadComponent {
|
|
1638
1637
|
#private;
|
|
1639
1638
|
protected readonly imageFormat: Signal<IImageUploadFormat>;
|
|
1640
|
-
imageUrl: ModelSignal<
|
|
1639
|
+
imageUrl: ModelSignal<INullable<string>>;
|
|
1641
1640
|
isMobile: InputSignalWithTransform<boolean, boolean>;
|
|
1642
1641
|
fileName: InputSignalWithTransform<string, string>;
|
|
1643
1642
|
isActive: InputSignalWithTransform<boolean, BooleanInput>;
|
|
@@ -1650,8 +1649,8 @@ declare class RtuiImageUploadComponent {
|
|
|
1650
1649
|
tooltipPosition: InputSignal<TooltipPosition>;
|
|
1651
1650
|
imageQuality: InputSignal<number>;
|
|
1652
1651
|
originalImage: WritableSignal<File | undefined>;
|
|
1653
|
-
croppedImage: WritableSignal<
|
|
1654
|
-
tempImage: WritableSignal<
|
|
1652
|
+
croppedImage: WritableSignal<INullable<File>>;
|
|
1653
|
+
tempImage: WritableSignal<INullable<string>>;
|
|
1655
1654
|
readonly imageChanged: OutputEmitterRef<File>;
|
|
1656
1655
|
readonly save: OutputEmitterRef<void>;
|
|
1657
1656
|
onFileSelect(event: Event): void;
|
|
@@ -1670,7 +1669,7 @@ declare class RtPopoverDirective implements OnInit, OnDestroy {
|
|
|
1670
1669
|
xOffset: InputSignalWithTransform<number, NumberInput>;
|
|
1671
1670
|
yOffset: InputSignalWithTransform<number, NumberInput>;
|
|
1672
1671
|
trigger: InputSignalWithTransform<MenuItemTrigger, MenuItemTrigger>;
|
|
1673
|
-
template: InputSignalWithTransform<
|
|
1672
|
+
template: InputSignalWithTransform<INullable<TemplateRef<HTMLElement>>, INullable<TemplateRef<HTMLElement>>>;
|
|
1674
1673
|
isMouseHoverAllowed: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1675
1674
|
onClick(element: EventTarget | null): void;
|
|
1676
1675
|
onMouseEnter(): void;
|
|
@@ -1796,4 +1795,4 @@ declare class RtHideTooltipDirective implements AfterViewInit {
|
|
|
1796
1795
|
}
|
|
1797
1796
|
|
|
1798
1797
|
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, IAside, IModal, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IRtActionBar, IRtSnackBar, IRtUiConfig, IRtuiButton, ISideMenu, ITable, MODAL_WINDOW_SIZE_ENUM, RTUI_TABLE_COMPONENT_TOKEN, RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE, RT_ACCENT_ROLE_ENUM, RT_COLOR_SCHEME_STORAGE_KEY, RT_DARK_CLASS, RT_DEFAULT_SCHEME, RT_SCHEME_ATTRIBUTE, RT_THEME_ATTRIBUTE, RT_THEME_AUTO_CLASS, RT_THEME_ENUM, RT_THEME_STORAGE_KEY, RT_UI_CONFIG, RtActionBarService, RtAsideService, RtDynamicListSelectorsDirective, RtHideTooltipDirective, RtModalService, RtPopoverDirective, RtSnackBarService, RtTableConfigService, RtTableSelectorsDirective, RtThemeDirective, RtThemeService, RtuiActionBarComponent, RtuiActionBarContainerComponent, RtuiAsideContainerComponent, RtuiAsideContainerHeaderDirective, RtuiButtonComponent, RtuiClearButtonComponent, RtuiCustomTableCellsDirective, RtuiDynamicInputAdditionalControlDirective, RtuiDynamicInputComponent, RtuiDynamicListComponent, RtuiDynamicListCustomTableCellsDirective, RtuiDynamicListRowActionsDirective, RtuiDynamicListRowAdditionalActionsDirective, RtuiDynamicListToolbarActionsDirective, RtuiDynamicListToolbarSelectorsDirective, RtuiDynamicSelectorAdditionalControlDirective, RtuiDynamicSelectorComponent, RtuiDynamicSelectorItemAdditionalControlDirective, RtuiDynamicSelectorItemTitleDirective, RtuiDynamicSelectorItemTitleProjectionDirective, RtuiDynamicSelectorListActionsComponent, RtuiDynamicSelectorPlaceholderComponent, RtuiDynamicSelectorSelectedListComponent, RtuiFileUploadComponent, RtuiHeaderCenterDirective, RtuiHeaderComponent, RtuiHeaderLeftDirective, RtuiHeaderRightDirective, RtuiIconComponent, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiScrollableContainerComponent, RtuiScrollableContainerContentDirective, RtuiScrollableContainerFooterDirective, RtuiScrollableContainerHeaderDirective, RtuiSideMenuComponent, RtuiSideMenuFooterDirective, RtuiSideMenuHeaderDirective, RtuiSnackBarComponent, RtuiSpinnerComponent, RtuiStopTableRowClickDirective, RtuiTableAdditionalRowActionsDirective, RtuiTableComponent, RtuiTableRowActionsDirective, RtuiTableRowClickDirective, RtuiToggleComponent, RtuiToolbarCenterDirective, RtuiToolbarComponent, RtuiToolbarLeftDirective, RtuiToolbarRightDirective, TABLE_COLUMN_FILTER_TYPES_ENUM, TABLE_COLUMN_TYPES_ENUM, TEXT_CELL_COLOR_ENUM, TOGGLE_SIZE_TYPE_ENUM, darkenHexColor, ddServices, getColorBasedOnBackground, progressDecreaseAnimation, progressIncreaseAnimation, provideRtUi };
|
|
1799
|
-
export type { AsideButtonsType, AsidePositions, IImageUploadFormat, IInfoBadgeSizeType, IRtuiTable, Icon, IconSideType, InfoBadgeType, MenuItemTrigger, ModalWindowSizeType,
|
|
1798
|
+
export type { AsideButtonsType, AsidePositions, IImageUploadFormat, IInfoBadgeSizeType, INameValueType, IRtuiTable, ISelect, Icon, IconSideType, InfoBadgeType, MenuItemTrigger, ModalWindowSizeType, RtAccentRole, RtColorSchemeRamp, RtThemeType, RtUiDesign, RtuiIconSizeType, RtuiIconThemeType, ToggleSizeType };
|