@porsche-design-system/components-angular 2.15.0 → 2.16.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 +22 -0
- package/components-wrapper.module.d.ts +47 -45
- package/esm2020/components-wrapper.module.mjs +48 -46
- package/esm2020/lib/components/barrel.mjs +7 -1
- package/esm2020/lib/components/carousel.wrapper.mjs +33 -0
- package/esm2020/lib/components/scroller.wrapper.mjs +30 -0
- package/esm2020/lib/components/stepper-horizontal.wrapper.mjs +3 -3
- package/esm2020/lib/types.mjs +1 -1
- package/fesm2015/porsche-design-system-components-angular.mjs +136 -81
- package/fesm2015/porsche-design-system-components-angular.mjs.map +1 -1
- package/fesm2020/porsche-design-system-components-angular.mjs +136 -81
- package/fesm2020/porsche-design-system-components-angular.mjs.map +1 -1
- package/lib/components/barrel.d.ts +5 -1
- package/lib/components/carousel.wrapper.d.ts +18 -0
- package/lib/components/scroller.wrapper.d.ts +14 -0
- package/lib/components/stepper-horizontal.wrapper.d.ts +3 -2
- package/lib/types.d.ts +17 -2
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { PBanner } from './banner.wrapper';
|
|
|
3
3
|
import { PButton } from './button.wrapper';
|
|
4
4
|
import { PButtonGroup } from './button-group.wrapper';
|
|
5
5
|
import { PButtonPure } from './button-pure.wrapper';
|
|
6
|
+
import { PCarousel } from './carousel.wrapper';
|
|
6
7
|
import { PCheckboxWrapper } from './checkbox-wrapper.wrapper';
|
|
7
8
|
import { PContentWrapper } from './content-wrapper.wrapper';
|
|
8
9
|
import { PDivider } from './divider.wrapper';
|
|
@@ -22,6 +23,7 @@ import { PModal } from './modal.wrapper';
|
|
|
22
23
|
import { PPagination } from './pagination.wrapper';
|
|
23
24
|
import { PPopover } from './popover.wrapper';
|
|
24
25
|
import { PRadioButtonWrapper } from './radio-button-wrapper.wrapper';
|
|
26
|
+
import { PScroller } from './scroller.wrapper';
|
|
25
27
|
import { PSegmentedControl } from './segmented-control.wrapper';
|
|
26
28
|
import { PSegmentedControlItem } from './segmented-control-item.wrapper';
|
|
27
29
|
import { PSelectWrapper } from './select-wrapper.wrapper';
|
|
@@ -47,12 +49,13 @@ import { PTextList } from './text-list.wrapper';
|
|
|
47
49
|
import { PTextListItem } from './text-list-item.wrapper';
|
|
48
50
|
import { PTextareaWrapper } from './textarea-wrapper.wrapper';
|
|
49
51
|
import { PToast } from './toast.wrapper';
|
|
50
|
-
export declare const DECLARATIONS: (typeof PAccordion | typeof PBanner | typeof PButton | typeof PButtonGroup | typeof PButtonPure | typeof PCheckboxWrapper | typeof PContentWrapper | typeof PDivider | typeof PFieldsetWrapper | typeof PFlex | typeof PFlexItem | typeof PGrid | typeof PGridItem | typeof PHeadline | typeof PIcon | typeof PInlineNotification | typeof PLink | typeof PLinkPure | typeof PLinkSocial | typeof PMarque | typeof PModal | typeof PPagination | typeof PPopover | typeof PRadioButtonWrapper | typeof PSegmentedControl | typeof PSegmentedControlItem | typeof PSelectWrapper | typeof PSpinner | typeof PStepperHorizontal | typeof PStepperHorizontalItem | typeof PSwitch | typeof PTable | typeof PTableBody | typeof PTableCell | typeof PTableHead | typeof PTableHeadCell | typeof PTableHeadRow | typeof PTableRow | typeof PTabs | typeof PTabsBar | typeof PTabsItem | typeof PTag | typeof PTagDismissible | typeof PText | typeof PTextFieldWrapper | typeof PTextList | typeof PTextListItem | typeof PTextareaWrapper | typeof PToast)[];
|
|
52
|
+
export declare const DECLARATIONS: (typeof PAccordion | typeof PBanner | typeof PButton | typeof PButtonGroup | typeof PButtonPure | typeof PCarousel | typeof PCheckboxWrapper | typeof PContentWrapper | typeof PDivider | typeof PFieldsetWrapper | typeof PFlex | typeof PFlexItem | typeof PGrid | typeof PGridItem | typeof PHeadline | typeof PIcon | typeof PInlineNotification | typeof PLink | typeof PLinkPure | typeof PLinkSocial | typeof PMarque | typeof PModal | typeof PPagination | typeof PPopover | typeof PRadioButtonWrapper | typeof PScroller | typeof PSegmentedControl | typeof PSegmentedControlItem | typeof PSelectWrapper | typeof PSpinner | typeof PStepperHorizontal | typeof PStepperHorizontalItem | typeof PSwitch | typeof PTable | typeof PTableBody | typeof PTableCell | typeof PTableHead | typeof PTableHeadCell | typeof PTableHeadRow | typeof PTableRow | typeof PTabs | typeof PTabsBar | typeof PTabsItem | typeof PTag | typeof PTagDismissible | typeof PText | typeof PTextFieldWrapper | typeof PTextList | typeof PTextListItem | typeof PTextareaWrapper | typeof PToast)[];
|
|
51
53
|
export * from './accordion.wrapper';
|
|
52
54
|
export * from './banner.wrapper';
|
|
53
55
|
export * from './button.wrapper';
|
|
54
56
|
export * from './button-group.wrapper';
|
|
55
57
|
export * from './button-pure.wrapper';
|
|
58
|
+
export * from './carousel.wrapper';
|
|
56
59
|
export * from './checkbox-wrapper.wrapper';
|
|
57
60
|
export * from './content-wrapper.wrapper';
|
|
58
61
|
export * from './divider.wrapper';
|
|
@@ -72,6 +75,7 @@ export * from './modal.wrapper';
|
|
|
72
75
|
export * from './pagination.wrapper';
|
|
73
76
|
export * from './popover.wrapper';
|
|
74
77
|
export * from './radio-button-wrapper.wrapper';
|
|
78
|
+
export * from './scroller.wrapper';
|
|
75
79
|
export * from './segmented-control.wrapper';
|
|
76
80
|
export * from './segmented-control-item.wrapper';
|
|
77
81
|
export * from './select-wrapper.wrapper';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import type { BreakpointCustomizable, CarouselInternationalization, CarouselChangeEvent, Theme } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PCarousel {
|
|
5
|
+
protected z: NgZone;
|
|
6
|
+
protected el: HTMLElement;
|
|
7
|
+
description: string;
|
|
8
|
+
disablePagination: BreakpointCustomizable<boolean>;
|
|
9
|
+
heading: string;
|
|
10
|
+
intl: CarouselInternationalization;
|
|
11
|
+
slidesPerPage: BreakpointCustomizable<number>;
|
|
12
|
+
theme: Theme;
|
|
13
|
+
wrapContent: boolean;
|
|
14
|
+
carouselChange: EventEmitter<CustomEvent<CarouselChangeEvent>>;
|
|
15
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PCarousel, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PCarousel, "p-carousel,[p-carousel]", never, { "description": "description"; "disablePagination": "disablePagination"; "heading": "heading"; "intl": "intl"; "slidesPerPage": "slidesPerPage"; "theme": "theme"; "wrapContent": "wrapContent"; }, { "carouselChange": "carouselChange"; }, never, ["*"]>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
|
|
2
|
+
import type { GradientColorTheme, ScrollIndicatorPosition, ScrollToPosition, ThemeExtendedElectric } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PScroller {
|
|
5
|
+
protected z: NgZone;
|
|
6
|
+
protected el: HTMLElement;
|
|
7
|
+
gradientColorScheme: GradientColorTheme;
|
|
8
|
+
scrollIndicatorPosition: ScrollIndicatorPosition;
|
|
9
|
+
scrollToPosition: ScrollToPosition;
|
|
10
|
+
theme: ThemeExtendedElectric;
|
|
11
|
+
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PScroller, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PScroller, "p-scroller,[p-scroller]", never, { "gradientColorScheme": "gradientColorScheme"; "scrollIndicatorPosition": "scrollIndicatorPosition"; "scrollToPosition": "scrollToPosition"; "theme": "theme"; }, {}, never, ["*"]>;
|
|
14
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
-
import type { StepChangeEvent, Theme } from '../types';
|
|
2
|
+
import type { StepChangeEvent, BreakpointCustomizable, StepperHorizontalSize, Theme } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PStepperHorizontal {
|
|
5
5
|
protected z: NgZone;
|
|
6
6
|
protected el: HTMLElement;
|
|
7
|
+
size: BreakpointCustomizable<StepperHorizontalSize>;
|
|
7
8
|
theme: Theme;
|
|
8
9
|
stepChange: EventEmitter<CustomEvent<StepChangeEvent>>;
|
|
9
10
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<PStepperHorizontal, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PStepperHorizontal, "p-stepper-horizontal,[p-stepper-horizontal]", never, { "theme": "theme"; }, { "stepChange": "stepChange"; }, never, ["*"]>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PStepperHorizontal, "p-stepper-horizontal,[p-stepper-horizontal]", never, { "size": "size"; "theme": "theme"; }, { "stepChange": "stepChange"; }, never, ["*"]>;
|
|
12
13
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Options } from '@splidejs/splide';
|
|
1
2
|
export declare type IconName = "360" | "accessibility" | "active-cabin-ventilation" | "add" | "adjust" | "arrow-double-down" | "arrow-double-left" | "arrow-double-right" | "arrow-double-up" | "arrow-down" | "arrow-first" | "arrow-head-down" | "arrow-head-left" | "arrow-head-right" | "arrow-head-up" | "arrow-last" | "arrow-left" | "arrow-right" | "arrow-up" | "augmented-reality" | "battery-empty" | "battery-full" | "bell" | "bookmark" | "broadcast" | "calculator" | "calendar" | "camera" | "car" | "car-battery" | "card" | "charging-active" | "charging-state" | "charging-station" | "chart" | "chat" | "check" | "city" | "climate" | "climate-control" | "clock" | "close" | "closed-caption" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "document" | "download" | "duration" | "edit" | "email" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "key" | "leaf" | "leather" | "light" | "list" | "locate" | "lock" | "lock-open" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-facebook" | "logo-foursquare" | "logo-gmail" | "logo-google" | "logo-hatena" | "logo-instagram" | "logo-kaixin" | "logo-kakaotalk" | "logo-linkedin" | "logo-naver" | "logo-pinterest" | "logo-qq" | "logo-qq-share" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-xing" | "logo-yahoo" | "logo-youku" | "logo-youtube" | "logout" | "map" | "menu-dots-horizontal" | "menu-dots-vertical" | "menu-lines" | "minus" | "mobile" | "moon" | "oil-can" | "parking-brake" | "parking-light" | "pause" | "phone" | "pin" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-cart" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out";
|
|
2
3
|
declare const FORM_STATES: readonly [
|
|
3
4
|
"none",
|
|
@@ -35,8 +36,12 @@ export declare type GradientColorTheme = typeof GRADIENT_COLOR_THEMES[number];
|
|
|
35
36
|
export declare type ScrollToPosition = {
|
|
36
37
|
scrollPosition: number;
|
|
37
38
|
isSmooth?: boolean;
|
|
38
|
-
};
|
|
39
|
-
|
|
39
|
+
} | string;
|
|
40
|
+
declare const SCROLL_INDICATOR_POSITIONS: readonly [
|
|
41
|
+
"top",
|
|
42
|
+
"center"
|
|
43
|
+
];
|
|
44
|
+
export declare type ScrollIndicatorPosition = typeof SCROLL_INDICATOR_POSITIONS[number];
|
|
40
45
|
declare const THEMES: readonly [
|
|
41
46
|
"light",
|
|
42
47
|
"dark"
|
|
@@ -359,6 +364,11 @@ declare const BUTTON_GROUP_DIRECTIONS: readonly [
|
|
|
359
364
|
];
|
|
360
365
|
export declare type ButtonGroupDirectionType = typeof BUTTON_GROUP_DIRECTIONS[number];
|
|
361
366
|
export declare type ButtonGroupDirection = BreakpointCustomizable<ButtonGroupDirectionType>;
|
|
367
|
+
export declare type CarouselInternationalization = Partial<Pick<Options["i18n"], "prev" | "next" | "first" | "last" | "slideLabel" | "slide">>;
|
|
368
|
+
export declare type CarouselChangeEvent = {
|
|
369
|
+
activeIndex: number;
|
|
370
|
+
previousIndex: number;
|
|
371
|
+
};
|
|
362
372
|
declare const CONTENT_WRAPPER_BACKGROUND_COLORS: readonly [
|
|
363
373
|
"transparent",
|
|
364
374
|
"default"
|
|
@@ -610,6 +620,11 @@ declare const SPINNER_ARIA_ATTRIBUTES: readonly [
|
|
|
610
620
|
"aria-label"
|
|
611
621
|
];
|
|
612
622
|
export declare type SpinnerAriaAttributes = typeof SPINNER_ARIA_ATTRIBUTES[number];
|
|
623
|
+
declare const STEPPER_HORIZONTAL_SIZES: readonly [
|
|
624
|
+
"small",
|
|
625
|
+
"medium"
|
|
626
|
+
];
|
|
627
|
+
export declare type StepperHorizontalSize = typeof STEPPER_HORIZONTAL_SIZES[number];
|
|
613
628
|
export declare type StepChangeEvent = {
|
|
614
629
|
activeStepIndex: number;
|
|
615
630
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.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": "2.
|
|
20
|
+
"@porsche-design-system/components-js": "2.16.0",
|
|
21
21
|
"tslib": "^2.0.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|