@porscheinformatik/material-addons 10.1.9 → 10.2.3

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.
Files changed (61) hide show
  1. package/bundles/porscheinformatik-material-addons.umd.js +856 -52
  2. package/bundles/porscheinformatik-material-addons.umd.js.map +1 -1
  3. package/bundles/porscheinformatik-material-addons.umd.min.js +2 -2
  4. package/bundles/porscheinformatik-material-addons.umd.min.js.map +1 -1
  5. package/esm2015/lib/card/card.component.js +19 -5
  6. package/esm2015/lib/content-panel/content-header/content-header.component.js +15 -0
  7. package/esm2015/lib/content-panel/content-panel-container/content-panel-container.component.js +15 -0
  8. package/esm2015/lib/content-panel/content-panel-container-content/content-panel-container-content.component.js +15 -0
  9. package/esm2015/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.js +15 -0
  10. package/esm2015/lib/content-panel/content-panel.module.js +29 -0
  11. package/esm2015/lib/content-panel/main-container/main-container.component.js +15 -0
  12. package/esm2015/lib/data-table/data-table-action.js +1 -0
  13. package/esm2015/lib/data-table/data-table-column-header.js +1 -0
  14. package/esm2015/lib/data-table/data-table.component.js +103 -0
  15. package/esm2015/lib/data-table/data-table.js +1 -0
  16. package/esm2015/lib/data-table/data-table.module.js +33 -0
  17. package/esm2015/lib/flowbar/flowbar.component.js +186 -0
  18. package/esm2015/lib/flowbar/flowbar.module.js +14 -0
  19. package/esm2015/lib/material-addons.module.js +3 -3
  20. package/esm2015/lib/numeric-field/numeric-field.directive.js +4 -2
  21. package/esm2015/lib/quick-list/base-quick-list.component.js +89 -0
  22. package/esm2015/lib/quick-list/quick-list-compact/quick-list-compact.component.js +18 -0
  23. package/esm2015/lib/quick-list/quick-list.component.js +6 -77
  24. package/esm2015/lib/quick-list/quick-list.module.js +6 -4
  25. package/esm2015/lib/stepper/mad-stepper-animation.js +13 -0
  26. package/esm2015/lib/stepper/step-header/step-header.component.js +75 -0
  27. package/esm2015/lib/stepper/stepper.component.js +167 -0
  28. package/esm2015/lib/stepper/stepper.module.js +18 -0
  29. package/esm2015/lib/table/table.component.js +1 -1
  30. package/esm2015/lib/table/table.module.js +3 -3
  31. package/esm2015/porscheinformatik-material-addons.js +5 -2
  32. package/esm2015/public-api.js +15 -1
  33. package/fesm2015/porscheinformatik-material-addons.js +737 -25
  34. package/fesm2015/porscheinformatik-material-addons.js.map +1 -1
  35. package/lib/card/card.component.d.ts +4 -0
  36. package/lib/content-panel/content-header/content-header.component.d.ts +5 -0
  37. package/lib/content-panel/content-panel-container/content-panel-container.component.d.ts +5 -0
  38. package/lib/content-panel/content-panel-container-content/content-panel-container-content.component.d.ts +5 -0
  39. package/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.d.ts +5 -0
  40. package/lib/content-panel/content-panel.module.d.ts +2 -0
  41. package/lib/content-panel/main-container/main-container.component.d.ts +5 -0
  42. package/lib/data-table/data-table-action.d.ts +5 -0
  43. package/lib/data-table/data-table-column-header.d.ts +6 -0
  44. package/lib/data-table/data-table.component.d.ts +39 -0
  45. package/lib/data-table/data-table.d.ts +2 -0
  46. package/lib/data-table/data-table.module.d.ts +2 -0
  47. package/lib/flowbar/flowbar.component.d.ts +42 -0
  48. package/lib/flowbar/flowbar.module.d.ts +2 -0
  49. package/lib/quick-list/base-quick-list.component.d.ts +29 -0
  50. package/lib/quick-list/quick-list-compact/quick-list-compact.component.d.ts +6 -0
  51. package/lib/quick-list/quick-list.component.d.ts +4 -27
  52. package/lib/stepper/mad-stepper-animation.d.ts +7 -0
  53. package/lib/stepper/step-header/step-header.component.d.ts +23 -0
  54. package/lib/stepper/stepper.component.d.ts +47 -0
  55. package/lib/stepper/stepper.module.d.ts +2 -0
  56. package/package.json +6 -6
  57. package/porscheinformatik-material-addons.d.ts +4 -1
  58. package/porscheinformatik-material-addons.metadata.json +1 -1
  59. package/public-api.d.ts +14 -0
  60. package/themes/common/styles.scss +2 -2
  61. package/themes/pbv.scss +2 -1
