@rt-tools/ui-kit 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/rt-tools-ui-kit.mjs +39 -8
- package/fesm2022/rt-tools-ui-kit.mjs.map +1 -1
- package/package.json +5 -5
- package/rt-tools-ui-kit-0.0.15.tgz +0 -0
- package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss +22 -0
- package/types/rt-tools-ui-kit.d.ts +111 -93
- package/rt-tools-ui-kit-0.0.13.tgz +0 -0
|
@@ -5,12 +5,12 @@ import { ThemePalette } from '@angular/material/core';
|
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { Nullable } from '@rt-tools/core';
|
|
7
7
|
import { MatDialogConfig } from '@angular/material/dialog';
|
|
8
|
-
import { Nullable as Nullable$1, PageModel, SortModel, FilterOperatorType, FilterModel, FILTER_OPERATOR_TYPE_ENUM, POSITION_ENUM, OSTypes } from '@rt-tools/utils';
|
|
9
8
|
import { MatDrawer } from '@angular/material/sidenav';
|
|
10
9
|
import { OverlayRef, ComponentType, ConnectedPosition, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
11
10
|
import { ComponentType as ComponentType$1 } from '@angular/cdk/portal';
|
|
12
11
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
13
12
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
13
|
+
import { PageModel, SortModel, FilterOperatorType, FilterModel, FILTER_OPERATOR_TYPE_ENUM, POSITION_ENUM, OSTypes } from '@rt-tools/utils';
|
|
14
14
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
15
15
|
import { TooltipPosition } from '@angular/material/tooltip';
|
|
16
16
|
import { AnimationPlayer, AnimationTriggerMetadata } from '@angular/animations';
|
|
@@ -101,7 +101,7 @@ declare class RtuiModalComponent<T> implements OnInit {
|
|
|
101
101
|
|
|
102
102
|
declare class RtModalService {
|
|
103
103
|
#private;
|
|
104
|
-
confirm<T>(data: IModal.Data<T>, config?: MatDialogConfig): Observable<Nullable
|
|
104
|
+
confirm<T>(data: IModal.Data<T>, config?: MatDialogConfig): Observable<Nullable<IModal.DataAnswer<T>>>;
|
|
105
105
|
with<T>(data: IModal.Data<T>, config?: MatDialogConfig): IModal.ConfirmResponse<T>;
|
|
106
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtModalService, never>;
|
|
107
107
|
static ɵprov: i0.ɵɵInjectableDeclaration<RtModalService>;
|
|
@@ -120,9 +120,9 @@ declare class RtuiScrollableContainerFooterDirective {
|
|
|
120
120
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiScrollableContainerFooterDirective, "[rtuiScrollableFooter]", never, {}, {}, never, never, true, never>;
|
|
121
121
|
}
|
|
122
122
|
declare class RtuiScrollableContainerComponent {
|
|
123
|
-
readonly headerTpl: Signal<Nullable
|
|
124
|
-
readonly contentTpl: Signal<Nullable
|
|
125
|
-
readonly footerTpl: Signal<Nullable
|
|
123
|
+
readonly headerTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
124
|
+
readonly contentTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
125
|
+
readonly footerTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
126
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiScrollableContainerComponent, never>;
|
|
127
127
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiScrollableContainerComponent, "rtui-scrollable", never, {}, {}, ["headerTpl", "contentTpl", "footerTpl"], never, true, never>;
|
|
128
128
|
}
|
|
@@ -152,15 +152,15 @@ declare class RtuiSideMenuFooterDirective {
|
|
|
152
152
|
}
|
|
153
153
|
declare class RtuiSideMenuComponent {
|
|
154
154
|
#private;
|
|
155
|
-
readonly headerTpl: Signal<Nullable
|
|
156
|
-
readonly footerTpl: Signal<Nullable
|
|
157
|
-
readonly subMenuRef: Signal<Nullable
|
|
155
|
+
readonly headerTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
156
|
+
readonly footerTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
157
|
+
readonly subMenuRef: Signal<Nullable<MatDrawer>>;
|
|
158
158
|
readonly backToMainMenuButton: Signal<ISideMenu.Item>;
|
|
159
|
-
readonly selectedItem: WritableSignal<Nullable
|
|
160
|
-
readonly selectedSubMenu: WritableSignal<Nullable
|
|
159
|
+
readonly selectedItem: WritableSignal<Nullable<ISideMenu.Item>>;
|
|
160
|
+
readonly selectedSubMenu: WritableSignal<Nullable<ISideMenu.Item[]>>;
|
|
161
161
|
activeMenuIds: InputSignal<Array<string | number>>;
|
|
162
162
|
menuItems: InputSignalWithTransform<ISideMenu.Item[], ISideMenu.Item[]>;
|
|
163
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
163
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, Nullable<boolean>>;
|
|
164
164
|
isSubMenuXScrollEnabled: InputSignalWithTransform<boolean, boolean>;
|
|
165
165
|
isMainMenuIconsOutlined: InputSignalWithTransform<boolean, boolean>;
|
|
166
166
|
isSubMenuIconsOutlined: InputSignalWithTransform<boolean, boolean>;
|
|
@@ -260,21 +260,21 @@ declare class RtuiAsideContainerHeaderDirective {
|
|
|
260
260
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiAsideContainerHeaderDirective, "[rtuiAsideHeader]", never, {}, {}, never, never, true, never>;
|
|
261
261
|
}
|
|
262
262
|
declare class RtuiAsideContainerComponent {
|
|
263
|
-
title: InputSignal<Nullable
|
|
264
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
263
|
+
title: InputSignal<Nullable<string>>;
|
|
264
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
265
265
|
isSubmitButtonDisabled: InputSignalWithTransform<boolean, boolean>;
|
|
266
266
|
isFooterShown: InputSignalWithTransform<boolean, boolean>;
|
|
267
267
|
pending: InputSignalWithTransform<boolean, boolean>;
|
|
268
268
|
isRequestErrorShown: InputSignalWithTransform<boolean, boolean>;
|
|
269
269
|
headerActionsButtons: InputSignalWithTransform<IAside.HeaderActionButton[], IAside.HeaderActionButton[]>;
|
|
270
|
-
requestError: InputSignal<Nullable
|
|
270
|
+
requestError: InputSignal<Nullable<HttpErrorResponse>>;
|
|
271
271
|
submitButtonTitle: InputSignal<string>;
|
|
272
272
|
cancelButtonTitle: InputSignal<string>;
|
|
273
273
|
submitButtonTooltip: InputSignal<string>;
|
|
274
274
|
readonly submitAction: OutputEmitterRef<void>;
|
|
275
275
|
readonly cancelAction: OutputEmitterRef<void>;
|
|
276
276
|
readonly headerAction: OutputEmitterRef<AsideButtonsType>;
|
|
277
|
-
readonly headerTpl: Signal<Nullable
|
|
277
|
+
readonly headerTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
278
278
|
onSubmit(): void;
|
|
279
279
|
onCancel(): void;
|
|
280
280
|
onHeaderActionClick(buttonName: AsideButtonsType): void;
|
|
@@ -311,7 +311,7 @@ type ButtonAppearanceType = BUTTON_APPEARANCE.OUTLINE | BUTTON_APPEARANCE.LIGHT;
|
|
|
311
311
|
declare class RtuiButtonComponent {
|
|
312
312
|
readonly size: InputSignal<ButtonSizeType>;
|
|
313
313
|
readonly color: InputSignal<ButtonColorType>;
|
|
314
|
-
readonly appearance: InputSignal<Nullable
|
|
314
|
+
readonly appearance: InputSignal<Nullable<ButtonAppearanceType>>;
|
|
315
315
|
readonly modifierClass: Signal<string>;
|
|
316
316
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiButtonComponent, never>;
|
|
317
317
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiButtonComponent, "a[rtui-btn], button[rtui-btn]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
@@ -340,10 +340,10 @@ declare class RtuiToolbarRightDirective {
|
|
|
340
340
|
}
|
|
341
341
|
declare class RtuiToolbarComponent {
|
|
342
342
|
isVisibleToolbar: Signal<boolean>;
|
|
343
|
-
readonly leftToolTpl: Signal<Nullable
|
|
344
|
-
readonly centerToolTpl: Signal<Nullable
|
|
345
|
-
readonly rightToolTpl: Signal<Nullable
|
|
346
|
-
sticky: InputSignalWithTransform<Nullable
|
|
343
|
+
readonly leftToolTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
344
|
+
readonly centerToolTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
345
|
+
readonly rightToolTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
346
|
+
sticky: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
347
347
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiToolbarComponent, never>;
|
|
348
348
|
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>;
|
|
349
349
|
}
|
|
@@ -361,11 +361,11 @@ declare class RtuiHeaderRightDirective {
|
|
|
361
361
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiHeaderRightDirective, "[rtuiHeaderRight]", never, {}, {}, never, never, true, never>;
|
|
362
362
|
}
|
|
363
363
|
declare class RtuiHeaderComponent {
|
|
364
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
365
|
-
isMobileMenuButtonShown: InputSignalWithTransform<Nullable
|
|
366
|
-
readonly leftHeaderTpl: Signal<Nullable
|
|
367
|
-
readonly centerHeaderTpl: Signal<Nullable
|
|
368
|
-
readonly rightHeaderTpl: Signal<Nullable
|
|
364
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, Nullable<boolean>>;
|
|
365
|
+
isMobileMenuButtonShown: InputSignalWithTransform<Nullable<boolean>, Nullable<boolean>>;
|
|
366
|
+
readonly leftHeaderTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
367
|
+
readonly centerHeaderTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
368
|
+
readonly rightHeaderTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
369
369
|
readonly openMobileMenuAction: OutputEmitterRef<void>;
|
|
370
370
|
openSideMenu(): void;
|
|
371
371
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiHeaderComponent, never>;
|
|
@@ -374,9 +374,9 @@ declare class RtuiHeaderComponent {
|
|
|
374
374
|
|
|
375
375
|
declare class RtuiClearButtonComponent {
|
|
376
376
|
#private;
|
|
377
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
378
|
-
isButtonShown: InputSignalWithTransform<Nullable
|
|
379
|
-
tooltip: InputSignalWithTransform<Nullable
|
|
377
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
378
|
+
isButtonShown: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
379
|
+
tooltip: InputSignalWithTransform<Nullable<string>, string>;
|
|
380
380
|
tooltipPosition: InputSignal<TooltipPosition>;
|
|
381
381
|
readonly keydownAction: OutputEmitterRef<void>;
|
|
382
382
|
readonly clickAction: OutputEmitterRef<void>;
|
|
@@ -391,7 +391,7 @@ declare class RtuiPaginationComponent implements OnInit, AfterViewInit {
|
|
|
391
391
|
/** Current Page Model */
|
|
392
392
|
currentPageModel: InputSignal<PageModel>;
|
|
393
393
|
/** Indicates is mobile view */
|
|
394
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
394
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
395
395
|
/** Output action when Page Model changed */
|
|
396
396
|
readonly pageModelChange: OutputEmitterRef<Partial<PageModel>>;
|
|
397
397
|
/** Form control for selected page size */
|
|
@@ -402,13 +402,13 @@ declare class RtuiPaginationComponent implements OnInit, AfterViewInit {
|
|
|
402
402
|
/** Array of current page numbers */
|
|
403
403
|
readonly numbers: WritableSignal<Array<number | string>>;
|
|
404
404
|
/** Page Model for compare */
|
|
405
|
-
readonly previousPageModel: WritableSignal<Nullable
|
|
405
|
+
readonly previousPageModel: WritableSignal<Nullable<PageModel>>;
|
|
406
406
|
/** Value of full content width */
|
|
407
407
|
readonly minContentFitWidth: WritableSignal<number>;
|
|
408
408
|
/** Indicates is content clipped */
|
|
409
409
|
readonly isContentClipped: WritableSignal<boolean>;
|
|
410
410
|
/** Container template ref */
|
|
411
|
-
readonly containerRef: Signal<Nullable
|
|
411
|
+
readonly containerRef: Signal<Nullable<ElementRef<HTMLElement>>>;
|
|
412
412
|
/** Set 'isContentClipped' when widow resize */
|
|
413
413
|
onResize(): void;
|
|
414
414
|
ngOnInit(): void;
|
|
@@ -516,20 +516,20 @@ declare namespace ITable {
|
|
|
516
516
|
declare const RTUI_TABLE_COMPONENT_TOKEN: InjectionToken<IRtuiTable<Record<string, unknown>, string, string>>;
|
|
517
517
|
interface IRtuiTable<ENTITY_TYPE extends Record<string, unknown>, SORT_PROPERTY extends Extract<keyof ENTITY_TYPE, string>, KEY extends Extract<keyof ENTITY_TYPE, string>> {
|
|
518
518
|
columns: Signal<Array<ITable.Column<ENTITY_TYPE>>>;
|
|
519
|
-
customCellsTpl: Signal<Nullable
|
|
519
|
+
customCellsTpl: Signal<Nullable<{
|
|
520
520
|
getTemplateByPropName(propName: keyof ENTITY_TYPE): TemplateRef<{
|
|
521
521
|
$implicit: ENTITY_TYPE;
|
|
522
522
|
}>;
|
|
523
523
|
}>>;
|
|
524
|
-
rowActionsTpl: Signal<Nullable
|
|
524
|
+
rowActionsTpl: Signal<Nullable<TemplateRef<{
|
|
525
525
|
$implicit: ENTITY_TYPE;
|
|
526
526
|
}>>>;
|
|
527
|
-
additionalRowActionsTpl: Signal<Nullable
|
|
527
|
+
additionalRowActionsTpl: Signal<Nullable<TemplateRef<unknown>>>;
|
|
528
528
|
isMobile: Signal<boolean>;
|
|
529
529
|
isTableRowsClickable: Signal<boolean>;
|
|
530
530
|
keyExp: Signal<NonNullable<KEY>>;
|
|
531
531
|
entities: Signal<ENTITY_TYPE[]>;
|
|
532
|
-
currentSortModel: Signal<Nullable
|
|
532
|
+
currentSortModel: Signal<Nullable<SortModel<SORT_PROPERTY>>>;
|
|
533
533
|
appearance: Signal<MatFormFieldAppearance>;
|
|
534
534
|
filterAppearance: Signal<MatFormFieldAppearance>;
|
|
535
535
|
filterModel: Signal<FilterModel<KEY>[]>;
|
|
@@ -540,7 +540,7 @@ interface IRtuiTable<ENTITY_TYPE extends Record<string, unknown>, SORT_PROPERTY
|
|
|
540
540
|
isMultiSelect: WritableSignal<boolean>;
|
|
541
541
|
isSelectorsColumnShown: WritableSignal<boolean>;
|
|
542
542
|
isSelectorsColumnDisabled: WritableSignal<boolean>;
|
|
543
|
-
activeRowIndex: WritableSignal<Nullable
|
|
543
|
+
activeRowIndex: WritableSignal<Nullable<number>>;
|
|
544
544
|
onSortChange(sortModel: SortModel): void;
|
|
545
545
|
onFilterChange(filterModel: FilterModel<KEY>[]): void;
|
|
546
546
|
onMenuOpen(index: number): void;
|
|
@@ -673,9 +673,9 @@ declare class RtuiTableAdditionalRowActionsDirective {
|
|
|
673
673
|
}
|
|
674
674
|
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 {
|
|
675
675
|
#private;
|
|
676
|
-
protected readonly rowActions: Signal<Nullable
|
|
677
|
-
protected readonly rowActionsHeaderPaddingHelper: Signal<Nullable
|
|
678
|
-
protected readonly rowActionsPaddingHelper: Signal<Nullable
|
|
676
|
+
protected readonly rowActions: Signal<Nullable<ElementRef<HTMLElement>>>;
|
|
677
|
+
protected readonly rowActionsHeaderPaddingHelper: Signal<Nullable<ElementRef<HTMLElement>>>;
|
|
678
|
+
protected readonly rowActionsPaddingHelper: Signal<Nullable<ElementRef<HTMLElement>>>;
|
|
679
679
|
protected readonly columnTypes: typeof TABLE_COLUMN_TYPES_ENUM;
|
|
680
680
|
protected readonly filterOperators: typeof FILTER_OPERATOR_TYPE_ENUM;
|
|
681
681
|
/** Indicates is mobile view */
|
|
@@ -687,7 +687,7 @@ declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SO
|
|
|
687
687
|
/** List of entities */
|
|
688
688
|
entities: InputSignalWithTransform<ENTITY_TYPE[], ENTITY_TYPE[]>;
|
|
689
689
|
/** Current page model from store */
|
|
690
|
-
currentSortModel: InputSignal<Nullable
|
|
690
|
+
currentSortModel: InputSignal<Nullable<SortModel<SORT_PROPERTY>>>;
|
|
691
691
|
/** Current elements appearance */
|
|
692
692
|
appearance: InputSignal<MatFormFieldAppearance>;
|
|
693
693
|
/** Filter inputs appearance */
|
|
@@ -710,13 +710,13 @@ declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SO
|
|
|
710
710
|
/** Columns config for table */
|
|
711
711
|
columns: Signal<Array<ITable.Column<ENTITY_TYPE>>>;
|
|
712
712
|
/** Custom cells template */
|
|
713
|
-
readonly customCellsTpl: Signal<Nullable
|
|
713
|
+
readonly customCellsTpl: Signal<Nullable<RtuiCustomTableCellsDirective<ENTITY_TYPE>>>;
|
|
714
714
|
/** Row actions template */
|
|
715
|
-
readonly rowActionsTpl: Signal<Nullable
|
|
715
|
+
readonly rowActionsTpl: Signal<Nullable<TemplateRef<{
|
|
716
716
|
$implicit: ENTITY_TYPE;
|
|
717
717
|
}>>>;
|
|
718
718
|
/** Additional row actions template */
|
|
719
|
-
readonly additionalRowActionsTpl: Signal<Nullable
|
|
719
|
+
readonly additionalRowActionsTpl: Signal<Nullable<TemplateRef<RtuiTableAdditionalRowActionsDirective>>>;
|
|
720
720
|
/** Fields specified by the directive */
|
|
721
721
|
/** List of selected entities ids */
|
|
722
722
|
readonly selectedEntitiesIds: WritableSignal<ENTITY_TYPE[KEY][]>;
|
|
@@ -731,7 +731,7 @@ declare class RtuiTableComponent<ENTITY_TYPE extends Record<string, unknown>, SO
|
|
|
731
731
|
/** Indicates is selectors column disabled */
|
|
732
732
|
readonly isSelectorsColumnDisabled: WritableSignal<boolean>;
|
|
733
733
|
/** Current row index */
|
|
734
|
-
readonly activeRowIndex: WritableSignal<Nullable
|
|
734
|
+
readonly activeRowIndex: WritableSignal<Nullable<number>>;
|
|
735
735
|
ngAfterViewChecked(): void;
|
|
736
736
|
/** Sort change output action */
|
|
737
737
|
onSortChange(sortModel: SortModel<string>): void;
|
|
@@ -780,27 +780,27 @@ declare class RtuiTableContainerComponent<ENTITY_TYPE> implements OnInit {
|
|
|
780
780
|
/** Indicates is filters empty */
|
|
781
781
|
isFiltersEmpty: InputSignalWithTransform<boolean, BooleanInput>;
|
|
782
782
|
/** Current search term from store */
|
|
783
|
-
searchTerm: InputSignalWithTransform<Nullable
|
|
783
|
+
searchTerm: InputSignalWithTransform<Nullable<string>, Nullable<string>>;
|
|
784
784
|
/** Current placeholder icon */
|
|
785
785
|
placeholderIcon: InputSignal<string>;
|
|
786
786
|
/** Current placeholder title */
|
|
787
787
|
placeholderTitle: InputSignal<string>;
|
|
788
788
|
/** Indicates is a small tablet view */
|
|
789
|
-
readonly isSmallTablet: Signal<Nullable
|
|
789
|
+
readonly isSmallTablet: Signal<Nullable<boolean>>;
|
|
790
790
|
/** Config for table */
|
|
791
791
|
readonly tableConfig: Signal<ITable.Config.Data<ENTITY_TYPE>>;
|
|
792
792
|
/** Page model change output action */
|
|
793
793
|
readonly pageModelChange: OutputEmitterRef<Partial<PageModel>>;
|
|
794
794
|
/** Search change output action */
|
|
795
|
-
readonly searchChange: OutputEmitterRef<Nullable
|
|
795
|
+
readonly searchChange: OutputEmitterRef<Nullable<string>>;
|
|
796
796
|
/** Refresh output action */
|
|
797
797
|
readonly refreshAction: OutputEmitterRef<void>;
|
|
798
798
|
/** Clear filters output action */
|
|
799
799
|
readonly clearFiltersAction: OutputEmitterRef<void>;
|
|
800
800
|
/** Toolbar selectors template */
|
|
801
|
-
readonly toolbarSelectorsTpl: Signal<Nullable
|
|
801
|
+
readonly toolbarSelectorsTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
802
802
|
/** Toolbar actions template */
|
|
803
|
-
readonly toolbarActionsTpl: Signal<Nullable
|
|
803
|
+
readonly toolbarActionsTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
804
804
|
/** Fields specified by the directive */
|
|
805
805
|
/** Indicates is multiselect mod enabled */
|
|
806
806
|
readonly isMultiSelect: WritableSignal<boolean>;
|
|
@@ -815,7 +815,7 @@ declare class RtuiTableContainerComponent<ENTITY_TYPE> implements OnInit {
|
|
|
815
815
|
/** Current selected entities count */
|
|
816
816
|
readonly selectedEntitiesCount: WritableSignal<number>;
|
|
817
817
|
/** Control for search */
|
|
818
|
-
readonly searchControl: FormControl<Nullable
|
|
818
|
+
readonly searchControl: FormControl<Nullable<string>>;
|
|
819
819
|
ngOnInit(): void;
|
|
820
820
|
/** Page model change output action */
|
|
821
821
|
onPageModelChange(pageModel: Partial<PageModel>): void;
|
|
@@ -867,7 +867,7 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
867
867
|
/** Table config storage key */
|
|
868
868
|
tableConfigStorageKey: InputSignalWithTransform<string, unknown>;
|
|
869
869
|
/** Indicates is mobile view */
|
|
870
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
870
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, BooleanInput>;
|
|
871
871
|
/** Indicates is loading in progress */
|
|
872
872
|
loading: InputSignalWithTransform<boolean, BooleanInput>;
|
|
873
873
|
/** Indicates is fetching in progress */
|
|
@@ -889,9 +889,9 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
889
889
|
/** Current page model from store */
|
|
890
890
|
pageModel: InputSignal<PageModel>;
|
|
891
891
|
/** Current search term from store */
|
|
892
|
-
searchTerm: InputSignal<Nullable
|
|
892
|
+
searchTerm: InputSignal<Nullable<string>>;
|
|
893
893
|
/** Current sort model from store */
|
|
894
|
-
currentSortModel: InputSignal<Nullable
|
|
894
|
+
currentSortModel: InputSignal<Nullable<SortModel<NonNullable<KEY>>>>;
|
|
895
895
|
/** Inputs appearance */
|
|
896
896
|
appearance: InputSignal<MatFormFieldAppearance>;
|
|
897
897
|
/** Filter inputs appearance */
|
|
@@ -905,7 +905,7 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
905
905
|
/** Page model change output action */
|
|
906
906
|
readonly pageModelChange: OutputEmitterRef<Partial<PageModel>>;
|
|
907
907
|
/** Search change output action */
|
|
908
|
-
readonly searchChange: OutputEmitterRef<Nullable
|
|
908
|
+
readonly searchChange: OutputEmitterRef<Nullable<string>>;
|
|
909
909
|
/** Refresh output action */
|
|
910
910
|
readonly refresh: OutputEmitterRef<void>;
|
|
911
911
|
/** Clear filters output action */
|
|
@@ -920,27 +920,27 @@ declare class RtuiDynamicListComponent<ENTITY_TYPE extends Record<string, unknow
|
|
|
920
920
|
/** Filter change output action */
|
|
921
921
|
readonly filterChange: OutputEmitterRef<FilterModel<KEY>[]>;
|
|
922
922
|
/** Toolbar selectors template */
|
|
923
|
-
readonly toolbarSelectorsTpl: Signal<Nullable
|
|
923
|
+
readonly toolbarSelectorsTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
924
924
|
/** Toolbar actions template */
|
|
925
|
-
readonly toolbarActionsTpl: Signal<Nullable
|
|
925
|
+
readonly toolbarActionsTpl: Signal<Nullable<TemplateRef<Type<unknown>>>>;
|
|
926
926
|
/** Custom cells template */
|
|
927
|
-
readonly customCellsTpl: Signal<Nullable
|
|
927
|
+
readonly customCellsTpl: Signal<Nullable<RtuiDynamicListCustomTableCellsDirective<{
|
|
928
928
|
$implicit: ENTITY_TYPE;
|
|
929
929
|
}>>>;
|
|
930
930
|
/** Row actions template */
|
|
931
|
-
readonly rowActionsTpl: Signal<Nullable
|
|
931
|
+
readonly rowActionsTpl: Signal<Nullable<TemplateRef<{
|
|
932
932
|
$implicit: ENTITY_TYPE;
|
|
933
933
|
}>>>;
|
|
934
934
|
/** Additional row actions template */
|
|
935
|
-
readonly additionalRowActionsTpl: Signal<Nullable
|
|
935
|
+
readonly additionalRowActionsTpl: Signal<Nullable<TemplateRef<{
|
|
936
936
|
$implicit: ENTITY_TYPE;
|
|
937
937
|
}>>>;
|
|
938
938
|
/** Table container for selectors directive usage */
|
|
939
|
-
readonly tableContainerTpl: Signal<Nullable
|
|
939
|
+
readonly tableContainerTpl: Signal<Nullable<RtuiTableContainerComponent<ENTITY_TYPE>>>;
|
|
940
940
|
/** Table selector for selectors directive usage */
|
|
941
|
-
readonly tableTpl: Signal<Nullable
|
|
941
|
+
readonly tableTpl: Signal<Nullable<RtuiTableComponent<ENTITY_TYPE, SORT_PROPERTY, KEY>>>;
|
|
942
942
|
/** Search change output action */
|
|
943
|
-
onSearchChange(value: Nullable
|
|
943
|
+
onSearchChange(value: Nullable<string>): void;
|
|
944
944
|
/** Sort change output action */
|
|
945
945
|
onSortChange(sortModel: SortModel<NonNullable<KEY>>): void;
|
|
946
946
|
/** Page model change output action */
|
|
@@ -998,9 +998,9 @@ declare function provideRtUi(): Provider[];
|
|
|
998
998
|
|
|
999
999
|
declare namespace IRtSnackBar {
|
|
1000
1000
|
interface Config extends MatSnackBarConfig {
|
|
1001
|
-
icon?: Nullable
|
|
1001
|
+
icon?: Nullable<string>;
|
|
1002
1002
|
isColoredBackground?: boolean;
|
|
1003
|
-
action?: Nullable
|
|
1003
|
+
action?: Nullable<string>;
|
|
1004
1004
|
isProgressBarShown?: boolean;
|
|
1005
1005
|
}
|
|
1006
1006
|
interface Data extends Config {
|
|
@@ -1012,7 +1012,7 @@ declare class RtuiSnackBarComponent {
|
|
|
1012
1012
|
#private;
|
|
1013
1013
|
readonly data: IRtSnackBar.Data;
|
|
1014
1014
|
player: AnimationPlayer | undefined;
|
|
1015
|
-
readonly progressTplRef: Signal<Nullable
|
|
1015
|
+
readonly progressTplRef: Signal<Nullable<ElementRef<HTMLElement>>>;
|
|
1016
1016
|
constructor();
|
|
1017
1017
|
onMouseOver(): void;
|
|
1018
1018
|
onMouseOut(): void;
|
|
@@ -1055,7 +1055,7 @@ declare class RtuiInfoBadgeComponent implements AfterContentChecked {
|
|
|
1055
1055
|
glyph: InputSignal<string>;
|
|
1056
1056
|
iconSide: InputSignal<IconSideType>;
|
|
1057
1057
|
isFontBold: InputSignal<boolean>;
|
|
1058
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
1058
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
1059
1059
|
isTitleCollapsed: WritableSignal<boolean>;
|
|
1060
1060
|
readonly contentRef: Signal<ElementRef<HTMLElement> | undefined>;
|
|
1061
1061
|
get badgeClass(): {
|
|
@@ -1088,13 +1088,13 @@ type ToggleSizeType = TOGGLE_SIZE_TYPE_ENUM.SM | TOGGLE_SIZE_TYPE_ENUM.MD;
|
|
|
1088
1088
|
declare class RtuiToggleComponent implements OnInit, ControlValueAccessor {
|
|
1089
1089
|
#private;
|
|
1090
1090
|
formControl: FormControl<boolean>;
|
|
1091
|
-
label: InputSignal<Nullable
|
|
1091
|
+
label: InputSignal<Nullable<string>>;
|
|
1092
1092
|
tooltip: InputSignal<string>;
|
|
1093
1093
|
size: InputSignal<ToggleSizeType>;
|
|
1094
1094
|
tooltipPosition: InputSignal<TooltipPosition>;
|
|
1095
1095
|
isDisabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1096
1096
|
tooltipDisabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1097
|
-
readonly isMobile: Signal<Nullable
|
|
1097
|
+
readonly isMobile: Signal<Nullable<boolean>>;
|
|
1098
1098
|
ngOnInit(): void;
|
|
1099
1099
|
writeValue(value: boolean): void;
|
|
1100
1100
|
registerOnChange(fn: () => void): void;
|
|
@@ -1118,7 +1118,7 @@ declare class RtuiFileUploadComponent {
|
|
|
1118
1118
|
|
|
1119
1119
|
declare abstract class RtuiDynamicSelectorsDirective {
|
|
1120
1120
|
/** Indicates if mobile view */
|
|
1121
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
1121
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
1122
1122
|
/** Selections control button title */
|
|
1123
1123
|
buttonTitle: InputSignalWithTransform<string, string>;
|
|
1124
1124
|
/** Indicates if only one option can be chosen */
|
|
@@ -1145,20 +1145,25 @@ declare abstract class RtuiDynamicSelectorsDirective {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
interface FormModel$1 {
|
|
1148
|
-
autocompleteControl: FormControl<Nullable
|
|
1148
|
+
autocompleteControl: FormControl<Nullable<string>>;
|
|
1149
1149
|
}
|
|
1150
1150
|
/** Directive for row actions located outside a row menu button */
|
|
1151
1151
|
declare class RtuiDynamicSelectorAdditionalControlDirective {
|
|
1152
1152
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorAdditionalControlDirective, never>;
|
|
1153
1153
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiDynamicSelectorAdditionalControlDirective, "[rtuiDynamicSelectorAdditionalControlDirective]", never, {}, {}, never, never, true, never>;
|
|
1154
1154
|
}
|
|
1155
|
+
/** Directive for custom item title template, projected from rtui-dynamic-selector down to selected-list */
|
|
1156
|
+
declare class RtuiDynamicSelectorItemTitleProjectionDirective {
|
|
1157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorItemTitleProjectionDirective, never>;
|
|
1158
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiDynamicSelectorItemTitleProjectionDirective, "[rtuiDynamicSelectorItemTitleProjectionDirective]", never, {}, {}, never, never, true, never>;
|
|
1159
|
+
}
|
|
1155
1160
|
declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown>, KEY extends Extract<keyof ENTITY, string>> extends RtuiDynamicSelectorsDirective implements ControlValueAccessor, Validator, OnInit {
|
|
1156
1161
|
#private;
|
|
1157
1162
|
/** Config for overlay selector */
|
|
1158
1163
|
protected readonly connectedOverlayPositions: ConnectedPosition[];
|
|
1159
1164
|
form: FormGroup<FormModel$1>;
|
|
1160
1165
|
/** Target element for overlay selector */
|
|
1161
|
-
selectedOverlayTrigger: Nullable
|
|
1166
|
+
selectedOverlayTrigger: Nullable<CdkOverlayOrigin>;
|
|
1162
1167
|
/** A model's field which should be used for http-requests */
|
|
1163
1168
|
keyExp: InputSignal<KEY>;
|
|
1164
1169
|
/** A model's field which should be shown in ui */
|
|
@@ -1198,7 +1203,7 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1198
1203
|
/** Indicates that an additional control has been changed */
|
|
1199
1204
|
additionalControlChanged: InputSignal<boolean>;
|
|
1200
1205
|
/** Custom sort function for entities list in popup */
|
|
1201
|
-
sortFn: InputSignal<Nullable
|
|
1206
|
+
sortFn: InputSignal<Nullable<(a: ENTITY, b: ENTITY) => number>>;
|
|
1202
1207
|
/** Output search action */
|
|
1203
1208
|
readonly searchAction: OutputEmitterRef<string>;
|
|
1204
1209
|
/** Output scroll action, needed for lazy loading */
|
|
@@ -1222,7 +1227,11 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1222
1227
|
/** Entities can be chosen, except selected on init */
|
|
1223
1228
|
readonly entitiesToSelect: Signal<ENTITY[]>;
|
|
1224
1229
|
/** Additional control for entity */
|
|
1225
|
-
readonly additionalControlTpl: Signal<Nullable
|
|
1230
|
+
readonly additionalControlTpl: Signal<Nullable<TemplateRef<{
|
|
1231
|
+
$implicit: ENTITY;
|
|
1232
|
+
}>>>;
|
|
1233
|
+
/** Custom item title template */
|
|
1234
|
+
readonly itemTitleTpl: Signal<Nullable<TemplateRef<{
|
|
1226
1235
|
$implicit: ENTITY;
|
|
1227
1236
|
}>>>;
|
|
1228
1237
|
ngOnInit(): void;
|
|
@@ -1252,12 +1261,12 @@ declare class RtuiDynamicSelectorComponent<ENTITY extends Record<string, unknown
|
|
|
1252
1261
|
/** Proceed move items in list */
|
|
1253
1262
|
onDrop(event: CdkDragDrop<ENTITY[]>): void;
|
|
1254
1263
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorComponent<any, any>, never>;
|
|
1255
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiDynamicSelectorComponent<any, any>, "rtui-dynamic-selector", never, { "keyExp": { "alias": "keyExp"; "required": true; "isSignal": true; }; "displayExp": { "alias": "displayExp"; "required": true; "isSignal": true; }; "entities": { "alias": "entities"; "required": true; "isSignal": true; }; "navigateButtonTitle": { "alias": "navigateButtonTitle"; "required": false; "isSignal": true; }; "navigateLink": { "alias": "navigateLink"; "required": false; "isSignal": true; }; "readonlyEntitiesKeys": { "alias": "readonlyEntitiesKeys"; "required": false; "isSignal": true; }; "chosenEntities": { "alias": "chosenEntities"; "required": false; "isSignal": true; }; "isSelectionAvailable": { "alias": "isSelectionAvailable"; "required": false; "isSignal": true; }; "isPlaceholderShown": { "alias": "isPlaceholderShown"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "fetching": { "alias": "fetching"; "required": false; "isSignal": true; }; "isLazyLoad": { "alias": "isLazyLoad"; "required": false; "isSignal": true; }; "isLocalSearch": { "alias": "isLocalSearch"; "required": false; "isSignal": true; }; "isMultiToggleShown": { "alias": "isMultiToggleShown"; "required": false; "isSignal": true; }; "isSelectAllButtonShown": { "alias": "isSelectAllButtonShown"; "required": false; "isSignal": true; }; "isOpenPopupButtonShown": { "alias": "isOpenPopupButtonShown"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "additionalControlChanged": { "alias": "additionalControlChanged"; "required": false; "isSignal": true; }; "sortFn": { "alias": "sortFn"; "required": false; "isSignal": true; }; }, { "chosenEntities": "chosenEntitiesChange"; "searchAction": "searchAction"; "scrollAction": "scrollAction"; "temporarySelectAction": "temporarySelectAction"; "resetAction": "resetAction"; "selectionChangeAction": "selectionChangeAction"; }, ["additionalControlTpl"], never, true, never>;
|
|
1264
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiDynamicSelectorComponent<any, any>, "rtui-dynamic-selector", never, { "keyExp": { "alias": "keyExp"; "required": true; "isSignal": true; }; "displayExp": { "alias": "displayExp"; "required": true; "isSignal": true; }; "entities": { "alias": "entities"; "required": true; "isSignal": true; }; "navigateButtonTitle": { "alias": "navigateButtonTitle"; "required": false; "isSignal": true; }; "navigateLink": { "alias": "navigateLink"; "required": false; "isSignal": true; }; "readonlyEntitiesKeys": { "alias": "readonlyEntitiesKeys"; "required": false; "isSignal": true; }; "chosenEntities": { "alias": "chosenEntities"; "required": false; "isSignal": true; }; "isSelectionAvailable": { "alias": "isSelectionAvailable"; "required": false; "isSignal": true; }; "isPlaceholderShown": { "alias": "isPlaceholderShown"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "fetching": { "alias": "fetching"; "required": false; "isSignal": true; }; "isLazyLoad": { "alias": "isLazyLoad"; "required": false; "isSignal": true; }; "isLocalSearch": { "alias": "isLocalSearch"; "required": false; "isSignal": true; }; "isMultiToggleShown": { "alias": "isMultiToggleShown"; "required": false; "isSignal": true; }; "isSelectAllButtonShown": { "alias": "isSelectAllButtonShown"; "required": false; "isSignal": true; }; "isOpenPopupButtonShown": { "alias": "isOpenPopupButtonShown"; "required": false; "isSignal": true; }; "searchTerm": { "alias": "searchTerm"; "required": false; "isSignal": true; }; "additionalControlChanged": { "alias": "additionalControlChanged"; "required": false; "isSignal": true; }; "sortFn": { "alias": "sortFn"; "required": false; "isSignal": true; }; }, { "chosenEntities": "chosenEntitiesChange"; "searchAction": "searchAction"; "scrollAction": "scrollAction"; "temporarySelectAction": "temporarySelectAction"; "resetAction": "resetAction"; "selectionChangeAction": "selectionChangeAction"; }, ["additionalControlTpl", "itemTitleTpl"], never, true, never>;
|
|
1256
1265
|
}
|
|
1257
1266
|
|
|
1258
1267
|
interface FormModel {
|
|
1259
1268
|
control: FormControl<string[]>;
|
|
1260
|
-
controlForUi: FormControl<Nullable
|
|
1269
|
+
controlForUi: FormControl<Nullable<string>>;
|
|
1261
1270
|
}
|
|
1262
1271
|
/** Directive for row actions located outside a row menu button */
|
|
1263
1272
|
declare class RtuiDynamicInputAdditionalControlDirective {
|
|
@@ -1268,7 +1277,7 @@ declare class RtuiDynamicInputComponent extends RtuiDynamicSelectorsDirective im
|
|
|
1268
1277
|
#private;
|
|
1269
1278
|
form: FormGroup<FormModel>;
|
|
1270
1279
|
/** Indicates is placeholder shown */
|
|
1271
|
-
isPlaceholderShown: ModelSignal<Nullable
|
|
1280
|
+
isPlaceholderShown: ModelSignal<Nullable<boolean>>;
|
|
1272
1281
|
/** Indicates is inputs-editable */
|
|
1273
1282
|
isInputsEditable: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1274
1283
|
/** Input label */
|
|
@@ -1286,7 +1295,7 @@ declare class RtuiDynamicInputComponent extends RtuiDynamicSelectorsDirective im
|
|
|
1286
1295
|
/** Indicates the reset changes button is disabled */
|
|
1287
1296
|
readonly isResetButtonDisabled: WritableSignal<boolean>;
|
|
1288
1297
|
/** Additional control for entity */
|
|
1289
|
-
readonly additionalControlTpl: Signal<Nullable
|
|
1298
|
+
readonly additionalControlTpl: Signal<Nullable<TemplateRef<{
|
|
1290
1299
|
$implicit: string;
|
|
1291
1300
|
}>>>;
|
|
1292
1301
|
ngOnInit(): void;
|
|
@@ -1326,7 +1335,7 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1326
1335
|
#private;
|
|
1327
1336
|
protected readonly oSTypes: typeof OSTypes;
|
|
1328
1337
|
/** Indicates is mobile view */
|
|
1329
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
1338
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, Nullable<boolean>>;
|
|
1330
1339
|
entitiesToSelect: InputSignalWithTransform<ENTITY[], ENTITY[]>;
|
|
1331
1340
|
/** Material elements appearance */
|
|
1332
1341
|
appearance: InputSignal<MatFormFieldAppearance>;
|
|
@@ -1353,9 +1362,9 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1353
1362
|
/** Indicates is BreakStringPipe used */
|
|
1354
1363
|
useNameBreaking: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1355
1364
|
/** Indicates lazy loading is used */
|
|
1356
|
-
isLazyLoad: InputSignalWithTransform<Nullable
|
|
1365
|
+
isLazyLoad: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
1357
1366
|
/** Indicates local search is used */
|
|
1358
|
-
isLocalSearch: InputSignalWithTransform<Nullable
|
|
1367
|
+
isLocalSearch: InputSignalWithTransform<Nullable<boolean>, boolean>;
|
|
1359
1368
|
/** Send output selected entities ids */
|
|
1360
1369
|
readonly submitAction: OutputEmitterRef<ENTITY[KEY][]>;
|
|
1361
1370
|
/** Close popup action */
|
|
@@ -1367,9 +1376,9 @@ declare class RtuiMultiSelectorPopupComponent<ENTITY extends Record<string, unkn
|
|
|
1367
1376
|
/** Output temporary selection action, needed for store values */
|
|
1368
1377
|
readonly temporarySelectAction: OutputEmitterRef<ENTITY[]>;
|
|
1369
1378
|
/** Search input Ref for set focus on init */
|
|
1370
|
-
readonly searchInputRef: Signal<Nullable
|
|
1379
|
+
readonly searchInputRef: Signal<Nullable<ElementRef<HTMLInputElement>>>;
|
|
1371
1380
|
/** Form control for search */
|
|
1372
|
-
readonly searchControl: FormControl<Nullable
|
|
1381
|
+
readonly searchControl: FormControl<Nullable<string>>;
|
|
1373
1382
|
/** Form control for select */
|
|
1374
1383
|
readonly selectionControl: FormControl<ENTITY[KEY][]>;
|
|
1375
1384
|
/** Entities filtered by local search */
|
|
@@ -1421,7 +1430,7 @@ declare class RtuiDynamicSelectorPlaceholderComponent {
|
|
|
1421
1430
|
}
|
|
1422
1431
|
|
|
1423
1432
|
declare class RtuiDynamicSelectorListActionsComponent {
|
|
1424
|
-
isMobile: InputSignalWithTransform<Nullable
|
|
1433
|
+
isMobile: InputSignalWithTransform<Nullable<boolean>, Nullable<boolean>>;
|
|
1425
1434
|
isResetButtonDisabled: InputSignalWithTransform<boolean, boolean>;
|
|
1426
1435
|
isClearButtonDisabled: InputSignalWithTransform<boolean, boolean>;
|
|
1427
1436
|
disabled: InputSignalWithTransform<boolean, boolean>;
|
|
@@ -1438,9 +1447,14 @@ declare class RtuiDynamicSelectorItemAdditionalControlDirective {
|
|
|
1438
1447
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorItemAdditionalControlDirective, never>;
|
|
1439
1448
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiDynamicSelectorItemAdditionalControlDirective, "[rtuiDynamicSelectorItemAdditionalControlDirective]", never, {}, {}, never, never, true, never>;
|
|
1440
1449
|
}
|
|
1450
|
+
/** Directive for custom item title template */
|
|
1451
|
+
declare class RtuiDynamicSelectorItemTitleDirective {
|
|
1452
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorItemTitleDirective, never>;
|
|
1453
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RtuiDynamicSelectorItemTitleDirective, "[rtuiDynamicSelectorItemTitleDirective]", never, {}, {}, never, never, true, never>;
|
|
1454
|
+
}
|
|
1441
1455
|
declare class RtuiDynamicSelectorSelectedListComponent<ENTITY extends Record<string, unknown>, KEY extends Extract<keyof ENTITY, string>> {
|
|
1442
|
-
protected readonly editedItemIndex: WritableSignal<Nullable
|
|
1443
|
-
readonly inputRef: Signal<Nullable
|
|
1456
|
+
protected readonly editedItemIndex: WritableSignal<Nullable<number>>;
|
|
1457
|
+
readonly inputRef: Signal<Nullable<MatInput>>;
|
|
1444
1458
|
/** Indicates if mobile view */
|
|
1445
1459
|
isMobile: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1446
1460
|
/** A model's field, which should be used for http-requests */
|
|
@@ -1470,22 +1484,26 @@ declare class RtuiDynamicSelectorSelectedListComponent<ENTITY extends Record<str
|
|
|
1470
1484
|
new: string;
|
|
1471
1485
|
}>;
|
|
1472
1486
|
/** Additional control for entity */
|
|
1473
|
-
readonly additionalControlTpl: Signal<Nullable
|
|
1487
|
+
readonly additionalControlTpl: Signal<Nullable<TemplateRef<{
|
|
1488
|
+
$implicit: ENTITY;
|
|
1489
|
+
}>>>;
|
|
1490
|
+
/** Custom item title template */
|
|
1491
|
+
readonly itemTitleTpl: Signal<Nullable<TemplateRef<{
|
|
1474
1492
|
$implicit: ENTITY;
|
|
1475
1493
|
}>>>;
|
|
1476
1494
|
protected onDelete(value: ENTITY[KEY]): void;
|
|
1477
1495
|
protected onDrop(event: CdkDragDrop<ENTITY[]>): void;
|
|
1478
1496
|
protected changeValue(prev: ENTITY[KEY]): void;
|
|
1479
|
-
protected setEditModState(index: Nullable
|
|
1497
|
+
protected setEditModState(index: Nullable<number>): void;
|
|
1480
1498
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiDynamicSelectorSelectedListComponent<any, any>, never>;
|
|
1481
|
-
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"], never, true, never>;
|
|
1499
|
+
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>;
|
|
1482
1500
|
}
|
|
1483
1501
|
|
|
1484
1502
|
type IImageUploadFormat = 'png' | 'jpeg' | 'webp';
|
|
1485
1503
|
declare class RtuiImageUploadComponent {
|
|
1486
1504
|
#private;
|
|
1487
1505
|
protected readonly imageFormat: Signal<IImageUploadFormat>;
|
|
1488
|
-
imageUrl: ModelSignal<Nullable
|
|
1506
|
+
imageUrl: ModelSignal<Nullable<string>>;
|
|
1489
1507
|
isMobile: InputSignalWithTransform<boolean, boolean>;
|
|
1490
1508
|
fileName: InputSignalWithTransform<string, string>;
|
|
1491
1509
|
isActive: InputSignalWithTransform<boolean, BooleanInput>;
|
|
@@ -1498,8 +1516,8 @@ declare class RtuiImageUploadComponent {
|
|
|
1498
1516
|
tooltipPosition: InputSignal<TooltipPosition>;
|
|
1499
1517
|
imageQuality: InputSignal<number>;
|
|
1500
1518
|
originalImage: WritableSignal<File | undefined>;
|
|
1501
|
-
croppedImage: WritableSignal<Nullable
|
|
1502
|
-
tempImage: WritableSignal<Nullable
|
|
1519
|
+
croppedImage: WritableSignal<Nullable<File>>;
|
|
1520
|
+
tempImage: WritableSignal<Nullable<string>>;
|
|
1503
1521
|
readonly imageChanged: OutputEmitterRef<File>;
|
|
1504
1522
|
readonly save: OutputEmitterRef<void>;
|
|
1505
1523
|
onFileSelect(event: Event): void;
|
|
@@ -1518,7 +1536,7 @@ declare class RtPopoverDirective implements OnInit, OnDestroy {
|
|
|
1518
1536
|
xOffset: InputSignalWithTransform<number, NumberInput>;
|
|
1519
1537
|
yOffset: InputSignalWithTransform<number, NumberInput>;
|
|
1520
1538
|
trigger: InputSignalWithTransform<MenuItemTrigger, MenuItemTrigger>;
|
|
1521
|
-
template: InputSignalWithTransform<Nullable
|
|
1539
|
+
template: InputSignalWithTransform<Nullable<TemplateRef<HTMLElement>>, Nullable<TemplateRef<HTMLElement>>>;
|
|
1522
1540
|
isMouseHoverAllowed: InputSignalWithTransform<boolean, BooleanInput>;
|
|
1523
1541
|
onClick(element: EventTarget | null): void;
|
|
1524
1542
|
onMouseEnter(): void;
|
|
@@ -1572,5 +1590,5 @@ declare class RtActionBarService {
|
|
|
1572
1590
|
static ɵprov: i0.ɵɵInjectableDeclaration<RtActionBarService>;
|
|
1573
1591
|
}
|
|
1574
1592
|
|
|
1575
|
-
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, IAside, IModal, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IRtActionBar, IRtSnackBar, ISideMenu, ITable, MODAL_WINDOW_SIZE_ENUM, RTUI_TABLE_COMPONENT_TOKEN, RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE, RtActionBarService, RtAsideService, RtDynamicListSelectorsDirective, RtModalService, RtPopoverDirective, RtSnackBarService, RtTableConfigService, RtTableSelectorsDirective, RtuiActionBarComponent, RtuiActionBarContainerComponent, RtuiAsideContainerComponent, RtuiAsideContainerHeaderDirective, RtuiButtonComponent, RtuiClearButtonComponent, RtuiCustomTableCellsDirective, RtuiDynamicInputAdditionalControlDirective, RtuiDynamicInputComponent, RtuiDynamicListComponent, RtuiDynamicListCustomTableCellsDirective, RtuiDynamicListRowActionsDirective, RtuiDynamicListRowAdditionalActionsDirective, RtuiDynamicListToolbarActionsDirective, RtuiDynamicListToolbarSelectorsDirective, RtuiDynamicSelectorAdditionalControlDirective, RtuiDynamicSelectorComponent, RtuiDynamicSelectorItemAdditionalControlDirective, RtuiDynamicSelectorListActionsComponent, RtuiDynamicSelectorPlaceholderComponent, RtuiDynamicSelectorSelectedListComponent, RtuiFileUploadComponent, RtuiHeaderCenterDirective, RtuiHeaderComponent, RtuiHeaderLeftDirective, RtuiHeaderRightDirective, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiRoundIconButtonComponent, 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 };
|
|
1593
|
+
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, IAside, IModal, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IRtActionBar, IRtSnackBar, ISideMenu, ITable, MODAL_WINDOW_SIZE_ENUM, RTUI_TABLE_COMPONENT_TOKEN, RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE, RtActionBarService, RtAsideService, RtDynamicListSelectorsDirective, RtModalService, RtPopoverDirective, RtSnackBarService, RtTableConfigService, RtTableSelectorsDirective, 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, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiRoundIconButtonComponent, 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 };
|
|
1576
1594
|
export type { AsideButtonsType, AsidePositions, ButtonAppearanceType, ButtonColorType, ButtonSizeType, IImageUploadFormat, IInfoBadgeSizeType, IRtuiTable, Icon, IconSideType, InfoBadgeType, MenuItemTrigger, ModalWindowSizeType, NameValueType, Select, ToggleSizeType };
|
|
Binary file
|