@porsche-design-system/components-angular 3.4.0-rc.0 → 3.5.0-rc.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/CHANGELOG.md +16 -0
- package/esm2020/lib/components/button-tile.wrapper.mjs +3 -3
- package/esm2020/lib/components/link-tile.wrapper.mjs +3 -3
- package/esm2020/lib/components/segmented-control.wrapper.mjs +3 -3
- package/esm2020/lib/types.mjs +1 -1
- package/fesm2015/porsche-design-system-components-angular.mjs +6 -6
- package/fesm2015/porsche-design-system-components-angular.mjs.map +1 -1
- package/fesm2020/porsche-design-system-components-angular.mjs +6 -6
- package/fesm2020/porsche-design-system-components-angular.mjs.map +1 -1
- package/lib/components/button-tile.wrapper.d.ts +3 -2
- package/lib/components/link-tile.wrapper.d.ts +3 -2
- package/lib/components/segmented-control.wrapper.d.ts +3 -2
- package/lib/types.d.ts +10 -5
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
|
|
2
|
-
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
2
|
+
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileBackground, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PButtonTile {
|
|
5
5
|
protected z: NgZone;
|
|
@@ -7,6 +7,7 @@ export declare class PButtonTile {
|
|
|
7
7
|
align?: ButtonTileAlign;
|
|
8
8
|
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
9
9
|
aspectRatio?: BreakpointCustomizable<ButtonTileAspectRatio>;
|
|
10
|
+
background?: ButtonTileBackground;
|
|
10
11
|
compact?: BreakpointCustomizable<boolean>;
|
|
11
12
|
description: string;
|
|
12
13
|
disabled?: boolean;
|
|
@@ -20,5 +21,5 @@ export declare class PButtonTile {
|
|
|
20
21
|
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
21
22
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<PButtonTile, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PButtonTile, "p-button-tile,[p-button-tile]", never, { "align": "align"; "aria": "aria"; "aspectRatio": "aspectRatio"; "compact": "compact"; "description": "description"; "disabled": "disabled"; "gradient": "gradient"; "icon": "icon"; "iconSource": "iconSource"; "label": "label"; "loading": "loading"; "size": "size"; "type": "type"; "weight": "weight"; }, {}, never, ["*"], false, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PButtonTile, "p-button-tile,[p-button-tile]", never, { "align": "align"; "aria": "aria"; "aspectRatio": "aspectRatio"; "background": "background"; "compact": "compact"; "description": "description"; "disabled": "disabled"; "gradient": "gradient"; "icon": "icon"; "iconSource": "iconSource"; "label": "label"; "loading": "loading"; "size": "size"; "type": "type"; "weight": "weight"; }, {}, never, ["*"], false, never>;
|
|
24
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
|
|
2
|
-
import type { LinkTileAlign, SelectedAriaAttributes, LinkTileAriaAttribute, BreakpointCustomizable, LinkTileAspectRatio, LinkTileSize, LinkTileTarget, LinkTileWeight } from '../types';
|
|
2
|
+
import type { LinkTileAlign, SelectedAriaAttributes, LinkTileAriaAttribute, BreakpointCustomizable, LinkTileAspectRatio, LinkTileBackground, LinkTileSize, LinkTileTarget, LinkTileWeight } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PLinkTile {
|
|
5
5
|
protected z: NgZone;
|
|
@@ -7,6 +7,7 @@ export declare class PLinkTile {
|
|
|
7
7
|
align?: LinkTileAlign;
|
|
8
8
|
aria?: SelectedAriaAttributes<LinkTileAriaAttribute>;
|
|
9
9
|
aspectRatio?: BreakpointCustomizable<LinkTileAspectRatio>;
|
|
10
|
+
background?: LinkTileBackground;
|
|
10
11
|
compact?: BreakpointCustomizable<boolean>;
|
|
11
12
|
description: string;
|
|
12
13
|
download?: string;
|
|
@@ -19,5 +20,5 @@ export declare class PLinkTile {
|
|
|
19
20
|
weight?: BreakpointCustomizable<LinkTileWeight>;
|
|
20
21
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PLinkTile, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PLinkTile, "p-link-tile,[p-link-tile]", never, { "align": "align"; "aria": "aria"; "aspectRatio": "aspectRatio"; "compact": "compact"; "description": "description"; "download": "download"; "gradient": "gradient"; "href": "href"; "label": "label"; "rel": "rel"; "size": "size"; "target": "target"; "weight": "weight"; }, {}, never, ["*"], false, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PLinkTile, "p-link-tile,[p-link-tile]", never, { "align": "align"; "aria": "aria"; "aspectRatio": "aspectRatio"; "background": "background"; "compact": "compact"; "description": "description"; "download": "download"; "gradient": "gradient"; "href": "href"; "label": "label"; "rel": "rel"; "size": "size"; "target": "target"; "weight": "weight"; }, {}, never, ["*"], false, never>;
|
|
23
24
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
-
import type { SegmentedControlBackgroundColor, SegmentedControlUpdateEvent, Theme } from '../types';
|
|
2
|
+
import type { SegmentedControlBackgroundColor, BreakpointCustomizable, SegmentedControlColumns, SegmentedControlUpdateEvent, Theme } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PSegmentedControl {
|
|
5
5
|
protected z: NgZone;
|
|
6
6
|
protected el: HTMLElement;
|
|
7
7
|
/** @deprecated */
|
|
8
8
|
backgroundColor?: SegmentedControlBackgroundColor;
|
|
9
|
+
columns?: BreakpointCustomizable<SegmentedControlColumns>;
|
|
9
10
|
theme?: Theme;
|
|
10
11
|
value?: string | number;
|
|
11
12
|
/** @deprecated */
|
|
@@ -13,5 +14,5 @@ export declare class PSegmentedControl {
|
|
|
13
14
|
update: EventEmitter<CustomEvent<SegmentedControlUpdateEvent>>;
|
|
14
15
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PSegmentedControl, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PSegmentedControl, "p-segmented-control,[p-segmented-control]", never, { "backgroundColor": "backgroundColor"; "theme": "theme"; "value": "value"; }, { "segmentedControlChange": "segmentedControlChange"; "update": "update"; }, never, ["*"], false, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PSegmentedControl, "p-segmented-control,[p-segmented-control]", never, { "backgroundColor": "backgroundColor"; "columns": "columns"; "theme": "theme"; "value": "value"; }, { "segmentedControlChange": "segmentedControlChange"; "update": "update"; }, never, ["*"], false, never>;
|
|
17
18
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -441,6 +441,11 @@ export type BreakpointValues<T> = {
|
|
|
441
441
|
base: T;
|
|
442
442
|
};
|
|
443
443
|
export type BreakpointCustomizable<T> = T | BreakpointValues<T> | string;
|
|
444
|
+
declare const THEMES: readonly [
|
|
445
|
+
"light",
|
|
446
|
+
"dark"
|
|
447
|
+
];
|
|
448
|
+
export type Theme = typeof THEMES[number];
|
|
444
449
|
declare const TILE_ASPECT_RATIOS: readonly [
|
|
445
450
|
"1:1",
|
|
446
451
|
"4:3",
|
|
@@ -459,6 +464,7 @@ declare const TILE_WEIGHTS: readonly [
|
|
|
459
464
|
"semi-bold"
|
|
460
465
|
];
|
|
461
466
|
export type TileWeight = (typeof TILE_WEIGHTS)[number];
|
|
467
|
+
export type TileBackground = (typeof THEMES)[number];
|
|
462
468
|
declare const TILE_ALIGNS: readonly [
|
|
463
469
|
"top",
|
|
464
470
|
"bottom"
|
|
@@ -490,11 +496,6 @@ declare const SCROLL_INDICATOR_POSITIONS: readonly [
|
|
|
490
496
|
/** @deprecated */
|
|
491
497
|
export type ScrollerScrollIndicatorPosition = (typeof SCROLL_INDICATOR_POSITIONS)[number];
|
|
492
498
|
export type ScrollerAlignScrollIndicator = ScrollerScrollIndicatorPosition;
|
|
493
|
-
declare const THEMES: readonly [
|
|
494
|
-
"light",
|
|
495
|
-
"dark"
|
|
496
|
-
];
|
|
497
|
-
export type Theme = typeof THEMES[number];
|
|
498
499
|
declare const ALIGN_LABELS: readonly [
|
|
499
500
|
"left",
|
|
500
501
|
"right"
|
|
@@ -615,6 +616,7 @@ export type ButtonTileIcon = LinkButtonIconName;
|
|
|
615
616
|
export type ButtonTileType = ButtonType;
|
|
616
617
|
export type ButtonTileAspectRatio = TileAspectRatio;
|
|
617
618
|
export type ButtonTileSize = TileSize;
|
|
619
|
+
export type ButtonTileBackground = TileBackground;
|
|
618
620
|
export type ButtonTileWeight = TileWeight;
|
|
619
621
|
export type ButtonTileAlign = TileAlign;
|
|
620
622
|
declare const CAROUSEL_WIDTHS: readonly [
|
|
@@ -931,6 +933,7 @@ export type LinkTileTarget = LinkTarget;
|
|
|
931
933
|
export type LinkTileAriaAttribute = LinkAriaAttribute;
|
|
932
934
|
export type LinkTileAspectRatio = TileAspectRatio;
|
|
933
935
|
export type LinkTileSize = TileSize;
|
|
936
|
+
export type LinkTileBackground = TileBackground;
|
|
934
937
|
export type LinkTileAlign = TileAlign;
|
|
935
938
|
declare const LINK_TILE_WEIGHTS: readonly [
|
|
936
939
|
"regular",
|
|
@@ -1038,6 +1041,8 @@ export type SegmentedControlBackgroundColor = (typeof SEGMENTED_CONTROL_BACKGROU
|
|
|
1038
1041
|
export type SegmentedControlUpdateEvent = {
|
|
1039
1042
|
value: string | number;
|
|
1040
1043
|
};
|
|
1044
|
+
declare const SEGMENTED_CONTROL_COLUMNS: (string | number)[];
|
|
1045
|
+
export type SegmentedControlColumns = (typeof SEGMENTED_CONTROL_COLUMNS)[number];
|
|
1041
1046
|
export type SegmentedControlItemIcon = LinkButtonIconName;
|
|
1042
1047
|
declare const DROPDOWN_DIRECTIONS: readonly [
|
|
1043
1048
|
"down",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-angular",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-rc.0",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.
|
|
20
|
+
"@porsche-design-system/components-js": "3.5.0-rc.0",
|
|
21
21
|
"tslib": "^2.5.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|