@energinet/watt 4.0.2 → 4.0.5
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/esm2022/data/watt-data-table.component.js +7 -3
- package/esm2022/picker/__shared/watt-picker-base.js +16 -12
- package/esm2022/picker/datepicker/watt-datepicker.component.js +55 -38
- package/esm2022/picker/timepicker/watt-timepicker.component.js +1 -1
- package/esm2022/table/index.js +2 -2
- package/esm2022/table/watt-table.component.js +89 -143
- package/package.json +1 -1
- package/picker/__shared/watt-picker-base.d.ts +9 -8
- package/picker/datepicker/watt-datepicker.component.d.ts +15 -15
- package/picker/timepicker/watt-timepicker.component.d.ts +3 -3
- package/table/index.d.ts +1 -1
- package/table/watt-table.component.d.ts +43 -72
package/package.json
CHANGED
|
@@ -14,27 +14,28 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
18
|
-
import { AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, OnDestroy, OnInit, Signal } from '@angular/core';
|
|
17
|
+
import { OnInit, Signal, OnDestroy, ElementRef, DestroyRef, AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
19
18
|
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
19
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
20
20
|
import { Subject } from 'rxjs';
|
|
21
21
|
import { WattDateRange } from '@energinet/watt/core/date';
|
|
22
22
|
import { WattPickerValue } from './watt-picker-value';
|
|
23
23
|
import * as i0 from "@angular/core";
|
|
24
24
|
export declare abstract class WattPickerBase implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
25
|
-
protected
|
|
25
|
+
protected destroyRef: DestroyRef;
|
|
26
26
|
protected changeDetectionRef: ChangeDetectorRef;
|
|
27
27
|
protected ngControl: NgControl | null;
|
|
28
|
-
protected
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
29
|
+
abstract input: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
30
|
+
abstract endInput: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
31
|
+
abstract startInput: Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
31
32
|
static nextId: number;
|
|
32
33
|
id: string;
|
|
33
34
|
initialValue: WattPickerValue;
|
|
34
35
|
focused: boolean;
|
|
35
36
|
controlType: string;
|
|
36
37
|
stateChanges: Subject<void>;
|
|
37
|
-
|
|
38
|
+
userAriaDescribedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
38
39
|
get placeholder(): string;
|
|
39
40
|
set placeholder(value: string);
|
|
40
41
|
protected abstract _placeholder: string;
|
|
@@ -76,5 +77,5 @@ export declare abstract class WattPickerBase implements OnInit, AfterViewInit, O
|
|
|
76
77
|
protected changeParentValue: (value: string | WattDateRange) => void;
|
|
77
78
|
protected markParentControlAsTouched: () => void;
|
|
78
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<WattPickerBase, never>;
|
|
79
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WattPickerBase, never, never, { "value": { "alias": "value"; "required": false; }; "range": { "alias": "range"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WattPickerBase, never, never, { "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; "range": { "alias": "range"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
80
81
|
}
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import { ElementRef, AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
18
18
|
import { AbstractControl, NgControl, Validator } from '@angular/forms';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { MatEndDate, MatStartDate, MatDateRangeInput, MatDateRangePicker, MatDatepickerInput, MatCalendarCellClassFunction } from '@angular/material/datepicker';
|
|
20
|
+
import { WattRange, WattDateRange, WattSupportedLocales } from '@energinet/watt/core/date';
|
|
21
21
|
import { WattPickerBase, WattPickerValue } from '@energinet/watt/picker/__shared';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
23
|
export declare const danishTimeZoneIdentifier = "Europe/Copenhagen";
|
|
@@ -36,20 +36,20 @@ export declare class WattDatepickerComponent extends WattPickerBase implements V
|
|
|
36
36
|
private locale;
|
|
37
37
|
max: import("@angular/core").InputSignal<Date | undefined>;
|
|
38
38
|
min: import("@angular/core").InputSignal<Date | undefined>;
|
|
39
|
+
label: import("@angular/core").InputSignal<string>;
|
|
39
40
|
rangeMonthOnlyMode: import("@angular/core").InputSignal<boolean>;
|
|
40
41
|
startAt: import("@angular/core").InputSignal<Date | null>;
|
|
41
|
-
label: import("@angular/core").InputSignal<string>;
|
|
42
42
|
dateClass: import("@angular/core").InputSignal<MatCalendarCellClassFunction<Date>>;
|
|
43
43
|
canStepThroughDays: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
matEndDate: import("@angular/core").Signal<MatEndDate<Date | null> | undefined>;
|
|
45
|
+
matStartDate: import("@angular/core").Signal<MatStartDate<Date | null> | undefined>;
|
|
46
|
+
matDateRangeInput: import("@angular/core").Signal<MatDateRangeInput<Date | null> | undefined>;
|
|
47
|
+
matDatepickerInput: import("@angular/core").Signal<MatDatepickerInput<Date | null> | undefined>;
|
|
48
|
+
matDateRangePicker: import("@angular/core").Signal<MatDateRangePicker<Date | null> | undefined>;
|
|
49
|
+
actualInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
50
|
+
input: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
51
|
+
endInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
52
|
+
startInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
53
53
|
protected _placeholder: string;
|
|
54
54
|
rangeSeparator: string;
|
|
55
55
|
rangePlaceholder: string;
|
|
@@ -61,7 +61,7 @@ export declare class WattDatepickerComponent extends WattPickerBase implements V
|
|
|
61
61
|
isNextDayButtonDisabled: import("@angular/core").WritableSignal<boolean>;
|
|
62
62
|
constructor();
|
|
63
63
|
ngAfterViewInit(): void;
|
|
64
|
-
validate({ value }: AbstractControl<WattRange<string>>)
|
|
64
|
+
validate: ({ value }: AbstractControl<WattRange<string>>) => {
|
|
65
65
|
monthOnly: boolean;
|
|
66
66
|
} | null;
|
|
67
67
|
protected initSingleInput(): void;
|
|
@@ -91,5 +91,5 @@ export declare class WattDatepickerComponent extends WattPickerBase implements V
|
|
|
91
91
|
private setToEndOfDay;
|
|
92
92
|
private setEndDateToDanishTimeZone;
|
|
93
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<WattDatepickerComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WattDatepickerComponent, "watt-datepicker", never, { "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WattDatepickerComponent, "watt-datepicker", never, { "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "rangeMonthOnlyMode": { "alias": "rangeMonthOnlyMode"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "dateClass": { "alias": "dateClass"; "required": false; "isSignal": true; }; "canStepThroughDays": { "alias": "canStepThroughDays"; "required": false; "isSignal": true; }; }, {}, never, ["*", "watt-field-hint", "watt-field-error"], true, never>;
|
|
95
95
|
}
|
|
@@ -21,9 +21,9 @@ export declare class WattTimepickerComponent extends WattPickerBase {
|
|
|
21
21
|
* Text to display on label for time range slider.
|
|
22
22
|
*/
|
|
23
23
|
sliderLabel: import("@angular/core").InputSignal<string>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
input: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
25
|
+
startInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
26
|
+
endInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
27
27
|
sliderId: string;
|
|
28
28
|
/**
|
|
29
29
|
* Used for defining a relationship between the time picker and
|
package/table/index.d.ts
CHANGED
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
export { IWattTableDataSource, WattTableDataSource } from './watt-table-data-source';
|
|
18
|
-
export { type WattTableColumn, type WattTableColumnDef, WattTableComponent, WattTableCellDirective, WattTableToolbarDirective,
|
|
18
|
+
export { type WattTableColumn, type WattTableColumnDef, WattTableComponent, WattTableCellDirective, WattTableToolbarDirective, WATT_TABLE, } from './watt-table.component';
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { KeyValue } from '@angular/common';
|
|
18
|
-
import {
|
|
18
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
19
19
|
import type { Signal, TrackByFunction } from '@angular/core';
|
|
20
20
|
import { MatSort, Sort, SortDirection } from '@angular/material/sort';
|
|
21
21
|
import { Subject } from 'rxjs';
|
|
22
|
-
import { WattDatePipe } from '@energinet/watt/core/date';
|
|
23
22
|
import { IWattTableDataSource } from './watt-table-data-source';
|
|
24
23
|
import * as i0 from "@angular/core";
|
|
25
24
|
/** Class name for expandable cells. */
|
|
@@ -124,11 +123,11 @@ export declare class WattTableCellDirective<T> {
|
|
|
124
123
|
/**
|
|
125
124
|
* The WattTableColumn this template applies to.
|
|
126
125
|
*/
|
|
127
|
-
column: import("@angular/core").InputSignal<WattTableColumn<T>>;
|
|
126
|
+
readonly column: import("@angular/core").InputSignal<WattTableColumn<T>>;
|
|
128
127
|
/**
|
|
129
128
|
* Optional header text for the column.
|
|
130
129
|
*/
|
|
131
|
-
header: import("@angular/core").InputSignal<string | undefined>;
|
|
130
|
+
readonly header: import("@angular/core").InputSignal<string | undefined>;
|
|
132
131
|
static ngTemplateContextGuard<T>(_directive: WattTableCellDirective<T>, context: unknown): context is WattTableCellContext<T>;
|
|
133
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<WattTableCellDirective<any>, never>;
|
|
134
133
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WattTableCellDirective<any>, "[wattTableCell]", never, { "column": { "alias": "wattTableCell"; "required": true; "isSignal": true; }; "header": { "alias": "wattTableCellHeader"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -143,74 +142,74 @@ export declare class WattTableToolbarDirective<T> {
|
|
|
143
142
|
* Usage:
|
|
144
143
|
* `import { WATT_TABLE } from '@energinet-datahub/watt/table';`
|
|
145
144
|
*/
|
|
146
|
-
export declare class WattTableComponent<T>
|
|
145
|
+
export declare class WattTableComponent<T> {
|
|
147
146
|
/**
|
|
148
147
|
* The table's source of data. Property should not be changed after
|
|
149
148
|
* initialization, instead update the data on the instance itself.
|
|
150
149
|
*/
|
|
151
|
-
dataSource: import("@angular/core").InputSignal<IWattTableDataSource<T>>;
|
|
150
|
+
readonly dataSource: import("@angular/core").InputSignal<IWattTableDataSource<T>>;
|
|
152
151
|
/**
|
|
153
152
|
* Column definition record with keys representing the column identifiers
|
|
154
153
|
* and values being the column configuration. The order of the columns
|
|
155
154
|
* is determined by the property order, but can be overruled by the
|
|
156
155
|
* `displayedColumns` input.
|
|
157
156
|
*/
|
|
158
|
-
columns: import("@angular/core").InputSignal<WattTableColumnDef<T>>;
|
|
157
|
+
readonly columns: import("@angular/core").InputSignal<WattTableColumnDef<T>>;
|
|
159
158
|
/**
|
|
160
159
|
* Used for hiding or reordering columns defined in the `columns` input.
|
|
161
160
|
*/
|
|
162
|
-
displayedColumns: import("@angular/core").InputSignal<string[] | undefined>;
|
|
161
|
+
readonly displayedColumns: import("@angular/core").InputSignal<string[] | undefined>;
|
|
163
162
|
/**
|
|
164
163
|
* Used for disabling the table. This will disable all user interaction
|
|
165
164
|
*/
|
|
166
|
-
disabled: import("@angular/core").InputSignal<boolean>;
|
|
165
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
167
166
|
/**
|
|
168
167
|
* Provide a description of the table for visually impaired users.
|
|
169
168
|
*/
|
|
170
|
-
description: import("@angular/core").InputSignal<string>;
|
|
169
|
+
readonly description: import("@angular/core").InputSignal<string>;
|
|
171
170
|
/**
|
|
172
171
|
* If set to `true`, the table will show a loading indicator
|
|
173
172
|
* when there is no data.
|
|
174
173
|
*/
|
|
175
|
-
loading: import("@angular/core").InputSignal<boolean>;
|
|
174
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
176
175
|
/**
|
|
177
176
|
* If true the footer will be sticky
|
|
178
177
|
*/
|
|
179
|
-
stickyFooter: import("@angular/core").InputSignal<boolean>;
|
|
178
|
+
readonly stickyFooter: import("@angular/core").InputSignal<boolean>;
|
|
180
179
|
/**
|
|
181
180
|
* Optional callback for determining header text for columns that
|
|
182
181
|
* do not have a static header text set in the column definition.
|
|
183
182
|
* Useful for providing translations of column headers.
|
|
184
183
|
*/
|
|
185
|
-
resolveHeader: import("@angular/core").InputSignal<((key: string) => string) | undefined>;
|
|
184
|
+
readonly resolveHeader: import("@angular/core").InputSignal<((key: string) => string) | undefined>;
|
|
186
185
|
/**
|
|
187
186
|
* Identifier for column that should be sorted initially.
|
|
188
187
|
*/
|
|
189
|
-
sortBy: import("@angular/core").InputSignal<string>;
|
|
188
|
+
readonly sortBy: import("@angular/core").InputSignal<string>;
|
|
190
189
|
/**
|
|
191
190
|
* The sort direction of the initially sorted column.
|
|
192
191
|
*/
|
|
193
|
-
sortDirection: import("@angular/core").InputSignal<SortDirection>;
|
|
192
|
+
readonly sortDirection: import("@angular/core").InputSignal<SortDirection>;
|
|
194
193
|
/**
|
|
195
194
|
* Whether to allow the user to clear the sort. Defaults to `true`.
|
|
196
195
|
*/
|
|
197
|
-
sortClear: import("@angular/core").InputSignal<boolean>;
|
|
196
|
+
readonly sortClear: import("@angular/core").InputSignal<boolean>;
|
|
198
197
|
/**
|
|
199
198
|
* Whether the table should include a checkbox column for row selection.
|
|
200
199
|
*/
|
|
201
|
-
selectable: import("@angular/core").InputSignal<boolean>;
|
|
200
|
+
readonly selectable: import("@angular/core").InputSignal<boolean>;
|
|
202
201
|
/**
|
|
203
202
|
* Sets the selected rows. Only applicable when selectable is `true`.
|
|
204
203
|
*/
|
|
205
|
-
selection: import("@angular/core").ModelSignal<T[]>;
|
|
204
|
+
readonly selection: import("@angular/core").ModelSignal<T[]>;
|
|
206
205
|
/**
|
|
207
206
|
* Set to true to disable row hover highlight.
|
|
208
207
|
*/
|
|
209
|
-
suppressRowHoverHighlight: import("@angular/core").InputSignal<boolean>;
|
|
208
|
+
readonly suppressRowHoverHighlight: import("@angular/core").InputSignal<boolean>;
|
|
210
209
|
/**
|
|
211
210
|
* Highlights the currently active row.
|
|
212
211
|
*/
|
|
213
|
-
activeRow: import("@angular/core").InputSignal<T | undefined>;
|
|
212
|
+
readonly activeRow: import("@angular/core").InputSignal<T | undefined>;
|
|
214
213
|
/**
|
|
215
214
|
* Custom comparator function to determine if two rows are equal.
|
|
216
215
|
*
|
|
@@ -220,64 +219,60 @@ export declare class WattTableComponent<T> implements OnChanges, AfterViewInit {
|
|
|
220
219
|
* as long as the instances remain the same, which may not be the case
|
|
221
220
|
* if row data is recreated or rebuilt from serialization.
|
|
222
221
|
*/
|
|
223
|
-
activeRowComparator: import("@angular/core").InputSignal<((currentRow: T, activeRow: T) => boolean) | undefined>;
|
|
222
|
+
readonly activeRowComparator: import("@angular/core").InputSignal<((currentRow: T, activeRow: T) => boolean) | undefined>;
|
|
224
223
|
/**
|
|
225
224
|
* If set to `true`, the column headers will not be shown. Default is `false`.
|
|
226
225
|
*/
|
|
227
|
-
hideColumnHeaders: import("@angular/core").InputSignal<boolean>;
|
|
226
|
+
readonly hideColumnHeaders: import("@angular/core").InputSignal<boolean>;
|
|
228
227
|
/**
|
|
229
228
|
* Choose from a predefined set of display variants.
|
|
230
229
|
*/
|
|
231
|
-
variant: import("@angular/core").InputSignal<"zebra" | undefined>;
|
|
230
|
+
readonly variant: import("@angular/core").InputSignal<"zebra" | undefined>;
|
|
232
231
|
/**
|
|
233
232
|
* Array of rows that are currently expanded.
|
|
234
233
|
*/
|
|
235
|
-
expanded: import("@angular/core").ModelSignal<T[]>;
|
|
234
|
+
readonly expanded: import("@angular/core").ModelSignal<T[]>;
|
|
236
235
|
/**
|
|
237
236
|
* Optional function for uniquely identifying rows.
|
|
238
237
|
*/
|
|
239
|
-
trackBy: import("@angular/core").InputSignal<TrackByFunction<T> | keyof T | undefined>;
|
|
238
|
+
readonly trackBy: import("@angular/core").InputSignal<TrackByFunction<T> | keyof T | undefined>;
|
|
240
239
|
/**
|
|
241
240
|
* @ignore
|
|
242
241
|
* The `observed` boolean from the `Subject` is used to determine if a row is
|
|
243
242
|
* clickable or not. This is available on `EventEmitter`, but not on `output`,
|
|
244
243
|
* which is why this workaround is used.
|
|
245
244
|
*/
|
|
246
|
-
protected
|
|
245
|
+
protected rowClick$: Subject<T>;
|
|
247
246
|
/**
|
|
248
247
|
* Emits whenever a row is clicked.
|
|
249
248
|
*/
|
|
250
|
-
rowClick: import("@angular/core").OutputRef<T>;
|
|
249
|
+
readonly rowClick: import("@angular/core").OutputRef<T>;
|
|
251
250
|
/**
|
|
252
251
|
* Event emitted when the user changes the active sort or sort direction.
|
|
253
252
|
*/
|
|
254
|
-
sortChange: import("@angular/core").OutputEmitterRef<Sort>;
|
|
253
|
+
readonly sortChange: import("@angular/core").OutputEmitterRef<Sort>;
|
|
255
254
|
protected cells: Signal<readonly WattTableCellDirective<T>[]>;
|
|
256
255
|
protected toolbar: Signal<WattTableToolbarDirective<any> | undefined>;
|
|
257
256
|
protected sort: Signal<MatSort | undefined>;
|
|
258
257
|
protected tableCellElements: Signal<readonly ElementRef<HTMLTableCellElement>[]>;
|
|
259
|
-
|
|
260
|
-
_animationEffect: import("@angular/core").AfterRenderRef;
|
|
258
|
+
protected animationEffect: import("@angular/core").AfterRenderRef;
|
|
261
259
|
protected filterSelectionBy: (rows: T[]) => T[];
|
|
262
260
|
protected getSelectionState: () => boolean | null;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
_datePipe: WattDatePipe;
|
|
271
|
-
/** @ignore */
|
|
272
|
-
_hasFooter: import("@angular/core").WritableSignal<boolean>;
|
|
273
|
-
/** @ignore */
|
|
274
|
-
private formatCellData;
|
|
275
|
-
/** @ignore */
|
|
261
|
+
protected checkboxColumn: string;
|
|
262
|
+
protected expandableColumn: string;
|
|
263
|
+
protected hasFooter: Signal<boolean>;
|
|
264
|
+
protected isExpandable: Signal<boolean>;
|
|
265
|
+
protected renderedColumns: Signal<string[]>;
|
|
266
|
+
protected sizing: Signal<string[]>;
|
|
267
|
+
/** Try to get cell data for a specific `column` and `row`. */
|
|
276
268
|
private getCellData;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
269
|
+
protected getColumnTemplate: (column: WattTableColumn<T>) => TemplateRef<any> | undefined;
|
|
270
|
+
protected getColumnHeader: (column: KeyValue<string, WattTableColumn<T>>) => string;
|
|
271
|
+
protected getColumnCell: (column: WattTableColumn<T>, row: T) => {} | null;
|
|
272
|
+
protected getRowKey: (index: number, row: T) => any;
|
|
273
|
+
protected isActiveRow: (row: T) => boolean;
|
|
274
|
+
protected onRowClick: (row: T) => void;
|
|
275
|
+
constructor();
|
|
281
276
|
/**
|
|
282
277
|
* Clears the selection.
|
|
283
278
|
*/
|
|
@@ -286,32 +281,8 @@ export declare class WattTableComponent<T> implements OnChanges, AfterViewInit {
|
|
|
286
281
|
* Toggles the selection of a row.
|
|
287
282
|
*/
|
|
288
283
|
toggleSelection: (row: T) => void;
|
|
289
|
-
/** @ignore */
|
|
290
|
-
_getColumns(): string[];
|
|
291
|
-
/** @ignore */
|
|
292
|
-
_getColumnTemplate(column: WattTableColumn<T>): TemplateRef<any> | undefined;
|
|
293
|
-
/** @ignore */
|
|
294
|
-
_getColumnHeader(column: KeyValue<string, WattTableColumn<T>>): string;
|
|
295
|
-
/** @ignore */
|
|
296
|
-
_getColumnHelperAction(column: KeyValue<string, WattTableColumn<T>>): (() => void) | undefined;
|
|
297
|
-
/** @ignore */
|
|
298
|
-
_getColumnHeaderTooltip(column: KeyValue<string, WattTableColumn<T>>): string | undefined;
|
|
299
|
-
/** @ignore */
|
|
300
|
-
_getColumnCell(column: KeyValue<string, WattTableColumn<T>>, row: T): {} | null;
|
|
301
|
-
/** @ignore */
|
|
302
|
-
_getRowKey: (index: number, row: T) => any;
|
|
303
|
-
/** @ignore */
|
|
304
|
-
_isActiveRow(row: T): boolean;
|
|
305
|
-
/** @ignore */
|
|
306
|
-
_isExpandable(): boolean;
|
|
307
|
-
/** @ignore */
|
|
308
|
-
_onRowClick(row: T): void;
|
|
309
284
|
static ɵfac: i0.ɵɵFactoryDeclaration<WattTableComponent<any>, never>;
|
|
310
285
|
static ɵcmp: i0.ɵɵComponentDeclaration<WattTableComponent<any>, "watt-table", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyFooter": { "alias": "stickyFooter"; "required": false; "isSignal": true; }; "resolveHeader": { "alias": "resolveHeader"; "required": false; "isSignal": true; }; "sortBy": { "alias": "sortBy"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortClear": { "alias": "sortClear"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "suppressRowHoverHighlight": { "alias": "suppressRowHoverHighlight"; "required": false; "isSignal": true; }; "activeRow": { "alias": "activeRow"; "required": false; "isSignal": true; }; "activeRowComparator": { "alias": "activeRowComparator"; "required": false; "isSignal": true; }; "hideColumnHeaders": { "alias": "hideColumnHeaders"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; "expanded": "expandedChange"; "rowClick": "rowClick"; "sortChange": "sortChange"; }, ["cells", "toolbar"], never, true, never>;
|
|
311
286
|
}
|
|
312
|
-
export declare
|
|
313
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WattTableToolbarSpacerComponent, never>;
|
|
314
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WattTableToolbarSpacerComponent, "watt-table-toolbar-spacer", never, {}, {}, never, never, true, never>;
|
|
315
|
-
}
|
|
316
|
-
export declare const WATT_TABLE: (typeof WattTableToolbarSpacerComponent)[];
|
|
287
|
+
export declare const WATT_TABLE: (typeof WattTableToolbarDirective | typeof WattTableComponent)[];
|
|
317
288
|
export {};
|