@porscheinformatik/material-addons 10.2.1 → 10.2.4
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 +479 -12
- 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/content-panel/content-header/content-header.component.js +15 -0
- package/esm2015/lib/content-panel/content-panel-container/content-panel-container.component.js +15 -0
- package/esm2015/lib/content-panel/content-panel-container-content/content-panel-container-content.component.js +15 -0
- package/esm2015/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.js +15 -0
- package/esm2015/lib/content-panel/content-panel.module.js +29 -0
- package/esm2015/lib/content-panel/main-container/main-container.component.js +15 -0
- package/esm2015/lib/data-table/data-table-action.js +1 -0
- package/esm2015/lib/data-table/data-table-column-header.js +1 -0
- package/esm2015/lib/data-table/data-table.component.js +103 -0
- package/esm2015/lib/data-table/data-table.js +1 -0
- package/esm2015/lib/data-table/data-table.module.js +33 -0
- package/esm2015/lib/flowbar/flowbar.component.js +190 -0
- package/esm2015/lib/flowbar/flowbar.module.js +14 -0
- package/esm2015/lib/stepper/step-header/step-header.component.js +3 -3
- package/esm2015/lib/stepper/stepper.component.js +8 -6
- package/esm2015/lib/table/table.component.js +1 -1
- package/esm2015/lib/table/table.module.js +3 -3
- package/esm2015/porscheinformatik-material-addons.js +2 -1
- package/esm2015/public-api.js +11 -1
- package/fesm2015/porscheinformatik-material-addons.js +422 -9
- package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
- package/lib/content-panel/content-header/content-header.component.d.ts +5 -0
- package/lib/content-panel/content-panel-container/content-panel-container.component.d.ts +5 -0
- package/lib/content-panel/content-panel-container-content/content-panel-container-content.component.d.ts +5 -0
- package/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.d.ts +5 -0
- package/lib/content-panel/content-panel.module.d.ts +2 -0
- package/lib/content-panel/main-container/main-container.component.d.ts +5 -0
- package/lib/data-table/data-table-action.d.ts +5 -0
- package/lib/data-table/data-table-column-header.d.ts +6 -0
- package/lib/data-table/data-table.component.d.ts +39 -0
- package/lib/data-table/data-table.d.ts +2 -0
- package/lib/data-table/data-table.module.d.ts +2 -0
- package/lib/flowbar/flowbar.component.d.ts +43 -0
- package/lib/flowbar/flowbar.module.d.ts +2 -0
- package/lib/stepper/stepper.component.d.ts +1 -1
- package/package.json +1 -1
- package/porscheinformatik-material-addons.d.ts +1 -0
- package/porscheinformatik-material-addons.metadata.json +1 -1
- package/public-api.d.ts +10 -0
- package/themes/common/styles.scss +2 -2
- package/themes/pbv.scss +2 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
3
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
4
|
+
import { MatSort, Sort } from '@angular/material/sort';
|
|
5
|
+
import { DataTableColumnHeader } from './data-table-column-header';
|
|
6
|
+
import { DataTableAction } from './data-table-action';
|
|
7
|
+
export declare class DataTableComponent implements OnInit, AfterViewInit {
|
|
8
|
+
readonly ACTION_COLUMN_NAME = "__action__";
|
|
9
|
+
columns: DataTableColumnHeader[];
|
|
10
|
+
filterLabel: string;
|
|
11
|
+
filterPlaceholder: string;
|
|
12
|
+
noDataText: string;
|
|
13
|
+
pageSizeOptions: number[];
|
|
14
|
+
defaultPageSize: number;
|
|
15
|
+
rowActions: DataTableAction[];
|
|
16
|
+
tableActions: DataTableAction[];
|
|
17
|
+
set displayedData(data: any[]);
|
|
18
|
+
set paginationEnabled(isPaginationEnabled: boolean);
|
|
19
|
+
set filterEnabled(isFilterEnabled: boolean);
|
|
20
|
+
tableAction: EventEmitter<DataTableAction>;
|
|
21
|
+
rowAction: EventEmitter<DataTableAction>;
|
|
22
|
+
sortEvent: EventEmitter<Sort>;
|
|
23
|
+
paginator: MatPaginator;
|
|
24
|
+
sort: MatSort;
|
|
25
|
+
dataSource: MatTableDataSource<any[]>;
|
|
26
|
+
columnNames: string[];
|
|
27
|
+
isRowClickable: boolean;
|
|
28
|
+
defaultAction: DataTableAction;
|
|
29
|
+
isFilterEnabled: boolean;
|
|
30
|
+
isPaginationEnabled: boolean;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
onFilter(value: string): void;
|
|
34
|
+
onRowEvent(event: MouseEvent, row: any, action?: DataTableAction): void;
|
|
35
|
+
onSortingEvent(sortingParams: Sort): void;
|
|
36
|
+
onTableAction(tableAction: DataTableAction): void;
|
|
37
|
+
private setFilterValue;
|
|
38
|
+
private isClickOnRowMenuIcon;
|
|
39
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
export interface IStep {
|
|
3
|
+
label: string;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
subSteps?: IStep[];
|
|
6
|
+
activeSubStep?: IStep;
|
|
7
|
+
}
|
|
8
|
+
export declare class FlowbarComponent implements OnInit, AfterViewInit {
|
|
9
|
+
private stepper;
|
|
10
|
+
_steps: IStep[];
|
|
11
|
+
_activeStep: IStep;
|
|
12
|
+
_activeStepChange: EventEmitter<IStep>;
|
|
13
|
+
/**
|
|
14
|
+
* Event emitted when a step header is clicked.
|
|
15
|
+
* When defined header navigation has to be implemented programmatically.
|
|
16
|
+
* e.g. {@see changeActiveStepOnHeader}
|
|
17
|
+
*/
|
|
18
|
+
_headerClick: EventEmitter<IStep>;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
getIndexForActiveStep(): number;
|
|
22
|
+
changeActiveStep(step: IStep): void;
|
|
23
|
+
changeActiveStepOnHeader(step: IStep): void;
|
|
24
|
+
changeActiveSubStep(subStep: IStep): void;
|
|
25
|
+
previous(): void;
|
|
26
|
+
next(): void;
|
|
27
|
+
isPreviousAvailable(): boolean;
|
|
28
|
+
isNextAvailable(): boolean;
|
|
29
|
+
isLastStep(): boolean;
|
|
30
|
+
getCurrentIndex(): number;
|
|
31
|
+
getCurrentSubStepIndex(): number;
|
|
32
|
+
triggerClick(): void;
|
|
33
|
+
headerClick(event: any, step: IStep): void;
|
|
34
|
+
get currentStepLabel(): string;
|
|
35
|
+
get currentSubStepLabel(): string;
|
|
36
|
+
private activeTabHasSubSteps;
|
|
37
|
+
private isFirstSubStep;
|
|
38
|
+
private isLastSubStep;
|
|
39
|
+
private isAnyPreviousStepEnabled;
|
|
40
|
+
private isAnyFollowingStepEnabled;
|
|
41
|
+
private findPreviousEnabledStep;
|
|
42
|
+
private findNextEnabledStep;
|
|
43
|
+
}
|
|
@@ -18,7 +18,7 @@ export declare class StepComponent extends CdkStep implements AfterContentInit,
|
|
|
18
18
|
constructor(stepper: StepperComponent, _viewContainerRef: ViewContainerRef);
|
|
19
19
|
ngAfterContentInit(): void;
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
|
-
next(): void;
|
|
21
|
+
next(markFormAsTouched?: boolean): void;
|
|
22
22
|
selectAndMarkAsTouched(index: number): void;
|
|
23
23
|
completeLast(): void;
|
|
24
24
|
resetValidations(): void;
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ export { MadBasicButton as ɵb } from './lib/button/mad-basic-button';
|
|
|
9
9
|
export { OutlineButtonComponent as ɵc } from './lib/button/outline-button/outline-button.component';
|
|
10
10
|
export { PrimaryButtonComponent as ɵa } from './lib/button/primary-button/primary-button.component';
|
|
11
11
|
export { CardComponent as ɵh } from './lib/card/card.component';
|
|
12
|
+
export { DataTableComponent as ɵm } from './lib/data-table/data-table.component';
|
|
12
13
|
export { NumericFieldDirective as ɵg } from './lib/numeric-field/numeric-field.directive';
|
|
13
14
|
export { BaseQuickListComponent as ɵj } from './lib/quick-list/base-quick-list.component';
|
|
14
15
|
export { QuickListCompactComponent as ɵk } from './lib/quick-list/quick-list-compact/quick-list-compact.component';
|