@@ -10,11 +10,15 @@ export declare class CardComponent {
10
10
  saveText: string;
11
11
  title: string;
12
12
  editMode: boolean;
13
+ additionalActionIcon: string;
14
+ additionalActionText: string;
13
15
  edit: EventEmitter<any>;
14
16
  cancel: EventEmitter<any>;
15
17
  save: EventEmitter<any>;
18
+ additionalAction: EventEmitter<any>;
16
19
  onCancel(): void;
17
20
  onEdit(): void;
18
21
  onSave(): void;
19
22
  toggleCollapse(): void;
23
+ additionalActionClicked(): void;
20
24
  }
@@ -0,0 +1,5 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class ContentHeaderComponent implements OnInit {
3
+ constructor();
4
+ ngOnInit(): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class ContentPanelContainerComponent implements OnInit {
3
+ constructor();
4
+ ngOnInit(): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class ContentPanelContainerContentComponent implements OnInit {
3
+ constructor();
4
+ ngOnInit(): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class ContentPanelContainerFooterComponent implements OnInit {
3
+ constructor();
4
+ ngOnInit(): void;
5
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ContentPanelModule {
2
+ }
@@ -0,0 +1,5 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class MainContainerComponent implements OnInit {
3
+ constructor();
4
+ ngOnInit(): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface DataTableAction {
2
+ label: string;
3
+ action: string;
4
+ outputRow?: any;
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface DataTableColumnHeader {
2
+ label: string;
3
+ isSortable?: boolean;
4
+ dataPropertyName: string;
5
+ isRightAligned?: boolean;
6
+ }
@@ -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,2 @@
1
+ export { DataTableColumnHeader } from './data-table-column-header';
2
+ export { DataTableAction } from './data-table-action';
@@ -0,0 +1,2 @@
1
+ export declare class DataTableModule {
2
+ }
@@ -0,0 +1,42 @@
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
+ changeActiveStep(step: IStep): void;
22
+ changeActiveStepOnHeader(step: IStep): void;
23
+ changeActiveSubStep(subStep: IStep): void;
24
+ previous(): void;
25
+ next(): void;
26
+ isPreviousAvailable(): boolean;
27
+ isNextAvailable(): boolean;
28
+ isLastStep(): boolean;
29
+ getCurrentIndex(): number;
30
+ getCurrentSubStepIndex(): number;
31
+ triggerClick(): void;
32
+ headerClick(event: any, step: IStep): void;
33
+ get currentStepLabel(): string;
34
+ get currentSubStepLabel(): string;
35
+ private activeTabHasSubSteps;
36
+ private isFirstSubStep;
37
+ private isLastSubStep;
38
+ private isAnyPreviousStepEnabled;
39
+ private isAnyFollowingStepEnabled;
40
+ private findPreviousEnabledStep;
41
+ private findNextEnabledStep;
42
+ }
@@ -0,0 +1,2 @@
1
+ export declare class FlowbarModule {
2
+ }
@@ -0,0 +1,29 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
2
+ export interface QuickListItem {
3
+ id: string;
4
+ }
5
+ export declare class BaseQuickListComponent<T> implements OnInit, AfterViewInit {
6
+ changeDetectorRef: ChangeDetectorRef;
7
+ allItems: T[];
8
+ addLabel: string;
9
+ addPossible: boolean;
10
+ blankItem: any;
11
+ readonly: boolean;
12
+ maxItems: number;
13
+ minItems: number;
14
+ added: EventEmitter<T>;
15
+ removed: EventEmitter<T>;
16
+ itemTemplate: TemplateRef<any>;
17
+ itemRows: QueryList<ElementRef>;
18
+ rowCountFocus: number;
19
+ addEventFunction: Function;
20
+ constructor(changeDetectorRef: ChangeDetectorRef);
21
+ ngOnInit(): void;
22
+ ngAfterViewInit(): void;
23
+ addItem(): void;
24
+ removeItem(item: T): void;
25
+ setFocusOnAdd(): void;
26
+ isAddAllowed(): boolean;
27
+ isDeleteAllowed(): boolean;
28
+ private interalAddItem;
29
+ }
@@ -0,0 +1,6 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { BaseQuickListComponent, QuickListItem } from '../base-quick-list.component';
3
+ export declare class QuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
4
+ changeDetectorRef: ChangeDetectorRef;
5
+ constructor(changeDetectorRef: ChangeDetectorRef);
6
+ }
@@ -1,29 +1,6 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core';
2
- export interface QuickListItem {
3
- id: string;
4
- }
5
- export declare class QuickListComponent<T extends QuickListItem> implements OnInit, AfterViewInit {
6
- private changeDetectorRef;
7
- allItems: T[];
8
- addLabel: string;
9
- addPossible: boolean;
10
- blankItem: any;
11
- readonly: string;
12
- maxItems: number;
13
- minItems: number;
14
- added: EventEmitter<T>;
15
- removed: EventEmitter<T>;
16
- itemTemplate: TemplateRef<any>;
17
- itemRows: QueryList<ElementRef>;
18
- rowCountFocus: number;
19
- addEventFunction: Function;
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { BaseQuickListComponent, QuickListItem } from './base-quick-list.component';
3
+ export declare class QuickListComponent extends BaseQuickListComponent<QuickListItem> {
4
+ changeDetectorRef: ChangeDetectorRef;
20
5
  constructor(changeDetectorRef: ChangeDetectorRef);
21
- ngOnInit(): void;
22
- ngAfterViewInit(): void;
23
- addItem(): void;
24
- removeItem(item: T): void;
25
- setFocusOnAdd(): void;
26
- isAddAllowed(): boolean;
27
- isDeleteAllowed(): boolean;
28
- private interalAddItem;
29
6
  }
@@ -0,0 +1,7 @@
1
+ import { AnimationTriggerMetadata } from '@angular/animations';
2
+ /**
3
+ * Animations used by the MAD stepper.
4
+ */
5
+ export declare const madStepperAnimations: {
6
+ readonly verticalStepTransition: AnimationTriggerMetadata;
7
+ };
@@ -0,0 +1,23 @@
1
+ import { CdkStepHeader, StepState } from '@angular/cdk/stepper';
2
+ import { ElementRef } from '@angular/core';
3
+ import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
4
+ export declare class StepHeaderComponent extends CdkStepHeader {
5
+ private _focusMonitor;
6
+ index: number;
7
+ label: string;
8
+ state: StepState;
9
+ errorMessage: string;
10
+ selected: boolean;
11
+ active: boolean;
12
+ optional: boolean;
13
+ hasError: boolean;
14
+ completed: boolean;
15
+ closed: boolean;
16
+ constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>);
17
+ ngAfterViewInit(): void;
18
+ ngOnDestroy(): void;
19
+ /** Focuses the step header. */
20
+ focus(origin?: FocusOrigin, options?: FocusOptions): void;
21
+ getCssForState(): string;
22
+ getIcon(): string;
23
+ }
@@ -0,0 +1,47 @@
1
+ import { Directionality } from '@angular/cdk/bidi';
2
+ import { CdkStep, CdkStepper, StepContentPositionState } from '@angular/cdk/stepper';
3
+ import { AnimationEvent } from '@angular/animations';
4
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
5
+ import { Subject } from 'rxjs';
6
+ import { StepHeaderComponent } from './step-header/step-header.component';
7
+ export declare class StepComponent extends CdkStep implements AfterContentInit, OnDestroy {
8
+ private stepper;
9
+ private _viewContainerRef;
10
+ /** Action event for the next button. If not set the StepComponent will handle the step navigation */
11
+ onNext: EventEmitter<any>;
12
+ /** Action event for the done button. If not set the StepComponent will handle the step navigation */
13
+ onDone: EventEmitter<any>;
14
+ /*** Action event when the header is clicked. If not set the StepComponent will handle the step navigation*/
15
+ onHeaderClick: EventEmitter<any>;
16
+ stepClosed: boolean;
17
+ private _isSelected;
18
+ constructor(stepper: StepperComponent, _viewContainerRef: ViewContainerRef);
19
+ ngAfterContentInit(): void;
20
+ ngOnDestroy(): void;
21
+ next(): void;
22
+ selectAndMarkAsTouched(index: number): void;
23
+ completeLast(): void;
24
+ resetValidations(): void;
25
+ private stepValidation;
26
+ }
27
+ export declare class StepperComponent extends CdkStepper implements OnInit, AfterContentInit {
28
+ /** Event emitted when the current step is done transitioning in. */
29
+ readonly animationDone: EventEmitter<void>;
30
+ nextButtonLabel: string;
31
+ doneButtonLabel: string;
32
+ /** Step headers of all steps inside the stepper */
33
+ _stepHeader: QueryList<StepHeaderComponent>;
34
+ /** Steps inside the Stepper */
35
+ _steps: QueryList<StepComponent>;
36
+ /** Steps that belong to the current stepper, excluding ones from nested steppers. */
37
+ steps: QueryList<StepComponent>;
38
+ readonly _animationDone: Subject<AnimationEvent>;
39
+ constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _document: any);
40
+ ngOnInit(): void;
41
+ ngAfterContentInit(): void;
42
+ /**
43
+ * Method patched to enable the closing of the last step.
44
+ */
45
+ _getAnimationDirection(index: number): StepContentPositionState;
46
+ _stepIsNavigable(index: number, step: StepComponent): boolean;
47
+ }
@@ -0,0 +1,2 @@
1
+ export declare class StepperModule {
2
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porscheinformatik/material-addons",
3
- "version": "10.1.9",
3
+ "version": "10.2.3",
4
4
  "description": "Custom theme and components for Angular Material",
5
5
  "homepage": "https://github.com/porscheinformatik/material-addons",
6
6
  "repository": {
@@ -40,11 +40,11 @@
40
40
  "tslib": "^2.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@angular/cdk": "^10.2.7",
44
- "@angular/material": "^10.2.7",
45
- "@angular/common": "^10.2.4",
46
- "@angular/core": "^10.2.4",
47
- "@ngx-translate/core": "^11.0.1"
43
+ "@angular/cdk": ">= 10.0.0",
44
+ "@angular/material": ">= 10.0.0",
45
+ "@angular/common": ">= 10.0.0",
46
+ "@angular/core": ">= 10.0.0",
47
+ "@ngx-translate/core": ">= 11.0.1"
48
48
  },
49
49
  "esm2015": "esm2015/porscheinformatik-material-addons.js",
50
50
  "fesm2015": "fesm2015/porscheinformatik-material-addons.js",
@@ -9,6 +9,9 @@ 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';
14
+ export { BaseQuickListComponent as ɵj } from './lib/quick-list/base-quick-list.component';
15
+ export { QuickListCompactComponent as ɵk } from './lib/quick-list/quick-list-compact/quick-list-compact.component';
13
16
  export { QuickListComponent as ɵi } from './lib/quick-list/quick-list.component';
14
- export { TableComponent as ɵj } from './lib/table/table.component';
17
+ export { TableComponent as ɵl } from './lib/table/table.component';