@porscheinformatik/material-addons 10.3.2 → 10.4.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/bundles/porscheinformatik-material-addons.umd.js +511 -200
- package/bundles/porscheinformatik-material-addons.umd.js.map +1 -1
- package/bundles/porscheinformatik-material-addons.umd.min.js +2 -2
- package/bundles/porscheinformatik-material-addons.umd.min.js.map +1 -1
- package/esm2015/lib/button/button.module.js +2 -2
- package/esm2015/lib/button/danger-button/danger-button.component.js +1 -1
- package/esm2015/lib/button/flat-button/link-button.component.js +1 -1
- package/esm2015/lib/button/icon-button/icon-button.component.js +1 -1
- package/esm2015/lib/button/mad-basic-button.js +8 -8
- package/esm2015/lib/button/outline-button/outline-button.component.js +1 -1
- package/esm2015/lib/button/primary-button/primary-button.component.js +1 -1
- package/esm2015/lib/card/card.component.js +13 -7
- package/esm2015/lib/card/card.module.js +3 -3
- package/esm2015/lib/content-panel/content-header/content-header.component.js +1 -5
- package/esm2015/lib/content-panel/content-panel-container/content-panel-container.component.js +1 -5
- package/esm2015/lib/content-panel/content-panel-container-content/content-panel-container-content.component.js +1 -5
- package/esm2015/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.js +1 -5
- package/esm2015/lib/content-panel/main-container/main-container.component.js +1 -5
- package/esm2015/lib/data-table/data-table-action-type.js +4 -4
- package/esm2015/lib/data-table/data-table-action.js +1 -1
- package/esm2015/lib/data-table/data-table-column-definition.js +1 -0
- package/esm2015/lib/data-table/data-table-column.js +1 -0
- package/esm2015/lib/data-table/data-table-columns-modal/data-table-columns-modal.component.js +93 -0
- package/esm2015/lib/data-table/data-table.component.js +248 -66
- package/esm2015/lib/data-table/data-table.js +1 -1
- package/esm2015/lib/data-table/data-table.module.js +25 -20
- package/esm2015/lib/flowbar/flowbar.component.js +14 -22
- package/esm2015/lib/flowbar/flowbar.module.js +1 -1
- package/esm2015/lib/material-addons.module.js +1 -1
- package/esm2015/lib/quick-list/base-quick-list.component.js +1 -1
- package/esm2015/lib/quick-list/quick-list-compact/quick-list-compact.component.js +2 -2
- package/esm2015/lib/readonly/readonly-form-field/readonly-form-field.component.js +1 -1
- package/esm2015/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.js +12 -12
- package/esm2015/lib/readonly/readonly-form-field.module.js +1 -1
- package/esm2015/lib/stepper/step-header/step-header.component.js +3 -3
- package/esm2015/lib/stepper/stepper.component.js +2 -2
- package/esm2015/lib/stepper/stepper.module.js +1 -1
- package/esm2015/lib/table/column-header.js +1 -1
- package/esm2015/lib/table/table.component.js +7 -7
- package/esm2015/lib/throttle-click/throttle-click.directive.js +6 -7
- package/esm2015/lib/toolbar/toolbar-action.interface.js +1 -1
- package/esm2015/lib/toolbar/toolbar.component.js +7 -4
- package/esm2015/lib/toolbar/toolbar.module.js +2 -2
- package/esm2015/lib/toolbar/toolbar.service.js +7 -7
- package/esm2015/porscheinformatik-material-addons.js +15 -14
- package/fesm2015/porscheinformatik-material-addons.js +407 -153
- package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
- package/lib/button/mad-basic-button.d.ts +4 -4
- package/lib/content-panel/content-header/content-header.component.d.ts +1 -4
- package/lib/content-panel/content-panel-container/content-panel-container.component.d.ts +1 -4
- package/lib/content-panel/content-panel-container-content/content-panel-container-content.component.d.ts +1 -4
- package/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.d.ts +1 -4
- package/lib/content-panel/main-container/main-container.component.d.ts +1 -4
- package/lib/data-table/data-table-action.d.ts +1 -1
- package/lib/data-table/data-table-column-definition.d.ts +26 -0
- package/lib/data-table/{data-table-column-header.d.ts → data-table-column.d.ts} +3 -1
- package/lib/data-table/data-table-columns-modal/data-table-columns-modal.component.d.ts +23 -0
- package/lib/data-table/data-table.component.d.ts +68 -20
- package/lib/data-table/data-table.d.ts +2 -1
- package/lib/flowbar/flowbar.component.d.ts +3 -3
- package/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.d.ts +11 -11
- package/lib/stepper/step-header/step-header.component.d.ts +2 -2
- package/lib/table/column-header.d.ts +1 -0
- package/lib/table/table.component.d.ts +4 -4
- package/lib/throttle-click/throttle-click.directive.d.ts +1 -2
- package/lib/toolbar/toolbar-action.interface.d.ts +2 -1
- package/lib/toolbar/toolbar.component.d.ts +1 -0
- package/lib/toolbar/toolbar.service.d.ts +2 -2
- package/package.json +1 -1
- package/porscheinformatik-material-addons.d.ts +15 -13
- package/porscheinformatik-material-addons.metadata.json +1 -1
- package/themes/common/styles.scss +6 -0
- package/esm2015/lib/data-table/data-table-column-header.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ElementRef
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
2
|
export declare class MadBasicButton {
|
|
3
3
|
button: ElementRef;
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
disableClick: (e: Event) => void;
|
|
6
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
7
|
-
disableButton(): void;
|
|
8
5
|
get pointerEvent(): string;
|
|
9
6
|
get opacity(): string;
|
|
7
|
+
disableClick: (e: Event) => any;
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
disableButton(): void;
|
|
10
10
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DataTableColumn } from './data-table-column';
|
|
2
|
+
export interface DataTableColumnDefinition {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
displayedColumns: DataTableColumn[];
|
|
7
|
+
}
|
|
8
|
+
export interface DataTableColumnDefinitionChange {
|
|
9
|
+
action: string;
|
|
10
|
+
definition: DataTableColumnDefinition;
|
|
11
|
+
}
|
|
12
|
+
export interface DataTableDialogData {
|
|
13
|
+
allColumns: DataTableColumn[];
|
|
14
|
+
definition: DataTableColumnDefinition;
|
|
15
|
+
deleteDefinitionAllowed: boolean;
|
|
16
|
+
filterColumnsLabel: string;
|
|
17
|
+
filterColumnsPlaceHolder: string;
|
|
18
|
+
noDataText: string;
|
|
19
|
+
titleLabel: string;
|
|
20
|
+
selectedLabel: string;
|
|
21
|
+
availableLabel: string;
|
|
22
|
+
saveLabel: string;
|
|
23
|
+
deleteLabel: string;
|
|
24
|
+
cancelLabel: string;
|
|
25
|
+
infoTextLabel: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { DataTableColumn } from '../data-table-column';
|
|
4
|
+
import { DataTableColumnDefinition, DataTableDialogData } from '../data-table-column-definition';
|
|
5
|
+
import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
|
6
|
+
export declare class DataTableColumnsModalComponent implements OnInit {
|
|
7
|
+
dialogRef: MatDialogRef<DataTableColumnsModalComponent>;
|
|
8
|
+
data: DataTableDialogData;
|
|
9
|
+
definition: DataTableColumnDefinition;
|
|
10
|
+
searchFilter: string;
|
|
11
|
+
selectedColumns: DataTableColumn[];
|
|
12
|
+
availableColumns: DataTableColumn[];
|
|
13
|
+
filteredAvailableColumns: DataTableColumn[];
|
|
14
|
+
constructor(dialogRef: MatDialogRef<DataTableColumnsModalComponent>, data: DataTableDialogData);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onDrop(event: CdkDragDrop<DataTableColumn[]>): void;
|
|
17
|
+
onSave(): void;
|
|
18
|
+
onDelete(): void;
|
|
19
|
+
onCancel(): void;
|
|
20
|
+
updateFilterValue(): void;
|
|
21
|
+
findMatchingItemIndex(previousContainer: CdkDropList, item: CdkDrag): number;
|
|
22
|
+
clearFilterValue(): void;
|
|
23
|
+
}
|
|
@@ -1,35 +1,60 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, OnInit } from
|
|
2
|
-
import { MatTableDataSource } from
|
|
3
|
-
import { MatPaginator } from
|
|
4
|
-
import { MatSort, Sort } from
|
|
5
|
-
import {
|
|
6
|
-
import { DataTableAction } from
|
|
7
|
-
import { SelectionModel } from
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
3
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
4
|
+
import { MatSort, Sort } from '@angular/material/sort';
|
|
5
|
+
import { DataTableColumn } from './data-table-column';
|
|
6
|
+
import { DataTableAction } from './data-table-action';
|
|
7
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
8
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
9
|
+
import { DataTableColumnDefinition, DataTableColumnDefinitionChange } from './data-table-column-definition';
|
|
8
10
|
export declare class DataTableComponent implements OnInit, AfterViewInit {
|
|
9
|
-
|
|
10
|
-
readonly SINGLE: string;
|
|
11
|
-
readonly BATCH: string;
|
|
12
|
-
readonly NONE: string;
|
|
13
|
-
columns: DataTableColumnHeader[];
|
|
11
|
+
private matDialog;
|
|
14
12
|
filterLabel: string;
|
|
15
13
|
filterPlaceholder: string;
|
|
14
|
+
filterColumnsLabel: string;
|
|
15
|
+
filterColumnsPlaceHolder: string;
|
|
16
16
|
noDataText: string;
|
|
17
|
+
columnSettingsModalTitleLabel: string;
|
|
18
|
+
selectedLabel: string;
|
|
19
|
+
availableLabel: string;
|
|
20
|
+
saveLabel: string;
|
|
21
|
+
deleteLabel: string;
|
|
22
|
+
cancelLabel: string;
|
|
23
|
+
infoTextLabel: string;
|
|
24
|
+
tableClass: string;
|
|
17
25
|
pageSizeOptions: number[];
|
|
18
|
-
|
|
26
|
+
externalFilter: any;
|
|
19
27
|
actions: DataTableAction[];
|
|
20
28
|
idGenerator: any;
|
|
29
|
+
deleteDefinitionAllowed: boolean;
|
|
30
|
+
useAsync: boolean;
|
|
31
|
+
set displayedColumns(cols: DataTableColumn[]);
|
|
32
|
+
set displayedColumnDefinition(def: DataTableColumnDefinition);
|
|
21
33
|
set tableData(data: any[]);
|
|
34
|
+
set page(page: PageEvent);
|
|
35
|
+
set columnDefinitions(definitions: DataTableColumnDefinition[]);
|
|
22
36
|
set loading(isLoading: boolean);
|
|
37
|
+
set defaultPageSize(defaultSize: number);
|
|
38
|
+
set externalPaginator(paginator: any);
|
|
23
39
|
set paginationEnabled(isPaginationEnabled: boolean);
|
|
40
|
+
set allColumns(allColumns: DataTableColumn[]);
|
|
24
41
|
set filterEnabled(isFilterEnabled: boolean);
|
|
25
42
|
set forceMode(mode: string);
|
|
26
43
|
sortEvent: EventEmitter<Sort>;
|
|
27
44
|
actionEvent: EventEmitter<DataTableAction>;
|
|
28
|
-
|
|
45
|
+
pageEvent: EventEmitter<PageEvent>;
|
|
46
|
+
allColumnsEvent: EventEmitter<void>;
|
|
47
|
+
columnDefinitionChangeEvent: EventEmitter<DataTableColumnDefinitionChange>;
|
|
48
|
+
viewDefinitionChangeEvent: EventEmitter<DataTableColumnDefinition>;
|
|
29
49
|
paginator: MatPaginator;
|
|
30
50
|
sort: MatSort;
|
|
51
|
+
readonly ACTION_COLUMN_NAME = "__action__";
|
|
52
|
+
readonly SINGLE: string;
|
|
53
|
+
readonly BATCH: string;
|
|
54
|
+
readonly NONE: string;
|
|
31
55
|
tableActions: DataTableAction[];
|
|
32
56
|
rowActions: DataTableAction[];
|
|
57
|
+
columns: DataTableColumn[];
|
|
33
58
|
allSelected: boolean;
|
|
34
59
|
selected: [];
|
|
35
60
|
_forceMode: string;
|
|
@@ -37,17 +62,40 @@ export declare class DataTableComponent implements OnInit, AfterViewInit {
|
|
|
37
62
|
actualDataMap: Map<string, any>;
|
|
38
63
|
dataSource: MatTableDataSource<any[]>;
|
|
39
64
|
selectionModel: SelectionModel<string>;
|
|
40
|
-
|
|
65
|
+
columnIds: string[];
|
|
66
|
+
allColumnDefinitions: DataTableColumnDefinition[];
|
|
67
|
+
editableColumnDefinitions: DataTableColumnDefinition[];
|
|
68
|
+
viewableColumnDefinitions: DataTableColumnDefinition[];
|
|
69
|
+
selectedColumnDefinion: DataTableColumnDefinition;
|
|
70
|
+
allAvailableColumns: DataTableColumn[];
|
|
71
|
+
selectedDefinition: DataTableColumnDefinition;
|
|
41
72
|
defaultAction: DataTableAction;
|
|
42
73
|
isFilterEnabled: boolean;
|
|
43
74
|
isPaginationEnabled: boolean;
|
|
44
75
|
mode: string;
|
|
45
76
|
isRowClickable: boolean;
|
|
77
|
+
showColumnModal: boolean;
|
|
46
78
|
isLoading: boolean;
|
|
79
|
+
extPaginator: MatPaginator;
|
|
80
|
+
paginatorLength: number;
|
|
81
|
+
paginatorPageIndex: number;
|
|
82
|
+
paginatorPageSize: number;
|
|
83
|
+
constructor(matDialog: MatDialog);
|
|
84
|
+
static compare(a: Record<string, any>, b: Record<string, any>, sort: Sort): number;
|
|
85
|
+
static compareNumber(x: number, y: number, ascending: boolean): number;
|
|
86
|
+
static compareString(x: string, y: string, ascending: boolean): number;
|
|
87
|
+
static compareBoolean(x: boolean, y: boolean, ascending: boolean): number;
|
|
88
|
+
static transformData(value: any, transformer: any, transformerParams: any): any;
|
|
89
|
+
static generateRowId(): string;
|
|
90
|
+
static isClickOnRowMenuIcon(event: MouseEvent): boolean;
|
|
47
91
|
ngOnInit(): void;
|
|
48
92
|
ngAfterViewInit(): void;
|
|
93
|
+
onColumnSettings(definition?: DataTableColumnDefinition): void;
|
|
94
|
+
onViewDefinition(definition: DataTableColumnDefinition): void;
|
|
95
|
+
isCurrentDefinition(definition: DataTableColumnDefinition): boolean;
|
|
49
96
|
get selectedCount(): number;
|
|
50
97
|
get rowCount(): number;
|
|
98
|
+
getAllDataSourceRowsOfCurrentPage(): any[];
|
|
51
99
|
getSelectedCount(actionType: string): string;
|
|
52
100
|
isDisabled(actionType: string): boolean;
|
|
53
101
|
onToggleSelectAll(): void;
|
|
@@ -55,15 +103,15 @@ export declare class DataTableComponent implements OnInit, AfterViewInit {
|
|
|
55
103
|
setFilterValue(value: string): void;
|
|
56
104
|
onRowCheckbox(event: MouseEvent, row: any): void;
|
|
57
105
|
onRowEvent(event: MouseEvent, row: any, action?: DataTableAction): void;
|
|
58
|
-
onSortingEvent(
|
|
59
|
-
|
|
106
|
+
onSortingEvent(sort: Sort): void;
|
|
107
|
+
onPageEvent(event: PageEvent): void;
|
|
60
108
|
onTableAction(tableAction: DataTableAction): void;
|
|
61
|
-
private static transformData;
|
|
62
|
-
private static generateRowId;
|
|
63
|
-
private static isClickOnRowMenuIcon;
|
|
64
109
|
private emitTableAction;
|
|
65
110
|
private generateDisplayedDataElement;
|
|
111
|
+
private internalSort;
|
|
66
112
|
private setActions;
|
|
67
113
|
private createDataMapsAndSetDisplayedDataSourceData;
|
|
114
|
+
private openColumnModal;
|
|
68
115
|
private getTableMode;
|
|
116
|
+
private unsetPageSizeIfNecessary;
|
|
69
117
|
}
|
|
@@ -6,7 +6,6 @@ export interface IStep {
|
|
|
6
6
|
activeSubStep?: IStep;
|
|
7
7
|
}
|
|
8
8
|
export declare class FlowbarComponent implements OnInit, AfterViewInit {
|
|
9
|
-
private stepper;
|
|
10
9
|
_steps: IStep[];
|
|
11
10
|
_activeStep: IStep;
|
|
12
11
|
_activeStepChange: EventEmitter<IStep>;
|
|
@@ -16,6 +15,9 @@ export declare class FlowbarComponent implements OnInit, AfterViewInit {
|
|
|
16
15
|
* e.g. {@see changeActiveStepOnHeader}
|
|
17
16
|
*/
|
|
18
17
|
_headerClick: EventEmitter<IStep>;
|
|
18
|
+
private stepper;
|
|
19
|
+
get currentStepLabel(): string;
|
|
20
|
+
get currentSubStepLabel(): string;
|
|
19
21
|
ngOnInit(): void;
|
|
20
22
|
ngAfterViewInit(): void;
|
|
21
23
|
getIndexForActiveStep(): number;
|
|
@@ -31,8 +33,6 @@ export declare class FlowbarComponent implements OnInit, AfterViewInit {
|
|
|
31
33
|
getCurrentSubStepIndex(): number;
|
|
32
34
|
triggerClick(): void;
|
|
33
35
|
headerClick(event: any, step: IStep): void;
|
|
34
|
-
get currentStepLabel(): string;
|
|
35
|
-
get currentSubStepLabel(): string;
|
|
36
36
|
private activeTabHasSubSteps;
|
|
37
37
|
private isFirstSubStep;
|
|
38
38
|
private isLastSubStep;
|
|
@@ -7,6 +7,8 @@ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, OnChang
|
|
|
7
7
|
export declare class ReadOnlyFormFieldWrapperComponent implements OnInit, AfterViewInit, OnChanges, AfterViewChecked {
|
|
8
8
|
private changeDetector;
|
|
9
9
|
private elementRef;
|
|
10
|
+
originalContent: ElementRef;
|
|
11
|
+
readOnlyContentWrapper: ElementRef;
|
|
10
12
|
/**
|
|
11
13
|
* If set to "false", the contained mat-form-field is rendered in all it's glory.
|
|
12
14
|
* If set to "true", a readonly representation of the value is shown using the mat-form-fields label.
|
|
@@ -17,12 +19,6 @@ export declare class ReadOnlyFormFieldWrapperComponent implements OnInit, AfterV
|
|
|
17
19
|
* binding and formatting of readOnly representation!
|
|
18
20
|
*/
|
|
19
21
|
value: any;
|
|
20
|
-
/**
|
|
21
|
-
* Automatically taken from the contained <mat-label>
|
|
22
|
-
*/
|
|
23
|
-
label: string;
|
|
24
|
-
originalContent: ElementRef;
|
|
25
|
-
readOnlyContentWrapper: ElementRef;
|
|
26
22
|
textAlign: 'right' | 'left';
|
|
27
23
|
formatNumber: boolean;
|
|
28
24
|
decimalPlaces: number;
|
|
@@ -42,12 +38,16 @@ export declare class ReadOnlyFormFieldWrapperComponent implements OnInit, AfterV
|
|
|
42
38
|
*/
|
|
43
39
|
rows: number;
|
|
44
40
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
* If shrinkIfEmpty is set to "false", nothing changes
|
|
42
|
+
* If set to "true" and multiline is also "true", the textarea will
|
|
43
|
+
* shrink to one row, if value is empty/null/undefined.
|
|
44
|
+
* Otherwise, the defined rows-value will be used
|
|
45
|
+
*/
|
|
50
46
|
shrinkIfEmpty: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Automatically taken from the contained <mat-label>
|
|
49
|
+
*/
|
|
50
|
+
label: string;
|
|
51
51
|
toolTipForInputEnabled: boolean;
|
|
52
52
|
toolTipText: string;
|
|
53
53
|
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CdkStepHeader, StepState } from '@angular/cdk/stepper';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
3
3
|
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
4
|
-
export declare class StepHeaderComponent extends CdkStepHeader {
|
|
4
|
+
export declare class StepHeaderComponent extends CdkStepHeader implements AfterViewInit, OnDestroy {
|
|
5
5
|
private _focusMonitor;
|
|
6
6
|
index: number;
|
|
7
7
|
label: string;
|
|
@@ -5,7 +5,6 @@ import { MatSort, Sort } from '@angular/material/sort';
|
|
|
5
5
|
import { ColumnHeader } from './column-header';
|
|
6
6
|
import { TableAction } from './table-action';
|
|
7
7
|
export declare class TableComponent implements OnInit, AfterViewInit {
|
|
8
|
-
readonly ACTION_COLUMN_NAME = "__action__";
|
|
9
8
|
columns: ColumnHeader[];
|
|
10
9
|
filterLabel: string;
|
|
11
10
|
filterPlaceholder: string;
|
|
@@ -14,20 +13,21 @@ export declare class TableComponent implements OnInit, AfterViewInit {
|
|
|
14
13
|
defaultPageSize: number;
|
|
15
14
|
rowActions: TableAction[];
|
|
16
15
|
tableActions: TableAction[];
|
|
17
|
-
set displayedData(data: any[]);
|
|
18
|
-
set paginationEnabled(isPaginationEnabled: boolean);
|
|
19
|
-
set filterEnabled(isFilterEnabled: boolean);
|
|
20
16
|
tableAction: EventEmitter<TableAction>;
|
|
21
17
|
rowAction: EventEmitter<TableAction>;
|
|
22
18
|
sortEvent: EventEmitter<Sort>;
|
|
23
19
|
paginator: MatPaginator;
|
|
24
20
|
sort: MatSort;
|
|
21
|
+
readonly ACTION_COLUMN_NAME = "__action__";
|
|
25
22
|
dataSource: MatTableDataSource<any[]>;
|
|
26
23
|
columnNames: string[];
|
|
27
24
|
isRowClickable: boolean;
|
|
28
25
|
defaultAction: TableAction;
|
|
29
26
|
isFilterEnabled: boolean;
|
|
30
27
|
isPaginationEnabled: boolean;
|
|
28
|
+
set displayedData(data: any[]);
|
|
29
|
+
set paginationEnabled(isPaginationEnabled: boolean);
|
|
30
|
+
set filterEnabled(isFilterEnabled: boolean);
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
ngAfterViewInit(): void;
|
|
33
33
|
onFilter(value: string): void;
|
|
@@ -4,8 +4,7 @@ export declare class ThrottleClickDirective implements OnInit, OnDestroy {
|
|
|
4
4
|
throttleClick: EventEmitter<any>;
|
|
5
5
|
private clicks;
|
|
6
6
|
private subscription;
|
|
7
|
-
|
|
7
|
+
clickEvent(event: any): void;
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
ngOnDestroy(): void;
|
|
10
|
-
clickEvent(event: any): void;
|
|
11
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ThemePalette } from
|
|
2
|
+
import { ThemePalette } from '@angular/material/core';
|
|
3
3
|
export interface Action {
|
|
4
4
|
matIcon: string;
|
|
5
5
|
i18nActionKey: string;
|
|
@@ -21,5 +21,6 @@ export interface ToolbarActionBadge {
|
|
|
21
21
|
}
|
|
22
22
|
export interface ToolbarAction extends Action {
|
|
23
23
|
action: () => any;
|
|
24
|
+
importantAction?: boolean;
|
|
24
25
|
badge?: ToolbarActionBadge;
|
|
25
26
|
}
|
|
@@ -16,11 +16,11 @@ export declare class ToolbarService implements OnDestroy {
|
|
|
16
16
|
private toolbarActionsMenuTitle;
|
|
17
17
|
private currentUrl;
|
|
18
18
|
constructor(router: Router, translate: TranslateService);
|
|
19
|
+
get toolbarTitle(): string;
|
|
20
|
+
set toolbarTitle(toolbarTitle: string);
|
|
19
21
|
ngOnDestroy(): void;
|
|
20
22
|
getToolbarActions(): ToolbarAction[];
|
|
21
23
|
addToolbarAction(action: ToolbarAction): void;
|
|
22
|
-
set toolbarTitle(toolbarTitle: string);
|
|
23
|
-
get toolbarTitle(): string;
|
|
24
24
|
setDataTitle(dataTitle: string): void;
|
|
25
25
|
setToolbarActionsAlwaysAsMenu(toolbarActionsAlwaysAsMenu: boolean): void;
|
|
26
26
|
getToolbarActionsAlwaysAsMenu(): boolean;
|
package/package.json
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export { DangerButtonComponent as
|
|
6
|
-
export { LinkButtonComponent as
|
|
7
|
-
export { IconButtonComponent as
|
|
8
|
-
export { MadBasicButton as
|
|
9
|
-
export { OutlineButtonComponent as
|
|
10
|
-
export { PrimaryButtonComponent as
|
|
11
|
-
export { CardComponent as
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
5
|
+
export { DangerButtonComponent as ɵf } from './lib/button/danger-button/danger-button.component';
|
|
6
|
+
export { LinkButtonComponent as ɵe } from './lib/button/flat-button/link-button.component';
|
|
7
|
+
export { IconButtonComponent as ɵg } from './lib/button/icon-button/icon-button.component';
|
|
8
|
+
export { MadBasicButton as ɵc } from './lib/button/mad-basic-button';
|
|
9
|
+
export { OutlineButtonComponent as ɵd } from './lib/button/outline-button/outline-button.component';
|
|
10
|
+
export { PrimaryButtonComponent as ɵb } from './lib/button/primary-button/primary-button.component';
|
|
11
|
+
export { CardComponent as ɵi } from './lib/card/card.component';
|
|
12
|
+
export { DataTableDialogData as ɵa } from './lib/data-table/data-table-column-definition';
|
|
13
|
+
export { DataTableColumnsModalComponent as ɵo } from './lib/data-table/data-table-columns-modal/data-table-columns-modal.component';
|
|
14
|
+
export { DataTableComponent as ɵn } from './lib/data-table/data-table.component';
|
|
15
|
+
export { NumericFieldDirective as ɵh } from './lib/numeric-field/numeric-field.directive';
|
|
16
|
+
export { BaseQuickListComponent as ɵk } from './lib/quick-list/base-quick-list.component';
|
|
17
|
+
export { QuickListCompactComponent as ɵl } from './lib/quick-list/quick-list-compact/quick-list-compact.component';
|
|
18
|
+
export { QuickListComponent as ɵj } from './lib/quick-list/quick-list.component';
|
|
19
|
+
export { TableComponent as ɵm } from './lib/table/table.component';
|