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