@porsche-design-system/components-vue 3.16.0-rc.1 → 3.16.0-rc.2
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 +27 -0
- package/cjs/lib/components/FlyoutMultilevelItemWrapper.vue.cjs +1 -0
- package/cjs/lib/components/FlyoutMultilevelItemWrapper.vue2.cjs +1 -0
- package/cjs/lib/components/FlyoutMultilevelWrapper.vue.cjs +1 -0
- package/cjs/lib/components/FlyoutMultilevelWrapper.vue2.cjs +1 -0
- package/cjs/public-api.cjs +1 -1
- package/esm/PorscheDesignSystemProvider.vue.d.ts +42 -0
- package/esm/lib/components/AccordionWrapper.vue.d.ts +76 -0
- package/esm/lib/components/BannerWrapper.vue.d.ts +89 -0
- package/esm/lib/components/ButtonGroupWrapper.vue.d.ts +45 -0
- package/esm/lib/components/ButtonPureWrapper.vue.d.ts +130 -0
- package/esm/lib/components/ButtonTileWrapper.vue.d.ts +125 -0
- package/esm/lib/components/ButtonWrapper.vue.d.ts +94 -0
- package/esm/lib/components/CanvasWrapper.vue.d.ts +59 -0
- package/esm/lib/components/CarouselWrapper.vue.d.ts +120 -0
- package/esm/lib/components/CheckboxWrapperWrapper.vue.d.ts +71 -0
- package/esm/lib/components/ContentWrapperWrapper.vue.d.ts +53 -0
- package/esm/lib/components/CrestWrapper.vue.d.ts +40 -0
- package/esm/lib/components/DisplayWrapper.vue.d.ts +68 -0
- package/esm/lib/components/DividerWrapper.vue.d.ts +47 -0
- package/esm/lib/components/FieldsetWrapper.vue.d.ts +71 -0
- package/esm/lib/components/FieldsetWrapperWrapper.vue.d.ts +72 -0
- package/esm/lib/components/FlexItemWrapper.vue.d.ts +75 -0
- package/esm/lib/components/FlexWrapper.vue.d.ts +75 -0
- package/esm/lib/components/FlyoutMultilevelItemWrapper.vue.d.ts +28 -0
- package/esm/lib/components/FlyoutMultilevelItemWrapper.vue.mjs +24 -0
- package/esm/lib/components/FlyoutMultilevelItemWrapper.vue2.mjs +4 -0
- package/esm/lib/components/FlyoutMultilevelWrapper.vue.d.ts +53 -0
- package/esm/lib/components/FlyoutMultilevelWrapper.vue.mjs +31 -0
- package/esm/lib/components/FlyoutMultilevelWrapper.vue2.mjs +4 -0
- package/esm/lib/components/FlyoutWrapper.vue.d.ts +63 -0
- package/esm/lib/components/GridItemWrapper.vue.d.ts +47 -0
- package/esm/lib/components/GridWrapper.vue.d.ts +63 -0
- package/esm/lib/components/HeadingWrapper.vue.d.ts +68 -0
- package/esm/lib/components/HeadlineWrapper.vue.d.ts +69 -0
- package/esm/lib/components/IconWrapper.vue.d.ts +63 -0
- package/esm/lib/components/InlineNotificationWrapper.vue.d.ts +95 -0
- package/esm/lib/components/LinkPureWrapper.vue.d.ts +120 -0
- package/esm/lib/components/LinkSocialWrapper.vue.d.ts +67 -0
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +81 -0
- package/esm/lib/components/LinkTileProductWrapper.vue.d.ts +92 -0
- package/esm/lib/components/LinkTileWrapper.vue.d.ts +112 -0
- package/esm/lib/components/LinkWrapper.vue.d.ts +84 -0
- package/esm/lib/components/MarqueWrapper.vue.d.ts +62 -0
- package/esm/lib/components/ModalWrapper.vue.d.ts +86 -0
- package/esm/lib/components/ModelSignatureWrapper.vue.d.ts +78 -0
- package/esm/lib/components/MultiSelectOptionWrapper.vue.d.ts +42 -0
- package/esm/lib/components/MultiSelectWrapper.vue.d.ts +107 -0
- package/esm/lib/components/PaginationWrapper.vue.d.ts +101 -0
- package/esm/lib/components/PinCodeWrapper.vue.d.ts +121 -0
- package/esm/lib/components/PopoverWrapper.vue.d.ts +51 -0
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.d.ts +71 -0
- package/esm/lib/components/ScrollerWrapper.vue.d.ts +73 -0
- package/esm/lib/components/SegmentedControlItemWrapper.vue.d.ts +59 -0
- package/esm/lib/components/SegmentedControlWrapper.vue.d.ts +57 -0
- package/esm/lib/components/SelectOptionWrapper.vue.d.ts +42 -0
- package/esm/lib/components/SelectWrapper.vue.d.ts +104 -0
- package/esm/lib/components/SelectWrapperWrapper.vue.d.ts +92 -0
- package/esm/lib/components/SpinnerWrapper.vue.d.ts +40 -0
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.d.ts +43 -0
- package/esm/lib/components/StepperHorizontalWrapper.vue.d.ts +46 -0
- package/esm/lib/components/SwitchWrapper.vue.d.ts +84 -0
- package/esm/lib/components/TableBodyWrapper.vue.d.ts +9 -0
- package/esm/lib/components/TableCellWrapper.vue.d.ts +38 -0
- package/esm/lib/components/TableHeadCellWrapper.vue.d.ts +50 -0
- package/esm/lib/components/TableHeadRowWrapper.vue.d.ts +9 -0
- package/esm/lib/components/TableHeadWrapper.vue.d.ts +9 -0
- package/esm/lib/components/TableRowWrapper.vue.d.ts +9 -0
- package/esm/lib/components/TableWrapper.vue.d.ts +35 -0
- package/esm/lib/components/TabsBarWrapper.vue.d.ts +71 -0
- package/esm/lib/components/TabsItemWrapper.vue.d.ts +24 -0
- package/esm/lib/components/TabsWrapper.vue.d.ts +74 -0
- package/esm/lib/components/TagDismissibleWrapper.vue.d.ts +51 -0
- package/esm/lib/components/TagWrapper.vue.d.ts +51 -0
- package/esm/lib/components/TextFieldWrapperWrapper.vue.d.ts +123 -0
- package/esm/lib/components/TextListItemWrapper.vue.d.ts +9 -0
- package/esm/lib/components/TextListWrapper.vue.d.ts +51 -0
- package/esm/lib/components/TextWrapper.vue.d.ts +78 -0
- package/esm/lib/components/TextareaWrapperWrapper.vue.d.ts +82 -0
- package/esm/lib/components/ToastWrapper.vue.d.ts +18 -0
- package/esm/lib/components/WordmarkWrapper.vue.d.ts +51 -0
- package/esm/lib/components/index.d.ts +70 -0
- package/esm/lib/types.d.ts +1371 -0
- package/esm/plugin.d.ts +14 -0
- package/esm/public-api.d.ts +6 -0
- package/esm/public-api.mjs +39 -39
- package/esm/utils.d.ts +10 -0
- package/package.json +2 -2
- package/cjs/lib/components/FlyoutNavigationItemWrapper.vue.cjs +0 -1
- package/cjs/lib/components/FlyoutNavigationItemWrapper.vue2.cjs +0 -1
- package/cjs/lib/components/FlyoutNavigationWrapper.vue.cjs +0 -1
- package/cjs/lib/components/FlyoutNavigationWrapper.vue2.cjs +0 -1
- package/esm/lib/components/FlyoutNavigationItemWrapper.vue.mjs +0 -24
- package/esm/lib/components/FlyoutNavigationItemWrapper.vue2.mjs +0 -4
- package/esm/lib/components/FlyoutNavigationWrapper.vue.mjs +0 -31
- package/esm/lib/components/FlyoutNavigationWrapper.vue2.mjs +0 -4
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { HeadlineAlign, HeadlineColor, HeadlineTag, Theme, HeadlineVariant } from '../types';
|
|
2
|
+
type PHeadlineProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Text alignment of the component.
|
|
5
|
+
*/
|
|
6
|
+
align?: HeadlineAlign;
|
|
7
|
+
/**
|
|
8
|
+
* Basic text color variations depending on theme property.
|
|
9
|
+
*/
|
|
10
|
+
color?: HeadlineColor;
|
|
11
|
+
/**
|
|
12
|
+
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
|
+
*/
|
|
14
|
+
ellipsis?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Sets a custom HTML tag depending on the usage of the headline component.
|
|
17
|
+
*/
|
|
18
|
+
tag?: HeadlineTag;
|
|
19
|
+
/**
|
|
20
|
+
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
21
|
+
*/
|
|
22
|
+
theme?: Theme;
|
|
23
|
+
/**
|
|
24
|
+
* Predefined style of the headline.
|
|
25
|
+
*/
|
|
26
|
+
variant?: HeadlineVariant;
|
|
27
|
+
};
|
|
28
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PHeadlineProps>, {
|
|
30
|
+
align: string;
|
|
31
|
+
color: string;
|
|
32
|
+
ellipsis: boolean;
|
|
33
|
+
variant: string;
|
|
34
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PHeadlineProps>, {
|
|
35
|
+
align: string;
|
|
36
|
+
color: string;
|
|
37
|
+
ellipsis: boolean;
|
|
38
|
+
variant: string;
|
|
39
|
+
}>>>, {
|
|
40
|
+
variant: HeadlineVariant;
|
|
41
|
+
align: "center" | "start" | "end" | "left" | "right";
|
|
42
|
+
color: "default" | "inherit" | "primary";
|
|
43
|
+
ellipsis: boolean;
|
|
44
|
+
}, {}>, {
|
|
45
|
+
default?(_: {}): any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
}> : P[K];
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
62
|
+
type __VLS_TypePropsToOption<T> = {
|
|
63
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
64
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
65
|
+
} : {
|
|
66
|
+
type: import('vue').PropType<T[K]>;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, IconSize, Theme } from '../types';
|
|
2
|
+
type PIconProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Add ARIA attributes.
|
|
5
|
+
*/
|
|
6
|
+
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
7
|
+
/**
|
|
8
|
+
* Basic color variations depending on theme property.
|
|
9
|
+
*/
|
|
10
|
+
color?: IconColor;
|
|
11
|
+
/**
|
|
12
|
+
* Has no effect anymore (the component is now using the native `loading="lazy"` attribute by default)
|
|
13
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
14
|
+
*/
|
|
15
|
+
lazy?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies which icon to use.
|
|
18
|
+
*/
|
|
19
|
+
name?: IconName;
|
|
20
|
+
/**
|
|
21
|
+
* The size of the icon.
|
|
22
|
+
*/
|
|
23
|
+
size?: IconSize;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies a whole icon path which can be used for custom icons.
|
|
26
|
+
*/
|
|
27
|
+
source?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Adapts the color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
30
|
+
*/
|
|
31
|
+
theme?: Theme;
|
|
32
|
+
};
|
|
33
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PIconProps>, {
|
|
34
|
+
color: string;
|
|
35
|
+
name: string;
|
|
36
|
+
size: string;
|
|
37
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PIconProps>, {
|
|
38
|
+
color: string;
|
|
39
|
+
name: string;
|
|
40
|
+
size: string;
|
|
41
|
+
}>>>, {
|
|
42
|
+
size: "inherit" | "small" | "medium" | "large" | "x-large" | "xx-small" | "x-small";
|
|
43
|
+
name: "list" | "copy" | "grid" | "document" | "search" | "switch" | "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-empty-co2" | "battery-empty-fuel" | "battery-full" | "bell" | "bookmark" | "bookmark-filled" | "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-class" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "fingerprint" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "heart" | "heart-filled" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "locate" | "lock" | "lock-open" | "logo-apple-podcast" | "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-spotify" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-x" | "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" | "pin-filled" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "push-pin" | "push-pin-off" | "qr" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "roof-closed" | "roof-open" | "route" | "rss" | "save" | "screen" | "send" | "share" | "shopping-bag" | "shopping-bag-filled" | "shopping-cart" | "shopping-cart-filled" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "star-filled" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "tablet" | "tachometer" | "tire" | "truck" | "upload" | "user" | "user-filled" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out";
|
|
44
|
+
color: "default" | "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "state-disabled";
|
|
45
|
+
}, {}>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithDefaults<P, D> = {
|
|
48
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
+
default: D[K];
|
|
50
|
+
}> : P[K];
|
|
51
|
+
};
|
|
52
|
+
type __VLS_Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|
|
55
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
56
|
+
type __VLS_TypePropsToOption<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: import('vue').PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { InlineNotificationActionIcon, InlineNotificationHeadingTag, InlineNotificationState, Theme } from '../types';
|
|
2
|
+
type PInlineNotificationProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Action icon of the inline-notification.
|
|
5
|
+
*/
|
|
6
|
+
actionIcon?: InlineNotificationActionIcon;
|
|
7
|
+
/**
|
|
8
|
+
* Action label of the inline-notification.
|
|
9
|
+
*/
|
|
10
|
+
actionLabel?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
13
|
+
*/
|
|
14
|
+
actionLoading?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Description of the inline-notification.
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* If false, the inline-notification will not have a dismiss button.
|
|
21
|
+
*/
|
|
22
|
+
dismissButton?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Heading of the inline-notification.
|
|
25
|
+
*/
|
|
26
|
+
heading?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sets a heading tag, so it fits correctly within the outline of the page.
|
|
29
|
+
*/
|
|
30
|
+
headingTag?: InlineNotificationHeadingTag;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the inline-notification can be closed/removed by the user.
|
|
33
|
+
*/
|
|
34
|
+
persistent?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* State of the inline-notification.
|
|
37
|
+
*/
|
|
38
|
+
state?: InlineNotificationState;
|
|
39
|
+
/**
|
|
40
|
+
* Adapts the inline-notification color depending on the theme.
|
|
41
|
+
*/
|
|
42
|
+
theme?: Theme;
|
|
43
|
+
};
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PInlineNotificationProps>, {
|
|
45
|
+
actionIcon: string;
|
|
46
|
+
actionLoading: boolean;
|
|
47
|
+
description: string;
|
|
48
|
+
dismissButton: boolean;
|
|
49
|
+
heading: string;
|
|
50
|
+
headingTag: string;
|
|
51
|
+
state: string;
|
|
52
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
[x: string]: (...args: unknown[]) => void;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PInlineNotificationProps>, {
|
|
55
|
+
actionIcon: string;
|
|
56
|
+
actionLoading: boolean;
|
|
57
|
+
description: string;
|
|
58
|
+
dismissButton: boolean;
|
|
59
|
+
heading: string;
|
|
60
|
+
headingTag: string;
|
|
61
|
+
state: string;
|
|
62
|
+
}>>>, {
|
|
63
|
+
heading: string;
|
|
64
|
+
description: string;
|
|
65
|
+
headingTag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
66
|
+
dismissButton: boolean;
|
|
67
|
+
state: "success" | "warning" | "error" | "info" | "neutral";
|
|
68
|
+
actionIcon: "list" | "copy" | "grid" | "document" | "search" | "switch" | "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-empty-co2" | "battery-empty-fuel" | "battery-full" | "bell" | "bookmark" | "bookmark-filled" | "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-class" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "fingerprint" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "heart" | "heart-filled" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "locate" | "lock" | "lock-open" | "logo-apple-podcast" | "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-spotify" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-x" | "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" | "pin-filled" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "push-pin" | "push-pin-off" | "qr" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "roof-closed" | "roof-open" | "route" | "rss" | "save" | "screen" | "send" | "share" | "shopping-bag" | "shopping-bag-filled" | "shopping-cart" | "shopping-cart-filled" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "star-filled" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "tablet" | "tachometer" | "tire" | "truck" | "upload" | "user" | "user-filled" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out";
|
|
69
|
+
actionLoading: boolean;
|
|
70
|
+
}, {}>, {
|
|
71
|
+
default?(_: {}): any;
|
|
72
|
+
}>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_WithDefaults<P, D> = {
|
|
75
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
76
|
+
default: D[K];
|
|
77
|
+
}> : P[K];
|
|
78
|
+
};
|
|
79
|
+
type __VLS_Prettify<T> = {
|
|
80
|
+
[K in keyof T]: T[K];
|
|
81
|
+
} & {};
|
|
82
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
83
|
+
new (): {
|
|
84
|
+
$slots: S;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
88
|
+
type __VLS_TypePropsToOption<T> = {
|
|
89
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
90
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
91
|
+
} : {
|
|
92
|
+
type: import('vue').PropType<T[K]>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureIcon, LinkPureSize, LinkPureTarget, Theme, LinkPureWeight } from '../types';
|
|
2
|
+
type PLinkPureProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Display link in active state.
|
|
5
|
+
*/
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Aligns the label.
|
|
9
|
+
*/
|
|
10
|
+
alignLabel?: BreakpointCustomizable<LinkPureAlignLabel>;
|
|
11
|
+
/**
|
|
12
|
+
* Add ARIA attributes.
|
|
13
|
+
*/
|
|
14
|
+
aria?: SelectedAriaAttributes<LinkPureAriaAttribute>;
|
|
15
|
+
/**
|
|
16
|
+
* Special download attribute to open native browser download dialog if target url points to a downloadable file.
|
|
17
|
+
*/
|
|
18
|
+
download?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
21
|
+
*/
|
|
22
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
25
|
+
*/
|
|
26
|
+
href?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The icon shown. By choosing 'none', no icon is displayed
|
|
29
|
+
*/
|
|
30
|
+
icon?: LinkPureIcon;
|
|
31
|
+
/**
|
|
32
|
+
* A URL path to a custom icon.
|
|
33
|
+
*/
|
|
34
|
+
iconSource?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the relationship of the target object to the link object.
|
|
37
|
+
*/
|
|
38
|
+
rel?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Size of the link.
|
|
41
|
+
*/
|
|
42
|
+
size?: BreakpointCustomizable<LinkPureSize>;
|
|
43
|
+
/**
|
|
44
|
+
* Stretches the area between icon and label to max available space.
|
|
45
|
+
*/
|
|
46
|
+
stretch?: BreakpointCustomizable<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Target attribute where the link should be opened.
|
|
49
|
+
*/
|
|
50
|
+
target?: LinkPureTarget;
|
|
51
|
+
/**
|
|
52
|
+
* Adapts the button color depending on the theme.
|
|
53
|
+
*/
|
|
54
|
+
theme?: Theme;
|
|
55
|
+
/**
|
|
56
|
+
* Shows an underline under the label.
|
|
57
|
+
*/
|
|
58
|
+
underline?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The weight of the text (only has effect with visible label).
|
|
61
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
62
|
+
*/
|
|
63
|
+
weight?: LinkPureWeight;
|
|
64
|
+
};
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkPureProps>, {
|
|
66
|
+
active: boolean;
|
|
67
|
+
alignLabel: string;
|
|
68
|
+
hideLabel: boolean;
|
|
69
|
+
icon: string;
|
|
70
|
+
size: string;
|
|
71
|
+
stretch: boolean;
|
|
72
|
+
target: string;
|
|
73
|
+
underline: boolean;
|
|
74
|
+
weight: string;
|
|
75
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkPureProps>, {
|
|
76
|
+
active: boolean;
|
|
77
|
+
alignLabel: string;
|
|
78
|
+
hideLabel: boolean;
|
|
79
|
+
icon: string;
|
|
80
|
+
size: string;
|
|
81
|
+
stretch: boolean;
|
|
82
|
+
target: string;
|
|
83
|
+
underline: boolean;
|
|
84
|
+
weight: string;
|
|
85
|
+
}>>>, {
|
|
86
|
+
weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
|
|
87
|
+
stretch: BreakpointCustomizable<boolean>;
|
|
88
|
+
size: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-small" | "x-small">;
|
|
89
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
90
|
+
icon: import("../types").LinkButtonIconName;
|
|
91
|
+
active: boolean;
|
|
92
|
+
alignLabel: BreakpointCustomizable<"start" | "end" | "left" | "right">;
|
|
93
|
+
underline: boolean;
|
|
94
|
+
target: string;
|
|
95
|
+
}, {}>, {
|
|
96
|
+
default?(_: {}): any;
|
|
97
|
+
}>;
|
|
98
|
+
export default _default;
|
|
99
|
+
type __VLS_WithDefaults<P, D> = {
|
|
100
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
101
|
+
default: D[K];
|
|
102
|
+
}> : P[K];
|
|
103
|
+
};
|
|
104
|
+
type __VLS_Prettify<T> = {
|
|
105
|
+
[K in keyof T]: T[K];
|
|
106
|
+
} & {};
|
|
107
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
113
|
+
type __VLS_TypePropsToOption<T> = {
|
|
114
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
115
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
116
|
+
} : {
|
|
117
|
+
type: import('vue').PropType<T[K]>;
|
|
118
|
+
required: true;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, LinkSocialIcon, LinkSocialTarget, Theme } from '../types';
|
|
2
|
+
type PLinkSocialProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Show or hide label.
|
|
5
|
+
*/
|
|
6
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
9
|
+
*/
|
|
10
|
+
href?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The icon shown.
|
|
13
|
+
*/
|
|
14
|
+
icon?: LinkSocialIcon;
|
|
15
|
+
/**
|
|
16
|
+
* A URL path to a custom icon.
|
|
17
|
+
*/
|
|
18
|
+
iconSource?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the relationship of the target object to the link object.
|
|
21
|
+
*/
|
|
22
|
+
rel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Target attribute where the link should be opened.
|
|
25
|
+
*/
|
|
26
|
+
target?: LinkSocialTarget;
|
|
27
|
+
/**
|
|
28
|
+
* Adapts the link color when used on dark background.
|
|
29
|
+
*/
|
|
30
|
+
theme?: Theme;
|
|
31
|
+
};
|
|
32
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social icon instead. */
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkSocialProps>, {
|
|
34
|
+
hideLabel: boolean;
|
|
35
|
+
target: string;
|
|
36
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkSocialProps>, {
|
|
37
|
+
hideLabel: boolean;
|
|
38
|
+
target: string;
|
|
39
|
+
}>>>, {
|
|
40
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
41
|
+
target: string;
|
|
42
|
+
}, {}>, {
|
|
43
|
+
default?(_: {}): any;
|
|
44
|
+
}>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
60
|
+
type __VLS_TypePropsToOption<T> = {
|
|
61
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
62
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
63
|
+
} : {
|
|
64
|
+
type: import('vue').PropType<T[K]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, LinkTileModelSignatureAspectRatio, LinkTileModelSignatureHeadingTag, LinkTileModelSignatureLinkDirection, LinkTileModelSignatureModel, LinkTileModelSignatureWeight } from '../types';
|
|
2
|
+
type PLinkTileModelSignatureProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Aspect ratio of the link-tile-model-signature.
|
|
5
|
+
*/
|
|
6
|
+
aspectRatio?: BreakpointCustomizable<LinkTileModelSignatureAspectRatio>;
|
|
7
|
+
/**
|
|
8
|
+
* Description text.
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Heading text.
|
|
13
|
+
*/
|
|
14
|
+
heading: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets a heading tag, so it fits correctly within the outline of the page.
|
|
17
|
+
*/
|
|
18
|
+
headingTag?: LinkTileModelSignatureHeadingTag;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the direction of the main and cross axis of the links. The default is '{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint 'xs'.
|
|
21
|
+
*/
|
|
22
|
+
linkDirection?: BreakpointCustomizable<LinkTileModelSignatureLinkDirection>;
|
|
23
|
+
/**
|
|
24
|
+
* Adapts the model of the component.
|
|
25
|
+
*/
|
|
26
|
+
model?: LinkTileModelSignatureModel;
|
|
27
|
+
/**
|
|
28
|
+
* Adapts the font weight of the heading.
|
|
29
|
+
*/
|
|
30
|
+
weight?: BreakpointCustomizable<LinkTileModelSignatureWeight>;
|
|
31
|
+
};
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkTileModelSignatureProps>, {
|
|
33
|
+
aspectRatio: string;
|
|
34
|
+
headingTag: string;
|
|
35
|
+
linkDirection: () => {
|
|
36
|
+
base: string;
|
|
37
|
+
xs: string;
|
|
38
|
+
};
|
|
39
|
+
model: string;
|
|
40
|
+
weight: string;
|
|
41
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkTileModelSignatureProps>, {
|
|
42
|
+
aspectRatio: string;
|
|
43
|
+
headingTag: string;
|
|
44
|
+
linkDirection: () => {
|
|
45
|
+
base: string;
|
|
46
|
+
xs: string;
|
|
47
|
+
};
|
|
48
|
+
model: string;
|
|
49
|
+
weight: string;
|
|
50
|
+
}>>>, {
|
|
51
|
+
weight: BreakpointCustomizable<"regular" | "semi-bold">;
|
|
52
|
+
headingTag: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
53
|
+
aspectRatio: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">;
|
|
54
|
+
linkDirection: BreakpointCustomizable<"row" | "column">;
|
|
55
|
+
model: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo";
|
|
56
|
+
}, {}>, {
|
|
57
|
+
default?(_: {}): any;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithDefaults<P, D> = {
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
62
|
+
default: D[K];
|
|
63
|
+
}> : P[K];
|
|
64
|
+
};
|
|
65
|
+
type __VLS_Prettify<T> = {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} & {};
|
|
68
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
+
type __VLS_TypePropsToOption<T> = {
|
|
75
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
+
} : {
|
|
78
|
+
type: import('vue').PropType<T[K]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { BreakpointCustomizable, LinkTileProductAspectRatio, LinkTileProductTarget, Theme } from '../types';
|
|
2
|
+
type PLinkTileProductProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Aspect ratio of the link-tile-product.
|
|
5
|
+
*/
|
|
6
|
+
aspectRatio?: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
7
|
+
/**
|
|
8
|
+
* Additional product description.
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Product heading.
|
|
13
|
+
*/
|
|
14
|
+
heading: string;
|
|
15
|
+
/**
|
|
16
|
+
* href of the `<a>`.
|
|
17
|
+
*/
|
|
18
|
+
href?: string;
|
|
19
|
+
/**
|
|
20
|
+
* A Boolean attribute indicating that a like button should be shown.
|
|
21
|
+
*/
|
|
22
|
+
likeButton?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* A Boolean attribute indicating that a product is liked.
|
|
25
|
+
*/
|
|
26
|
+
liked?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Product retail price (with or without discount).
|
|
29
|
+
*/
|
|
30
|
+
price: string;
|
|
31
|
+
/**
|
|
32
|
+
* Shows original price (recommended retail price) with line-through. Needs prop "price" to be defined, otherwise this prop has no effect.
|
|
33
|
+
*/
|
|
34
|
+
priceOriginal?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the relationship of the target object to the link object.
|
|
37
|
+
*/
|
|
38
|
+
rel?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Target attribute where the link should be opened.
|
|
41
|
+
*/
|
|
42
|
+
target?: LinkTileProductTarget;
|
|
43
|
+
/**
|
|
44
|
+
* Adapts the link-tile-product color depending on the theme.
|
|
45
|
+
*/
|
|
46
|
+
theme?: Theme;
|
|
47
|
+
};
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkTileProductProps>, {
|
|
49
|
+
aspectRatio: string;
|
|
50
|
+
likeButton: boolean;
|
|
51
|
+
liked: boolean;
|
|
52
|
+
target: string;
|
|
53
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
|
+
like: (value: import("../types").LinkTileProductLikeEvent) => void;
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkTileProductProps>, {
|
|
56
|
+
aspectRatio: string;
|
|
57
|
+
likeButton: boolean;
|
|
58
|
+
liked: boolean;
|
|
59
|
+
target: string;
|
|
60
|
+
}>>> & {
|
|
61
|
+
onLike?: ((value: import("../types").LinkTileProductLikeEvent) => any) | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
aspectRatio: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
64
|
+
target: string;
|
|
65
|
+
likeButton: boolean;
|
|
66
|
+
liked: boolean;
|
|
67
|
+
}, {}>, {
|
|
68
|
+
default?(_: {}): any;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_WithDefaults<P, D> = {
|
|
72
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
73
|
+
default: D[K];
|
|
74
|
+
}> : P[K];
|
|
75
|
+
};
|
|
76
|
+
type __VLS_Prettify<T> = {
|
|
77
|
+
[K in keyof T]: T[K];
|
|
78
|
+
} & {};
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
85
|
+
type __VLS_TypePropsToOption<T> = {
|
|
86
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
87
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
88
|
+
} : {
|
|
89
|
+
type: import('vue').PropType<T[K]>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
};
|