@rxap/ngx-material-table-select 21.0.1 → 22.0.0-dev.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/CHANGELOG.md +14 -0
- package/compodoc/changelog.html +13 -0
- package/compodoc/classes/MockWindowRef.html +10 -8
- package/compodoc/components/WindowTestWrapperComponent.html +13 -7
- package/compodoc/dependencies.html +15 -15
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +374 -384
- package/docs/html/classes/ExtractTableSelectColumnMapMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectDataSourceMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectToDisplayMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectToValueMixin.html +2 -2
- package/docs/html/classes/MockWindowRef.html +5 -5
- package/docs/html/classes/OpenTableSelectWindowDirective.html +3 -3
- package/docs/html/classes/OpenTableSelectWindowMethod.html +2 -2
- package/docs/html/classes/TableSelectControlDirective.html +2 -2
- package/docs/html/classes/TableSelectInputComponent.html +20 -20
- package/docs/html/classes/TableSelectWindowComponent.html +2 -2
- package/docs/html/classes/WindowTestWrapperComponent.html +3 -3
- package/docs/html/functions/CreateFilterFormProvider.html +1 -1
- package/docs/html/functions/UseTableSelectColumns.html +1 -1
- package/docs/html/functions/UseTableSelectDataSource.html +1 -1
- package/docs/html/functions/UseTableSelectMethod.html +1 -1
- package/docs/html/functions/UseTableSelectToDisplay.html +1 -1
- package/docs/html/functions/UseTableSelectToValue.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/BooleanColumn.html +2 -2
- package/docs/html/interfaces/DateColumn.html +2 -2
- package/docs/html/interfaces/OpenTableSelectWindowMethodParameters.html +4 -4
- package/docs/html/interfaces/SelectColumn.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/TableSelectColumn.html +1 -1
- package/docs/html/types/TableSelectColumnMap.html +1 -1
- package/docs/html/types/TableSelectToDisplayFunction.html +1 -1
- package/docs/html/types/TableSelectToValueFunction.html +1 -1
- package/docs/html/variables/TABLE_SELECT_COLUMN_MAP.html +1 -1
- package/docs/html/variables/TABLE_SELECT_DATA_SOURCE.html +1 -1
- package/docs/html/variables/TABLE_SELECT_METHOD.html +1 -1
- package/docs/html/variables/TABLE_SELECT_TO_DISPLAY.html +1 -1
- package/docs/html/variables/TABLE_SELECT_TO_VALUE.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ExtractTableSelectColumnMapMixin.md +8 -8
- package/docs/markdown/classes/ExtractTableSelectDataSourceMixin.md +13 -13
- package/docs/markdown/classes/ExtractTableSelectToDisplayMixin.md +8 -8
- package/docs/markdown/classes/ExtractTableSelectToValueMixin.md +8 -8
- package/docs/markdown/classes/MockWindowRef.md +7 -7
- package/docs/markdown/classes/OpenTableSelectWindowDirective.md +44 -44
- package/docs/markdown/classes/OpenTableSelectWindowMethod.md +3 -3
- package/docs/markdown/classes/TableSelectControlDirective.md +36 -36
- package/docs/markdown/classes/TableSelectInputComponent.md +39 -44
- package/docs/markdown/classes/TableSelectWindowComponent.md +12 -12
- package/docs/markdown/classes/WindowTestWrapperComponent.md +9 -9
- package/docs/markdown/functions/CreateFilterFormProvider.md +2 -2
- package/docs/markdown/functions/UseTableSelectColumns.md +2 -2
- package/docs/markdown/functions/UseTableSelectDataSource.md +2 -2
- package/docs/markdown/functions/UseTableSelectMethod.md +2 -2
- package/docs/markdown/functions/UseTableSelectToDisplay.md +2 -2
- package/docs/markdown/functions/UseTableSelectToValue.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/BooleanColumn.md +5 -5
- package/docs/markdown/interfaces/DateColumn.md +6 -6
- package/docs/markdown/interfaces/OpenTableSelectWindowMethodParameters.md +14 -14
- package/docs/markdown/interfaces/SelectColumn.md +5 -5
- package/docs/markdown/type-aliases/TableSelectColumn.md +2 -2
- package/docs/markdown/type-aliases/TableSelectColumnMap.md +2 -2
- package/docs/markdown/type-aliases/TableSelectToDisplayFunction.md +2 -2
- package/docs/markdown/type-aliases/TableSelectToValueFunction.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_COLUMN_MAP.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_DATA_SOURCE.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_METHOD.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_TO_DISPLAY.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_TO_VALUE.md +2 -2
- package/docs/wiki/Class.ExtractTableSelectColumnMapMixin.md +7 -7
- package/docs/wiki/Class.ExtractTableSelectDataSourceMixin.md +12 -12
- package/docs/wiki/Class.ExtractTableSelectToDisplayMixin.md +7 -7
- package/docs/wiki/Class.ExtractTableSelectToValueMixin.md +7 -7
- package/docs/wiki/Class.MockWindowRef.md +6 -6
- package/docs/wiki/Class.OpenTableSelectWindowDirective.md +43 -43
- package/docs/wiki/Class.OpenTableSelectWindowMethod.md +2 -2
- package/docs/wiki/Class.TableSelectControlDirective.md +35 -35
- package/docs/wiki/Class.TableSelectInputComponent.md +38 -43
- package/docs/wiki/Class.TableSelectWindowComponent.md +11 -11
- package/docs/wiki/Class.WindowTestWrapperComponent.md +8 -8
- package/docs/wiki/Function.CreateFilterFormProvider.md +1 -1
- package/docs/wiki/Function.UseTableSelectColumns.md +1 -1
- package/docs/wiki/Function.UseTableSelectDataSource.md +1 -1
- package/docs/wiki/Function.UseTableSelectMethod.md +1 -1
- package/docs/wiki/Function.UseTableSelectToDisplay.md +1 -1
- package/docs/wiki/Function.UseTableSelectToValue.md +1 -1
- package/docs/wiki/Interface.BooleanColumn.md +4 -4
- package/docs/wiki/Interface.DateColumn.md +5 -5
- package/docs/wiki/Interface.OpenTableSelectWindowMethodParameters.md +13 -13
- package/docs/wiki/Interface.SelectColumn.md +4 -4
- package/docs/wiki/TypeAlias.TableSelectColumn.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectColumnMap.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectToDisplayFunction.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectToValueFunction.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_COLUMN_MAP.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_DATA_SOURCE.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_METHOD.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_TO_DISPLAY.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_TO_VALUE.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-material-table-select.mjs +1520 -769
- package/fesm2022/rxap-ngx-material-table-select.mjs.map +1 -1
- package/package.json +42 -42
- package/types/rxap-ngx-material-table-select.d.ts +334 -252
|
@@ -1,266 +1,348 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import { Observable, ReplaySubject, Subject } from "rxjs";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import { AfterViewInit, ElementRef, InjectionToken, Injector, OnDestroy, StaticProvider, ViewContainerRef } from "@angular/core";
|
|
7
|
+
import "@rxap/rxjs";
|
|
8
|
+
import { BaseDataSource, DataSourceLoader } from "@rxap/data-source";
|
|
9
|
+
import { AbstractTableDataSource } from "@rxap/data-source/table";
|
|
10
|
+
import { Method } from "@rxap/pattern";
|
|
11
|
+
import { WindowConfig, WindowService } from "@rxap/window-system";
|
|
12
|
+
import { ComponentType } from "@angular/cdk/overlay";
|
|
13
|
+
import { CdkPortalOutlet, Portal } from "@angular/cdk/portal";
|
|
14
|
+
import { AbstractControl, NgControl } from "@angular/forms";
|
|
15
|
+
import { MatFormField, MatFormFieldControl } from "@angular/material/form-field";
|
|
16
|
+
import { ControlValueAccessor, RxapFormControl } from "@rxap/forms";
|
|
17
|
+
import { ExtractControlMixin, ExtractFormDefinitionMixin, UseDataSourceSettings } from "@rxap/form-system";
|
|
18
|
+
import { Constructor } from "@rxap/utilities";
|
|
19
|
+
import { ExtractDatasourceMixin, WindowTableSelectOptions } from "@rxap/material-table-window-system";
|
|
20
|
+
import { MatButton } from "@angular/material/button";
|
|
21
|
+
export interface SelectColumn {
|
|
22
|
+
label: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
filter?: boolean;
|
|
25
|
+
[key: string]: any;
|
|
25
26
|
}
|
|
26
|
-
interface BooleanColumn extends SelectColumn {
|
|
27
|
-
|
|
27
|
+
export interface BooleanColumn extends SelectColumn {
|
|
28
|
+
type: 'boolean';
|
|
28
29
|
}
|
|
29
|
-
interface DateColumn extends SelectColumn {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
export interface DateColumn extends SelectColumn {
|
|
31
|
+
type: 'date';
|
|
32
|
+
format?: string;
|
|
32
33
|
}
|
|
33
|
-
type TableSelectColumn = BooleanColumn | DateColumn | SelectColumn;
|
|
34
|
-
type TableSelectColumnMap = ReadonlyMap<string, TableSelectColumn>;
|
|
35
|
-
interface OpenTableSelectWindowMethodParameters<Data extends Record<string, any> = Record<string, any>> {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
export type TableSelectColumn = BooleanColumn | DateColumn | SelectColumn;
|
|
35
|
+
export type TableSelectColumnMap = ReadonlyMap<string, TableSelectColumn>;
|
|
36
|
+
export interface OpenTableSelectWindowMethodParameters<Data extends Record<string, any> = Record<string, any>> {
|
|
37
|
+
multiple?: boolean;
|
|
38
|
+
columns: TableSelectColumnMap;
|
|
39
|
+
data: AbstractTableDataSource<Data> | BaseDataSource<Data[]> | Data[];
|
|
40
|
+
windowConfig?: Omit<Omit<Omit<WindowConfig, 'component'>, 'injector'>, 'viewContainerRef'>;
|
|
41
|
+
viewContainerRef?: ViewContainerRef;
|
|
42
|
+
/**
|
|
43
|
+
* (optional) The parameters Observable passed to the tableDirective and then joined with the parameters used in the
|
|
44
|
+
* TableDataSource http request
|
|
45
|
+
*
|
|
46
|
+
* Use to add additional parameters to the http request
|
|
47
|
+
*/
|
|
48
|
+
parameters?: Observable<Record<string, any>>;
|
|
49
|
+
injector?: Injector;
|
|
50
|
+
selected?: Data[];
|
|
51
|
+
/**
|
|
52
|
+
* true - the table header row is visible
|
|
53
|
+
*/
|
|
54
|
+
showHeader?: boolean;
|
|
55
|
+
title: string;
|
|
56
|
+
id: string;
|
|
57
|
+
compareWith?: (o1: Data, o2: Data) => boolean;
|
|
57
58
|
}
|
|
58
|
-
declare class OpenTableSelectWindowMethod<Data extends Record<string, any> = Record<string, any>> implements Method<Data[], OpenTableSelectWindowMethodParameters<Data>> {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
export declare class OpenTableSelectWindowMethod<Data extends Record<string, any> = Record<string, any>> implements Method<Data[], OpenTableSelectWindowMethodParameters<Data>> {
|
|
60
|
+
private readonly windowService;
|
|
61
|
+
private readonly injector;
|
|
62
|
+
call(parameters: OpenTableSelectWindowMethodParameters<Data>): Promise<Data[]>;
|
|
63
|
+
private createFilterForm;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenTableSelectWindowMethod<any>, never>;
|
|
65
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableSelectWindowComponent<any>, "rxap-table-select-window", never, {}, {}, never, never, true, never>;
|
|
67
|
+
export declare class TableSelectWindowComponent<Data = unknown> {
|
|
68
|
+
readonly data: OpenTableSelectWindowMethodParameters<Record<string, any>>;
|
|
69
|
+
private readonly selectRows;
|
|
70
|
+
private readonly windowRef;
|
|
71
|
+
readonly displayColumns: string[];
|
|
72
|
+
readonly filterDisplayColumns: string[];
|
|
73
|
+
readonly hasSomeFilterColumn: boolean;
|
|
74
|
+
readonly id: string;
|
|
75
|
+
hasNotSelected$: Observable<boolean>;
|
|
76
|
+
constructor();
|
|
77
|
+
selectRow(element: Data): void;
|
|
78
|
+
close(): void;
|
|
79
|
+
select(): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSelectWindowComponent<any>, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSelectWindowComponent<any>, "rxap-table-select-window", never, {}, {}, never, never, true, never>;
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
setFooterPortal(portal: Portal<any>): void;
|
|
83
|
+
export declare class MockWindowRef<O = any, R = any> extends Subject<R> {
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated removed. use the subscribe method and wait for the resolve event
|
|
86
|
+
*/
|
|
87
|
+
readonly closed$: Subject<R | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
footerPortal$: ReplaySubject<Portal<any>>;
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated removed. use the complete method
|
|
94
|
+
* @param result
|
|
95
|
+
*/
|
|
96
|
+
close(result?: R): void;
|
|
97
|
+
complete(): void;
|
|
98
|
+
/**
|
|
99
|
+
* @param portal
|
|
100
|
+
*/
|
|
101
|
+
setFooterPortal(portal: Portal<any>): void;
|
|
103
102
|
}
|
|
104
|
-
declare class WindowTestWrapperComponent implements AfterViewInit {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
103
|
+
export declare class WindowTestWrapperComponent implements AfterViewInit {
|
|
104
|
+
readonly component: import("@angular/core").InputSignal<ComponentType<unknown>>;
|
|
105
|
+
content: Portal<unknown> | null;
|
|
106
|
+
footer: Portal<unknown> | null;
|
|
107
|
+
injector: Injector;
|
|
108
|
+
viewContainerRef: ViewContainerRef;
|
|
109
|
+
readonly portalOutlet: import("@angular/core").Signal<readonly CdkPortalOutlet[]>;
|
|
110
|
+
ngAfterViewInit(): void;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WindowTestWrapperComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WindowTestWrapperComponent, "ng-component", never, {
|
|
113
|
+
"component": {
|
|
114
|
+
"alias": "component";
|
|
115
|
+
"required": true;
|
|
116
|
+
"isSignal": true;
|
|
117
|
+
};
|
|
118
|
+
}, {}, never, never, true, never>;
|
|
114
119
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
120
|
+
export declare class TableSelectInputComponent<Data extends Record<string, any> = Record<string, any>> extends ControlValueAccessor<Data> implements MatFormFieldControl<Data>, OnDestroy {
|
|
121
|
+
ngControl: NgControl | null;
|
|
122
|
+
static nextId: number;
|
|
123
|
+
id: string;
|
|
124
|
+
stateChanges: Subject<void>;
|
|
125
|
+
control: AbstractControl | null;
|
|
126
|
+
rxapControl: RxapFormControl | null;
|
|
127
|
+
focused: boolean;
|
|
128
|
+
get empty(): boolean;
|
|
129
|
+
get shouldLabelFloat(): boolean;
|
|
130
|
+
readonly requiredInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
131
|
+
get required(): boolean;
|
|
132
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
133
|
+
private readonly _disabled;
|
|
134
|
+
get disabled(): boolean;
|
|
135
|
+
private _subscription;
|
|
136
|
+
get errorState(): boolean;
|
|
137
|
+
private readonly _value;
|
|
138
|
+
readonly placeholderInput: import("@angular/core").InputSignal<string>;
|
|
139
|
+
get placeholder(): string;
|
|
140
|
+
set value(value: Data | null);
|
|
141
|
+
get value(): Data | null;
|
|
142
|
+
constructor();
|
|
143
|
+
private readonly _display;
|
|
144
|
+
get display(): string | undefined;
|
|
145
|
+
set display(value: string | undefined);
|
|
146
|
+
writeValue(value: Data): void;
|
|
147
|
+
setValue(value: Data): void;
|
|
148
|
+
private initControl;
|
|
149
|
+
toDisplay(value: any): string | Promise<string>;
|
|
150
|
+
ngOnDestroy(): void;
|
|
151
|
+
setDescribedByIds(ids: string[]): void;
|
|
152
|
+
onContainerClick(event: MouseEvent): void;
|
|
153
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSelectInputComponent<any>, never>;
|
|
154
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSelectInputComponent<any>, "rxap-table-select-input", never, {
|
|
155
|
+
"requiredInput": {
|
|
156
|
+
"alias": "required";
|
|
157
|
+
"required": false;
|
|
158
|
+
"isSignal": true;
|
|
159
|
+
};
|
|
160
|
+
"disabledInput": {
|
|
161
|
+
"alias": "disabled";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
165
|
+
"placeholderInput": {
|
|
166
|
+
"alias": "placeholder";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
}, {}, never, never, true, never>;
|
|
151
171
|
}
|
|
152
|
-
|
|
153
|
-
declare
|
|
154
|
-
|
|
155
|
-
declare const
|
|
156
|
-
declare const
|
|
157
|
-
declare const
|
|
158
|
-
declare
|
|
159
|
-
declare
|
|
160
|
-
declare function
|
|
161
|
-
declare function
|
|
162
|
-
declare function
|
|
163
|
-
|
|
164
|
-
declare
|
|
165
|
-
|
|
166
|
-
interface ExtractTableSelectColumnMapMixin extends ExtractControlMixin, ExtractFormDefinitionMixin {
|
|
172
|
+
export declare function CreateFilterFormProvider(columns: TableSelectColumnMap): StaticProvider;
|
|
173
|
+
export declare const TABLE_SELECT_COLUMN_MAP = "TABLE_SELECT_COLUMN_MAP";
|
|
174
|
+
export declare const TABLE_SELECT_TO_DISPLAY = "TABLE_SELECT_TO_DISPLAY";
|
|
175
|
+
export declare const TABLE_SELECT_TO_VALUE = "TABLE_SELECT_TO_VALUE";
|
|
176
|
+
export declare const TABLE_SELECT_METHOD = "TABLE_SELECT_METHOD";
|
|
177
|
+
export declare const TABLE_SELECT_DATA_SOURCE = "TABLE_SELECT_DATA_SOURCE";
|
|
178
|
+
export declare function UseTableSelectColumns(columnMap: Map<string, TableSelectColumn> | Record<string, TableSelectColumn>): (target: any, propertyKey: string) => void;
|
|
179
|
+
export declare function UseTableSelectDataSource<Data extends Record<string, any> = Record<string, any>>(dataSource: Constructor<BaseDataSource<Data[]>> | Constructor<AbstractTableDataSource<Data>> | InjectionToken<AbstractTableDataSource<Data> | BaseDataSource<Data[]>>, settings?: UseDataSourceSettings): (target: any, propertyKey: string) => void;
|
|
180
|
+
export declare function UseTableSelectToDisplay<Data = Record<string, any>>(toDisplay: (value: Data) => string | Promise<string>): (target: any, propertyKey: string) => void;
|
|
181
|
+
export declare function UseTableSelectToValue<Data = Record<string, any>>(toValue: (value: Data) => unknown | Promise<unknown>): (target: any, propertyKey: string) => void;
|
|
182
|
+
export declare function UseTableSelectMethod<Data = Record<string, any>>(method: Method): (target: any, propertyKey: string) => void;
|
|
183
|
+
export interface ExtractTableSelectColumnMapMixin extends ExtractControlMixin, ExtractFormDefinitionMixin {}
|
|
184
|
+
export declare class ExtractTableSelectColumnMapMixin {
|
|
185
|
+
protected extractTableSelectColumnMap(control?: import("dist/packages/angular/forms/types/rxap-forms").RxapFormControl<any, any, any>, formDefinition?: import("dist/packages/angular/forms/types/rxap-forms").FormDefinition<any, any, any>): Record<string, TableSelectColumn>;
|
|
167
186
|
}
|
|
168
|
-
|
|
169
|
-
|
|
187
|
+
export interface ExtractTableSelectDataSourceMixin<Data extends Record<string, any>> extends ExtractDatasourceMixin {}
|
|
188
|
+
export declare class ExtractTableSelectDataSourceMixin<Data extends Record<string, any>> {
|
|
189
|
+
protected extractTableSelectDataSource(): BaseDataSource<Data[]>;
|
|
170
190
|
}
|
|
171
|
-
|
|
172
|
-
|
|
191
|
+
export interface ExtractTableSelectToDisplayMixin<Value = unknown> extends ExtractControlMixin, ExtractFormDefinitionMixin {}
|
|
192
|
+
export type TableSelectToDisplayFunction<Value = unknown> = (value: Value) => string | Promise<string>;
|
|
193
|
+
export declare class ExtractTableSelectToDisplayMixin<Value = unknown> {
|
|
194
|
+
protected extractTableSelectToDisplay(control?: import("dist/packages/angular/forms/types/rxap-forms").RxapFormControl<any, any, any>, formDefinition?: import("dist/packages/angular/forms/types/rxap-forms").FormDefinition<any, any, any>): TableSelectToDisplayFunction<Value>;
|
|
173
195
|
}
|
|
174
|
-
|
|
175
|
-
|
|
196
|
+
export interface ExtractTableSelectToValueMixin<Data = unknown, Value = unknown> extends ExtractControlMixin, ExtractFormDefinitionMixin {}
|
|
197
|
+
export type TableSelectToValueFunction<Data = unknown, Value = unknown> = (value: Data) => Value | Promise<Value>;
|
|
198
|
+
export declare class ExtractTableSelectToValueMixin<Data = unknown, Value = unknown> {
|
|
199
|
+
protected extractTableSelectToValue(control?: import("dist/packages/angular/forms/types/rxap-forms").RxapFormControl<any, any, any>, formDefinition?: import("dist/packages/angular/forms/types/rxap-forms").FormDefinition<any, any, any>): TableSelectToValueFunction<Data, Value>;
|
|
176
200
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
201
|
+
export interface OpenTableSelectWindowDirective<Data extends Record<string, any>, Value = Data> extends ExtractTableSelectDataSourceMixin<Data>, ExtractTableSelectColumnMapMixin, ExtractTableSelectToValueMixin<Data, Value> {}
|
|
202
|
+
export declare class OpenTableSelectWindowDirective<Data extends Record<string, any> = Record<string, any>, Value = Data> implements OnDestroy {
|
|
203
|
+
readonly dataInput: import("@angular/core").InputSignal<Data[] | BaseDataSource<Data[], import("@rxap/data-source").BaseDataSourceMetadata, import("@rxap/data-source").BaseDataSourceViewer<any>> | AbstractTableDataSource<Data, any> | undefined>;
|
|
204
|
+
readonly data: import("@angular/core").WritableSignal<Data[] | BaseDataSource<Data[], import("@rxap/data-source").BaseDataSourceMetadata, import("@rxap/data-source").BaseDataSourceViewer<any>> | AbstractTableDataSource<Data, any> | undefined>;
|
|
205
|
+
readonly columnsInput: import("@angular/core").InputSignal<Map<string, TableSelectColumn> | Record<string, TableSelectColumn> | undefined>;
|
|
206
|
+
readonly columns: import("@angular/core").WritableSignal<Map<string, TableSelectColumn> | Record<string, TableSelectColumn> | undefined>;
|
|
207
|
+
readonly selectedInput: import("@angular/core").InputSignal<Data[]>;
|
|
208
|
+
readonly selected: import("@angular/core").WritableSignal<Data[]>;
|
|
209
|
+
readonly parameters: import("@angular/core").InputSignal<Observable<Record<string, unknown>> | undefined>;
|
|
210
|
+
readonly selectedChange: import("@angular/core").OutputEmitterRef<Data[]>;
|
|
211
|
+
readonly labelInput: import("@angular/core").InputSignal<string | undefined>;
|
|
212
|
+
readonly label: import("@angular/core").WritableSignal<string | undefined>;
|
|
213
|
+
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
|
214
|
+
_internalId: string;
|
|
215
|
+
readonly compareWithInput: import("@angular/core").InputSignal<((o1: Data, o2: Data) => boolean) | undefined>;
|
|
216
|
+
readonly compareWith: import("@angular/core").WritableSignal<((o1: Data, o2: Data) => boolean) | undefined>;
|
|
217
|
+
readonly multiple: import("@angular/core").InputSignal<boolean>;
|
|
218
|
+
control?: RxapFormControl;
|
|
219
|
+
readonly dataSourceLoader: DataSourceLoader;
|
|
220
|
+
protected _hasOpenWindow: boolean;
|
|
221
|
+
protected readonly openMethod: OpenTableSelectWindowMethod<Data>;
|
|
222
|
+
protected readonly windowService: WindowService;
|
|
223
|
+
protected readonly injector: Injector;
|
|
224
|
+
protected matButton: MatButton | null;
|
|
225
|
+
private readonly _disabled;
|
|
226
|
+
private readonly invalidInputs;
|
|
227
|
+
readonly disabled: import("@angular/core").Signal<boolean>;
|
|
228
|
+
readonly toValueInput: import("@angular/core").InputSignal<((value: Data) => Value | Promise<Value>) | undefined>;
|
|
229
|
+
readonly toValue: import("@angular/core").WritableSignal<((value: Data) => Value | Promise<Value>) | undefined>;
|
|
230
|
+
constructor();
|
|
231
|
+
setDisabled(value: boolean): void;
|
|
232
|
+
ngOnDestroy(): void;
|
|
233
|
+
onClick($event: Event): Promise<void>;
|
|
234
|
+
private initFromFormField;
|
|
235
|
+
private checkInputs;
|
|
236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenTableSelectWindowDirective<any, any>, never>;
|
|
237
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OpenTableSelectWindowDirective<any, any>, "[rxapOpenTableSelectWindow]", never, {
|
|
238
|
+
"dataInput": {
|
|
239
|
+
"alias": "data";
|
|
240
|
+
"required": false;
|
|
241
|
+
"isSignal": true;
|
|
242
|
+
};
|
|
243
|
+
"columnsInput": {
|
|
244
|
+
"alias": "columns";
|
|
245
|
+
"required": false;
|
|
246
|
+
"isSignal": true;
|
|
247
|
+
};
|
|
248
|
+
"selectedInput": {
|
|
249
|
+
"alias": "selected";
|
|
250
|
+
"required": false;
|
|
251
|
+
"isSignal": true;
|
|
252
|
+
};
|
|
253
|
+
"parameters": {
|
|
254
|
+
"alias": "parameters";
|
|
255
|
+
"required": false;
|
|
256
|
+
"isSignal": true;
|
|
257
|
+
};
|
|
258
|
+
"labelInput": {
|
|
259
|
+
"alias": "label";
|
|
260
|
+
"required": false;
|
|
261
|
+
"isSignal": true;
|
|
262
|
+
};
|
|
263
|
+
"id": {
|
|
264
|
+
"alias": "id";
|
|
265
|
+
"required": false;
|
|
266
|
+
"isSignal": true;
|
|
267
|
+
};
|
|
268
|
+
"compareWithInput": {
|
|
269
|
+
"alias": "compareWith";
|
|
270
|
+
"required": false;
|
|
271
|
+
"isSignal": true;
|
|
272
|
+
};
|
|
273
|
+
"multiple": {
|
|
274
|
+
"alias": "multiple";
|
|
275
|
+
"required": false;
|
|
276
|
+
"isSignal": true;
|
|
277
|
+
};
|
|
278
|
+
"toValueInput": {
|
|
279
|
+
"alias": "toValue";
|
|
280
|
+
"required": false;
|
|
281
|
+
"isSignal": true;
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
"selectedChange": "selectedChange";
|
|
285
|
+
}, never, never, true, never>;
|
|
180
286
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
control: RxapFormControl;
|
|
244
|
-
readonly openTableSelectWindow: _angular_core.Signal<readonly OpenTableSelectWindowDirective<Record<string, any>, unknown>[]>;
|
|
245
|
-
readonly tableSelectInput: _angular_core.Signal<TableSelectInputComponent<Record<string, any>>>;
|
|
246
|
-
readonly matLabel: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
247
|
-
readonly toValueInput: _angular_core.InputSignal<((value: Data) => unknown | Promise<unknown>) | undefined>;
|
|
248
|
-
readonly toValue: _angular_core.WritableSignal<((value: Data) => unknown | Promise<unknown>) | undefined>;
|
|
249
|
-
readonly injector: Injector;
|
|
250
|
-
readonly dataSourceLoader: DataSourceLoader;
|
|
251
|
-
protected readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
252
|
-
protected matFormField: MatFormField | null;
|
|
253
|
-
get selected(): Data[];
|
|
254
|
-
readonly toDisplayInput: _angular_core.InputSignal<(value: Data) => string | Promise<string>>;
|
|
255
|
-
readonly toDisplay: _angular_core.WritableSignal<(value: Data) => string | Promise<string>>;
|
|
256
|
-
constructor();
|
|
257
|
-
private initFromFormField;
|
|
258
|
-
private readonly destroyRef;
|
|
259
|
-
private updateOpenTableSelectWindow;
|
|
260
|
-
private onSelected;
|
|
261
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableSelectControlDirective<any>, never>;
|
|
262
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableSelectControlDirective<any>, "mat-form-field[rxapTableSelectControl]", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "openMethod": { "alias": "openMethod"; "required": true; "isSignal": true; }; "dataInput": { "alias": "data"; "required": false; "isSignal": true; }; "columnsInput": { "alias": "columns"; "required": false; "isSignal": true; }; "toValueInput": { "alias": "toValue"; "required": false; "isSignal": true; }; "toDisplayInput": { "alias": "toDisplay"; "required": false; "isSignal": true; }; }, {}, ["openTableSelectWindow", "tableSelectInput", "matLabel"], never, true, never>;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export { CreateFilterFormProvider, ExtractTableSelectColumnMapMixin, ExtractTableSelectDataSourceMixin, ExtractTableSelectToDisplayMixin, ExtractTableSelectToValueMixin, MockWindowRef, OpenTableSelectWindowDirective, OpenTableSelectWindowMethod, TABLE_SELECT_COLUMN_MAP, TABLE_SELECT_DATA_SOURCE, TABLE_SELECT_METHOD, TABLE_SELECT_TO_DISPLAY, TABLE_SELECT_TO_VALUE, TableSelectControlDirective, TableSelectInputComponent, TableSelectWindowComponent, UseTableSelectColumns, UseTableSelectDataSource, UseTableSelectMethod, UseTableSelectToDisplay, UseTableSelectToValue, WindowTestWrapperComponent };
|
|
266
|
-
export type { BooleanColumn, DateColumn, OpenTableSelectWindowMethodParameters, SelectColumn, TableSelectColumn, TableSelectColumnMap, TableSelectToDisplayFunction, TableSelectToValueFunction };
|
|
287
|
+
export interface TableSelectControlDirective<Data extends Record<string, any>> extends ExtractTableSelectDataSourceMixin<Data>, ExtractTableSelectToValueMixin, ExtractTableSelectToDisplayMixin, ExtractTableSelectColumnMapMixin {}
|
|
288
|
+
export declare class TableSelectControlDirective<Data extends Record<string, any> = Record<string, any>> {
|
|
289
|
+
readonly multiple: import("@angular/core").InputSignal<boolean | undefined>;
|
|
290
|
+
readonly openMethod: import("@angular/core").InputSignal<Method<Data[], WindowTableSelectOptions<Data>>>;
|
|
291
|
+
readonly dataInput: import("@angular/core").InputSignal<Data[] | BaseDataSource<Data[], import("@rxap/data-source").BaseDataSourceMetadata, import("@rxap/data-source").BaseDataSourceViewer<any>> | AbstractTableDataSource<Data, any> | undefined>;
|
|
292
|
+
readonly data: import("@angular/core").WritableSignal<Data[] | BaseDataSource<Data[], import("@rxap/data-source").BaseDataSourceMetadata, import("@rxap/data-source").BaseDataSourceViewer<any>> | AbstractTableDataSource<Data, any> | undefined>;
|
|
293
|
+
readonly columnsInput: import("@angular/core").InputSignal<Map<string, TableSelectColumn> | Record<string, TableSelectColumn> | undefined>;
|
|
294
|
+
readonly columns: import("@angular/core").WritableSignal<Map<string, TableSelectColumn> | Record<string, TableSelectColumn> | undefined>;
|
|
295
|
+
ngControl: NgControl | null;
|
|
296
|
+
value: Data | null;
|
|
297
|
+
control: RxapFormControl;
|
|
298
|
+
readonly openTableSelectWindow: import("@angular/core").Signal<readonly OpenTableSelectWindowDirective<Record<string, any>, unknown>[]>;
|
|
299
|
+
readonly tableSelectInput: import("@angular/core").Signal<TableSelectInputComponent<Record<string, any>>>;
|
|
300
|
+
readonly matLabel: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
301
|
+
readonly toValueInput: import("@angular/core").InputSignal<((value: Data) => unknown | Promise<unknown>) | undefined>;
|
|
302
|
+
readonly toValue: import("@angular/core").WritableSignal<((value: Data) => unknown | Promise<unknown>) | undefined>;
|
|
303
|
+
readonly injector: Injector;
|
|
304
|
+
readonly dataSourceLoader: DataSourceLoader;
|
|
305
|
+
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
306
|
+
protected matFormField: MatFormField | null;
|
|
307
|
+
get selected(): Data[];
|
|
308
|
+
readonly toDisplayInput: import("@angular/core").InputSignal<(value: Data) => string | Promise<string>>;
|
|
309
|
+
readonly toDisplay: import("@angular/core").WritableSignal<(value: Data) => string | Promise<string>>;
|
|
310
|
+
constructor();
|
|
311
|
+
private initFromFormField;
|
|
312
|
+
private readonly destroyRef;
|
|
313
|
+
private updateOpenTableSelectWindow;
|
|
314
|
+
private onSelected;
|
|
315
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSelectControlDirective<any>, never>;
|
|
316
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableSelectControlDirective<any>, "mat-form-field[rxapTableSelectControl]", never, {
|
|
317
|
+
"multiple": {
|
|
318
|
+
"alias": "multiple";
|
|
319
|
+
"required": false;
|
|
320
|
+
"isSignal": true;
|
|
321
|
+
};
|
|
322
|
+
"openMethod": {
|
|
323
|
+
"alias": "openMethod";
|
|
324
|
+
"required": true;
|
|
325
|
+
"isSignal": true;
|
|
326
|
+
};
|
|
327
|
+
"dataInput": {
|
|
328
|
+
"alias": "data";
|
|
329
|
+
"required": false;
|
|
330
|
+
"isSignal": true;
|
|
331
|
+
};
|
|
332
|
+
"columnsInput": {
|
|
333
|
+
"alias": "columns";
|
|
334
|
+
"required": false;
|
|
335
|
+
"isSignal": true;
|
|
336
|
+
};
|
|
337
|
+
"toValueInput": {
|
|
338
|
+
"alias": "toValue";
|
|
339
|
+
"required": false;
|
|
340
|
+
"isSignal": true;
|
|
341
|
+
};
|
|
342
|
+
"toDisplayInput": {
|
|
343
|
+
"alias": "toDisplay";
|
|
344
|
+
"required": false;
|
|
345
|
+
"isSignal": true;
|
|
346
|
+
};
|
|
347
|
+
}, {}, ["openTableSelectWindow", "tableSelectInput", "matLabel"], never, true, never>;
|
|
348
|
+
}
|