@porscheinformatik/material-addons 22.3.0 → 22.3.1

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.
@@ -123,37 +123,42 @@ class MadBasicButton {
123
123
  this.destroyRef.onDestroy(removeClickListener);
124
124
  }
125
125
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: MadBasicButton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
126
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: MadBasicButton, isStandalone: true, inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
126
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: MadBasicButton, isStandalone: true, inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.title": "null" } }, ngImport: i0 }); }
127
127
  }
128
128
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: MadBasicButton, decorators: [{
129
- type: Directive
129
+ type: Directive,
130
+ args: [{
131
+ host: {
132
+ '[attr.title]': 'null',
133
+ },
134
+ }]
130
135
  }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }] } });
131
136
 
132
137
  class DangerButtonComponent extends MadBasicButton {
133
138
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DangerButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
134
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DangerButtonComponent, isStandalone: true, selector: "mad-danger-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matButton=\"filled\" class=\"mad-danger\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
139
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DangerButtonComponent, isStandalone: true, selector: "mad-danger-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matButton=\"filled\" class=\"mad-danger\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
135
140
  }
136
141
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DangerButtonComponent, decorators: [{
137
142
  type: Component,
138
- args: [{ selector: 'mad-danger-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matButton=\"filled\" class=\"mad-danger\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n" }]
143
+ args: [{ selector: 'mad-danger-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matButton=\"filled\" class=\"mad-danger\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"] }]
139
144
  }] });
140
145
 
141
146
  class LinkButtonComponent extends MadBasicButton {
142
147
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: LinkButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
143
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: LinkButtonComponent, isStandalone: true, selector: "mad-link-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matButton=\"text\" class=\"mad-primary\" [title]=\"title()\" [type]=\"type()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
148
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: LinkButtonComponent, isStandalone: true, selector: "mad-link-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matButton=\"text\" class=\"mad-primary\" [title]=\"title()\" [type]=\"type()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
144
149
  }
145
150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: LinkButtonComponent, decorators: [{
146
151
  type: Component,
147
- args: [{ selector: 'mad-link-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matButton=\"text\" class=\"mad-primary\" [title]=\"title()\" [type]=\"type()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n" }]
152
+ args: [{ selector: 'mad-link-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matButton=\"text\" class=\"mad-primary\" [title]=\"title()\" [type]=\"type()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"] }]
148
153
  }] });
149
154
 
150
155
  class IconButtonComponent extends MadBasicButton {
151
156
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: IconButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
152
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: IconButtonComponent, isStandalone: true, selector: "mad-icon-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matIconButton class=\"mat-primary\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
157
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: IconButtonComponent, isStandalone: true, selector: "mad-icon-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matIconButton class=\"mat-primary\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
153
158
  }
154
159
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: IconButtonComponent, decorators: [{
155
160
  type: Component,
156
- args: [{ selector: 'mad-icon-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matIconButton class=\"mat-primary\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n" }]
161
+ args: [{ selector: 'mad-icon-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matIconButton class=\"mat-primary\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"] }]
157
162
  }] });
158
163
 
159
164
  class OutlineButtonComponent extends MadBasicButton {
@@ -163,20 +168,20 @@ class OutlineButtonComponent extends MadBasicButton {
163
168
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
164
169
  }
165
170
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OutlineButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
166
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: OutlineButtonComponent, isStandalone: true, selector: "mad-outline-button", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<button\n data-cy=\"button\"\n matButton=\"outlined\"\n class=\"mad-outline\"\n [class.mad-primary]=\"color() === 'primary'\"\n [class.mad-accent]=\"color() === 'accent'\"\n [class.mad-warn]=\"color() === 'warn'\"\n [type]=\"type()\"\n [title]=\"title()\"\n [disabled]=\"disabled()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: [".mat-mdc-outlined-button:not(:disabled){--mat-button-outlined-outline-color: var(--mat-button-outlined-label-text-color)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
171
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: OutlineButtonComponent, isStandalone: true, selector: "mad-outline-button", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<button\n data-cy=\"button\"\n matButton=\"outlined\"\n class=\"mad-outline\"\n [class.mad-primary]=\"color() === 'primary'\"\n [class.mad-accent]=\"color() === 'accent'\"\n [class.mad-warn]=\"color() === 'warn'\"\n [type]=\"type()\"\n [title]=\"title()\"\n [disabled]=\"disabled()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n", ".mat-mdc-outlined-button:not(:disabled){--mat-button-outlined-outline-color: var(--mat-button-outlined-label-text-color)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
167
172
  }
168
173
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: OutlineButtonComponent, decorators: [{
169
174
  type: Component,
170
- args: [{ selector: 'mad-outline-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n data-cy=\"button\"\n matButton=\"outlined\"\n class=\"mad-outline\"\n [class.mad-primary]=\"color() === 'primary'\"\n [class.mad-accent]=\"color() === 'accent'\"\n [class.mad-warn]=\"color() === 'warn'\"\n [type]=\"type()\"\n [title]=\"title()\"\n [disabled]=\"disabled()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: [".mat-mdc-outlined-button:not(:disabled){--mat-button-outlined-outline-color: var(--mat-button-outlined-label-text-color)}\n"] }]
175
+ args: [{ selector: 'mad-outline-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n data-cy=\"button\"\n matButton=\"outlined\"\n class=\"mad-outline\"\n [class.mad-primary]=\"color() === 'primary'\"\n [class.mad-accent]=\"color() === 'accent'\"\n [class.mad-warn]=\"color() === 'warn'\"\n [type]=\"type()\"\n [title]=\"title()\"\n [disabled]=\"disabled()\"\n>\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n", ".mat-mdc-outlined-button:not(:disabled){--mat-button-outlined-outline-color: var(--mat-button-outlined-label-text-color)}\n"] }]
171
176
  }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
172
177
 
173
178
  class PrimaryButtonComponent extends MadBasicButton {
174
179
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: PrimaryButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
175
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: PrimaryButtonComponent, isStandalone: true, selector: "mad-primary-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matButton=\"filled\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
180
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: PrimaryButtonComponent, isStandalone: true, selector: "mad-primary-button", usesInheritance: true, ngImport: i0, template: "<button data-cy=\"button\" matButton=\"filled\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
176
181
  }
177
182
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: PrimaryButtonComponent, decorators: [{
178
183
  type: Component,
179
- args: [{ selector: 'mad-primary-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matButton=\"filled\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n" }]
184
+ args: [{ selector: 'mad-primary-button', imports: [MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-cy=\"button\" matButton=\"filled\" [type]=\"type()\" [title]=\"title()\" [disabled]=\"disabled()\">\n <ng-content></ng-content>\n</button>\n", styles: [":host{display:inline-flex;width:fit-content}button{width:100%}\n"] }]
180
185
  }] });
181
186
 
182
187
  class MadButtonDirective {
@@ -4493,7 +4498,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
4493
4498
  args: [{ selector: 'mad-breadcrumb', imports: [RouterLink, IconButtonComponent, MatIcon, MatTooltip], template: "@if (breadcrumbs().length) {\n <div class=\"breadcrumb\">\n <nav data-cy=\"breadcrumb-nav\" class=\"breadcrumb__nav\">\n @for (crumb of breadcrumbs(); track crumb.label; let last = $last) {\n @if (crumb.route?.length) {\n <a data-cy=\"breadcrumb-link\" [routerLink]=\"crumb.route\" class=\"breadcrumb__link\">{{ crumb.label }}</a>\n } @else if (crumb.href?.length) {\n <a data-cy=\"breadcrumb-link\" [href]=\"crumb.href\" target=\"_blank\" class=\"breadcrumb__link\">{{ crumb.label }}</a>\n } @else {\n <span data-cy=\"breadcrumb-current\" class=\"breadcrumb__current\">{{ crumb.label }}</span>\n }\n @if (!last) {\n <span data-cy=\"breadcrumb-separator\" class=\"breadcrumb__separator\">/</span>\n }\n }\n </nav>\n @if (showCopy()) {\n <mad-icon-button\n data-cy=\"breadcrumb-copy\"\n class=\"breadcrumb__copy\"\n (click)=\"copy.emit()\"\n [matTooltip]=\"title()\"\n matTooltipPosition=\"above\"\n >\n <mat-icon>content_copy</mat-icon>\n </mad-icon-button>\n }\n </div>\n}\n", styles: [".breadcrumb{display:flex;align-items:center;gap:.5rem}.breadcrumb__nav{display:flex;align-items:center;gap:.625rem;min-height:3.5rem;padding-block:.25rem;font-size:.875rem;line-height:1.25rem}.breadcrumb__link{color:var(--main-primary);text-decoration:none}.breadcrumb__link:hover{text-decoration:underline}.breadcrumb__current,.breadcrumb__separator{color:var(--breadcrumb-separator-color)}.breadcrumb__copy{flex-shrink:0}\n"] }]
4494
4499
  }], propDecorators: { breadcrumbs: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumbs", required: true }] }], showCopy: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCopy", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], copy: [{ type: i0.Output, args: ["copy"] }] } });
4495
4500
 
4496
- const VERSION = '22.3.0';
4501
+ const VERSION = '22.3.1';
4497
4502
 
4498
4503
  const MAD_ALERT_DEFAULT_CONFIGURATION = new InjectionToken('mad-alert-configuration', {
4499
4504
  providedIn: 'root',