@porsche-design-system/components-vue 3.0.0-rc.0 → 3.0.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 +87 -25
- package/PorscheDesignSystemProvider.vue.d.ts +11 -3
- package/lib/components/AccordionWrapper.vue.d.ts +24 -41
- package/lib/components/BannerWrapper.vue.d.ts +25 -50
- package/lib/components/ButtonGroupWrapper.vue.d.ts +17 -13
- package/lib/components/ButtonPureWrapper.vue.d.ts +35 -80
- package/lib/components/ButtonTileWrapper.vue.d.ts +34 -82
- package/lib/components/ButtonWrapper.vue.d.ts +29 -57
- package/lib/components/CarouselWrapper.vue.d.ts +32 -74
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +29 -34
- package/lib/components/CheckboxWrapperWrapper.vue.js +6 -5
- package/lib/components/ContentWrapperWrapper.vue.d.ts +22 -28
- package/lib/components/CrestWrapper.vue.d.ts +15 -23
- package/lib/components/DisplayWrapper.vue.d.ts +26 -42
- package/lib/components/DividerWrapper.vue.d.ts +18 -30
- package/lib/components/FieldsetWrapper.vue.d.ts +24 -40
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +25 -41
- package/lib/components/FlexItemWrapper.vue.d.ts +28 -44
- package/lib/components/FlexWrapper.vue.d.ts +28 -44
- package/lib/components/GridItemWrapper.vue.d.ts +20 -20
- package/lib/components/GridWrapper.vue.d.ts +22 -27
- package/lib/components/HeadingWrapper.vue.d.ts +26 -42
- package/lib/components/HeadlineWrapper.vue.d.ts +26 -42
- package/lib/components/IconWrapper.vue.d.ts +22 -50
- package/lib/components/IconWrapper.vue.js +8 -8
- package/lib/components/InlineNotificationWrapper.vue.d.ts +27 -56
- package/lib/components/LinkPureWrapper.vue.d.ts +37 -90
- package/lib/components/LinkSocialWrapper.vue.d.ts +25 -45
- package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +26 -46
- package/lib/components/LinkTileWrapper.vue.d.ts +31 -75
- package/lib/components/LinkWrapper.vue.d.ts +30 -62
- package/lib/components/MarqueWrapper.vue.d.ts +19 -35
- package/lib/components/ModalWrapper.vue.d.ts +22 -43
- package/lib/components/ModelSignatureWrapper.vue.d.ts +18 -30
- package/lib/components/PaginationWrapper.vue.d.ts +22 -59
- package/lib/components/PopoverWrapper.vue.d.ts +22 -30
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +22 -34
- package/lib/components/ScrollerWrapper.vue.d.ts +33 -49
- package/lib/components/ScrollerWrapper.vue.js +4 -3
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +20 -31
- package/lib/components/SegmentedControlWrapper.vue.d.ts +20 -25
- package/lib/components/SelectWrapperWrapper.vue.d.ts +27 -55
- package/lib/components/SpinnerWrapper.vue.d.ts +16 -24
- package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +18 -17
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +19 -17
- package/lib/components/SwitchWrapper.vue.d.ts +24 -45
- package/lib/components/TableBodyWrapper.vue.d.ts +6 -1
- package/lib/components/TableCellWrapper.vue.d.ts +16 -12
- package/lib/components/TableHeadCellWrapper.vue.d.ts +18 -22
- package/lib/components/TableHeadRowWrapper.vue.d.ts +6 -1
- package/lib/components/TableHeadWrapper.vue.d.ts +6 -1
- package/lib/components/TableRowWrapper.vue.d.ts +6 -1
- package/lib/components/TableWrapper.vue.d.ts +18 -19
- package/lib/components/TabsBarWrapper.vue.d.ts +25 -42
- package/lib/components/TabsItemWrapper.vue.d.ts +9 -8
- package/lib/components/TabsWrapper.vue.d.ts +26 -43
- package/lib/components/TagDismissibleWrapper.vue.d.ts +22 -30
- package/lib/components/TagWrapper.vue.d.ts +22 -30
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +31 -71
- package/lib/components/TextListItemWrapper.vue.d.ts +6 -1
- package/lib/components/TextListWrapper.vue.d.ts +22 -30
- package/lib/components/TextWrapper.vue.d.ts +28 -48
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +25 -49
- package/lib/components/ToastWrapper.vue.d.ts +12 -12
- package/lib/components/WordmarkWrapper.vue.d.ts +19 -35
- package/lib/types.d.ts +219 -191
- package/package.json +2 -2
|
@@ -1,74 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { HeadingAlign, HeadingColor, BreakpointCustomizable, HeadingSize, HeadingTag, Theme } from '../types';
|
|
3
|
+
type PHeadingProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Text alignment of the component.
|
|
5
6
|
*/
|
|
6
|
-
align?:
|
|
7
|
+
align?: HeadingAlign;
|
|
7
8
|
/**
|
|
8
9
|
* Basic text color variations depending on theme property.
|
|
9
10
|
*/
|
|
10
|
-
color?:
|
|
11
|
+
color?: HeadingColor;
|
|
11
12
|
/**
|
|
12
13
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
14
|
*/
|
|
14
|
-
ellipsis?: boolean
|
|
15
|
+
ellipsis?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
17
18
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<
|
|
19
|
+
size?: BreakpointCustomizable<HeadingSize>;
|
|
19
20
|
/**
|
|
20
21
|
* Sets a custom HTML tag depending on the usage of the heading component.
|
|
21
22
|
*/
|
|
22
|
-
tag?:
|
|
23
|
+
tag?: HeadingTag;
|
|
23
24
|
/**
|
|
24
25
|
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
25
26
|
*/
|
|
26
|
-
theme?:
|
|
27
|
-
}
|
|
27
|
+
theme?: Theme;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PHeadingProps>, {
|
|
28
30
|
align: string;
|
|
29
31
|
color: string;
|
|
30
32
|
ellipsis: boolean;
|
|
31
33
|
size: string;
|
|
32
34
|
theme: string;
|
|
33
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
34
|
-
/**
|
|
35
|
-
* Text alignment of the component.
|
|
36
|
-
*/
|
|
37
|
-
align?: "center" | "left" | "right" | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Basic text color variations depending on theme property.
|
|
40
|
-
*/
|
|
41
|
-
color?: "inherit" | "primary" | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Adds an ellipsis to a single line of text if it overflows.
|
|
44
|
-
*/
|
|
45
|
-
ellipsis?: boolean | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Size of the component. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
48
|
-
*/
|
|
49
|
-
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-large"> | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Sets a custom HTML tag depending on the usage of the heading component.
|
|
52
|
-
*/
|
|
53
|
-
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
56
|
-
*/
|
|
57
|
-
theme?: "light" | "dark" | undefined;
|
|
58
|
-
}>, {
|
|
35
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PHeadingProps>, {
|
|
59
36
|
align: string;
|
|
60
37
|
color: string;
|
|
61
38
|
ellipsis: boolean;
|
|
62
39
|
size: string;
|
|
63
40
|
theme: string;
|
|
64
41
|
}>>>, {
|
|
65
|
-
size: BreakpointCustomizable<
|
|
66
|
-
theme:
|
|
67
|
-
align:
|
|
68
|
-
color:
|
|
42
|
+
size: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-large">;
|
|
43
|
+
theme: "light" | "dark";
|
|
44
|
+
align: "center" | "left" | "right";
|
|
45
|
+
color: "inherit" | "primary";
|
|
69
46
|
ellipsis: boolean;
|
|
70
47
|
}>, {
|
|
71
|
-
default
|
|
48
|
+
default?(_: {}): any;
|
|
72
49
|
}>;
|
|
73
50
|
export default _default;
|
|
74
51
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -81,12 +58,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
81
58
|
};
|
|
82
59
|
};
|
|
83
60
|
type __VLS_WithDefaults<P, D> = {
|
|
84
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
85
62
|
default: D[K];
|
|
86
|
-
} : P[K];
|
|
63
|
+
}> : P[K];
|
|
87
64
|
};
|
|
88
65
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
66
|
new (): {
|
|
90
67
|
$slots: S;
|
|
68
|
+
$props: __VLS_PropsChildren<S>;
|
|
91
69
|
};
|
|
92
70
|
};
|
|
71
|
+
type __VLS_PropsChildren<S> = {
|
|
72
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
73
|
+
};
|
|
74
|
+
type __VLS_Prettify<T> = {
|
|
75
|
+
[K in keyof T]: T[K];
|
|
76
|
+
} & {};
|
|
@@ -1,75 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { HeadlineAlign, HeadlineColor, HeadlineTag, Theme, HeadlineVariant } from '../types';
|
|
3
|
+
type PHeadlineProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
7
|
-
align?:
|
|
7
|
+
align?: HeadlineAlign;
|
|
8
8
|
/**
|
|
9
9
|
* Basic text color variations depending on theme property.
|
|
10
10
|
*/
|
|
11
|
-
color?:
|
|
11
|
+
color?: HeadlineColor;
|
|
12
12
|
/**
|
|
13
13
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
14
14
|
*/
|
|
15
|
-
ellipsis?: boolean
|
|
15
|
+
ellipsis?: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Sets a custom HTML tag depending on the usage of the headline component.
|
|
18
18
|
*/
|
|
19
|
-
tag?:
|
|
19
|
+
tag?: HeadlineTag;
|
|
20
20
|
/**
|
|
21
21
|
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
22
22
|
*/
|
|
23
|
-
theme?:
|
|
23
|
+
theme?: Theme;
|
|
24
24
|
/**
|
|
25
25
|
* Predefined style of the headline.
|
|
26
26
|
*/
|
|
27
|
-
variant?: HeadlineVariant
|
|
28
|
-
}
|
|
27
|
+
variant?: HeadlineVariant;
|
|
28
|
+
};
|
|
29
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PHeadlineProps>, {
|
|
29
31
|
align: string;
|
|
30
32
|
color: string;
|
|
31
33
|
ellipsis: boolean;
|
|
32
34
|
theme: string;
|
|
33
35
|
variant: string;
|
|
34
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
-
/**
|
|
36
|
-
* Text alignment of the component.
|
|
37
|
-
*/
|
|
38
|
-
align?: "center" | "left" | "right" | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Basic text color variations depending on theme property.
|
|
41
|
-
*/
|
|
42
|
-
color?: "default" | "inherit" | "primary" | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Adds an ellipsis to a single line of text if it overflows.
|
|
45
|
-
*/
|
|
46
|
-
ellipsis?: boolean | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Sets a custom HTML tag depending on the usage of the headline component.
|
|
49
|
-
*/
|
|
50
|
-
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
53
|
-
*/
|
|
54
|
-
theme?: "light" | "dark" | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Predefined style of the headline.
|
|
57
|
-
*/
|
|
58
|
-
variant?: HeadlineVariant | undefined;
|
|
59
|
-
}>, {
|
|
36
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PHeadlineProps>, {
|
|
60
37
|
align: string;
|
|
61
38
|
color: string;
|
|
62
39
|
ellipsis: boolean;
|
|
63
40
|
theme: string;
|
|
64
41
|
variant: string;
|
|
65
42
|
}>>>, {
|
|
66
|
-
theme:
|
|
67
|
-
align:
|
|
43
|
+
theme: "light" | "dark";
|
|
44
|
+
align: "center" | "left" | "right";
|
|
68
45
|
variant: HeadlineVariant;
|
|
69
|
-
color:
|
|
46
|
+
color: "default" | "inherit" | "primary";
|
|
70
47
|
ellipsis: boolean;
|
|
71
48
|
}>, {
|
|
72
|
-
default
|
|
49
|
+
default?(_: {}): any;
|
|
73
50
|
}>;
|
|
74
51
|
export default _default;
|
|
75
52
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -82,12 +59,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
82
59
|
};
|
|
83
60
|
};
|
|
84
61
|
type __VLS_WithDefaults<P, D> = {
|
|
85
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
62
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
86
63
|
default: D[K];
|
|
87
|
-
} : P[K];
|
|
64
|
+
}> : P[K];
|
|
88
65
|
};
|
|
89
66
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
90
67
|
new (): {
|
|
91
68
|
$slots: S;
|
|
69
|
+
$props: __VLS_PropsChildren<S>;
|
|
92
70
|
};
|
|
93
71
|
};
|
|
72
|
+
type __VLS_PropsChildren<S> = {
|
|
73
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
74
|
+
};
|
|
75
|
+
type __VLS_Prettify<T> = {
|
|
76
|
+
[K in keyof T]: T[K];
|
|
77
|
+
} & {};
|
|
@@ -1,82 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, IconSize, Theme } from '../types';
|
|
3
|
+
type PIconProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Add ARIA attributes.
|
|
5
6
|
*/
|
|
6
|
-
aria?: SelectedAriaAttributes<
|
|
7
|
+
aria?: SelectedAriaAttributes<IconAriaAttribute>;
|
|
7
8
|
/**
|
|
8
9
|
* Basic color variations depending on theme property.
|
|
9
10
|
*/
|
|
10
|
-
color?:
|
|
11
|
+
color?: IconColor;
|
|
11
12
|
/**
|
|
12
13
|
* Has no effect anymore
|
|
13
14
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
14
15
|
*/
|
|
15
|
-
lazy?: boolean
|
|
16
|
+
lazy?: boolean;
|
|
16
17
|
/**
|
|
17
18
|
* Specifies which icon to use.
|
|
18
19
|
*/
|
|
19
|
-
name?:
|
|
20
|
+
name?: IconName;
|
|
20
21
|
/**
|
|
21
22
|
* The size of the icon.
|
|
22
23
|
*/
|
|
23
|
-
size?:
|
|
24
|
+
size?: IconSize;
|
|
24
25
|
/**
|
|
25
26
|
* Specifies a whole icon path which can be used for custom icons.
|
|
26
27
|
*/
|
|
27
|
-
source?: string
|
|
28
|
+
source?: string;
|
|
28
29
|
/**
|
|
29
30
|
* Adapts the color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
30
31
|
*/
|
|
31
|
-
theme?:
|
|
32
|
-
}
|
|
32
|
+
theme?: Theme;
|
|
33
|
+
};
|
|
34
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PIconProps>, {
|
|
33
35
|
color: string;
|
|
34
|
-
lazy: boolean;
|
|
35
36
|
name: string;
|
|
36
37
|
size: string;
|
|
37
38
|
theme: string;
|
|
38
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
39
|
-
/**
|
|
40
|
-
* Add ARIA attributes.
|
|
41
|
-
*/
|
|
42
|
-
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Basic color variations depending on theme property.
|
|
45
|
-
*/
|
|
46
|
-
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" | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Has no effect anymore
|
|
49
|
-
* @deprecated since v3.0.0, will be removed with next major release
|
|
50
|
-
*/
|
|
51
|
-
lazy?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies which icon to use.
|
|
54
|
-
*/
|
|
55
|
-
name?: "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" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "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" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* The size of the icon.
|
|
58
|
-
*/
|
|
59
|
-
size?: "inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Specifies a whole icon path which can be used for custom icons.
|
|
62
|
-
*/
|
|
63
|
-
source?: string | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Adapts the color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
66
|
-
*/
|
|
67
|
-
theme?: "light" | "dark" | undefined;
|
|
68
|
-
}>, {
|
|
39
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PIconProps>, {
|
|
69
40
|
color: string;
|
|
70
|
-
lazy: boolean;
|
|
71
41
|
name: string;
|
|
72
42
|
size: string;
|
|
73
43
|
theme: string;
|
|
74
44
|
}>>>, {
|
|
75
|
-
size:
|
|
76
|
-
theme:
|
|
77
|
-
color:
|
|
78
|
-
|
|
79
|
-
name: IconName;
|
|
45
|
+
size: "inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large";
|
|
46
|
+
theme: "light" | "dark";
|
|
47
|
+
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";
|
|
48
|
+
name: "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" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "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-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" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-bag-filled" | "shopping-cart" | "shopping-cart-filled" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "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";
|
|
80
49
|
}>;
|
|
81
50
|
export default _default;
|
|
82
51
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -89,7 +58,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
89
58
|
};
|
|
90
59
|
};
|
|
91
60
|
type __VLS_WithDefaults<P, D> = {
|
|
92
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
93
62
|
default: D[K];
|
|
94
|
-
} : P[K];
|
|
63
|
+
}> : P[K];
|
|
95
64
|
};
|
|
65
|
+
type __VLS_Prettify<T> = {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} & {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
2
|
-
import { getPrefixedTagName as
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as l, onUpdated as c, openBlock as m, createBlock as s, resolveDynamicComponent as f, unref as u } from "vue";
|
|
2
|
+
import { getPrefixedTagName as i, syncProperties as n } from "../../utils.js";
|
|
3
3
|
const C = /* @__PURE__ */ a({
|
|
4
4
|
__name: "IconWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: null,
|
|
7
7
|
color: { default: "primary" },
|
|
8
|
-
lazy: { type: Boolean
|
|
8
|
+
lazy: { type: Boolean },
|
|
9
9
|
name: { default: "arrow-right" },
|
|
10
10
|
size: { default: "small" },
|
|
11
11
|
source: null,
|
|
12
12
|
theme: { default: "light" }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const o =
|
|
16
|
-
return
|
|
14
|
+
setup(r) {
|
|
15
|
+
const o = r, t = i("p-icon"), e = p();
|
|
16
|
+
return l(() => {
|
|
17
17
|
n(e.value, o);
|
|
18
|
-
}),
|
|
18
|
+
}), c(() => {
|
|
19
19
|
n(e.value, o);
|
|
20
|
-
}), (
|
|
20
|
+
}), (d, _) => (m(), s(f(u(t)), {
|
|
21
21
|
ref_key: "pdsComponentRef",
|
|
22
22
|
ref: e
|
|
23
23
|
}, null, 512));
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { InlineNotificationActionIcon, InlineNotificationState, Theme } from '../types';
|
|
2
|
-
|
|
3
|
+
type PInlineNotificationProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Action icon of the inline-notification.
|
|
5
6
|
*/
|
|
6
|
-
actionIcon?:
|
|
7
|
+
actionIcon?: InlineNotificationActionIcon;
|
|
7
8
|
/**
|
|
8
9
|
* Action label of the inline-notification.
|
|
9
10
|
*/
|
|
10
|
-
actionLabel?: string
|
|
11
|
+
actionLabel?: string;
|
|
11
12
|
/**
|
|
12
13
|
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
13
14
|
*/
|
|
14
|
-
actionLoading?: boolean
|
|
15
|
+
actionLoading?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Description of the inline-notification.
|
|
17
18
|
*/
|
|
18
|
-
description?: string
|
|
19
|
+
description?: string;
|
|
19
20
|
/**
|
|
20
21
|
* If false, the inline-notification will not have a dismiss button.
|
|
21
22
|
*/
|
|
22
|
-
dismissButton?: boolean
|
|
23
|
+
dismissButton?: boolean;
|
|
23
24
|
/**
|
|
24
25
|
* Heading of the inline-notification.
|
|
25
26
|
*/
|
|
26
|
-
heading?: string
|
|
27
|
+
heading?: string;
|
|
27
28
|
/**
|
|
28
29
|
* @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.
|
|
29
30
|
*/
|
|
30
|
-
persistent?: boolean
|
|
31
|
+
persistent?: boolean;
|
|
31
32
|
/**
|
|
32
33
|
* State of the inline-notification.
|
|
33
34
|
*/
|
|
34
|
-
state?:
|
|
35
|
+
state?: InlineNotificationState;
|
|
35
36
|
/**
|
|
36
37
|
* Adapts the inline-notification color depending on the theme.
|
|
37
38
|
*/
|
|
38
|
-
theme?:
|
|
39
|
-
}
|
|
39
|
+
theme?: Theme;
|
|
40
|
+
};
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PInlineNotificationProps>, {
|
|
40
42
|
actionIcon: string;
|
|
41
43
|
actionLoading: boolean;
|
|
42
44
|
description: string;
|
|
@@ -46,46 +48,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
48
|
theme: string;
|
|
47
49
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
50
|
action: (value?: void | undefined) => void;
|
|
49
|
-
} & {
|
|
50
51
|
dismiss: (value?: void | undefined) => void;
|
|
51
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
52
|
-
/**
|
|
53
|
-
* Action icon of the inline-notification.
|
|
54
|
-
*/
|
|
55
|
-
actionIcon?: "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" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "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" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Action label of the inline-notification.
|
|
58
|
-
*/
|
|
59
|
-
actionLabel?: string | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
62
|
-
*/
|
|
63
|
-
actionLoading?: boolean | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Description of the inline-notification.
|
|
66
|
-
*/
|
|
67
|
-
description?: string | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* If false, the inline-notification will not have a dismiss button.
|
|
70
|
-
*/
|
|
71
|
-
dismissButton?: boolean | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Heading of the inline-notification.
|
|
74
|
-
*/
|
|
75
|
-
heading?: string | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* @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.
|
|
78
|
-
*/
|
|
79
|
-
persistent?: boolean | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* State of the inline-notification.
|
|
82
|
-
*/
|
|
83
|
-
state?: "success" | "warning" | "error" | "info" | "neutral" | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* Adapts the inline-notification color depending on the theme.
|
|
86
|
-
*/
|
|
87
|
-
theme?: "light" | "dark" | undefined;
|
|
88
|
-
}>, {
|
|
52
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PInlineNotificationProps>, {
|
|
89
53
|
actionIcon: string;
|
|
90
54
|
actionLoading: boolean;
|
|
91
55
|
description: string;
|
|
@@ -98,14 +62,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
98
62
|
onAction?: ((value?: void | undefined) => any) | undefined;
|
|
99
63
|
}, {
|
|
100
64
|
heading: string;
|
|
101
|
-
theme:
|
|
65
|
+
theme: "light" | "dark";
|
|
102
66
|
description: string;
|
|
103
67
|
dismissButton: boolean;
|
|
104
|
-
state:
|
|
105
|
-
actionIcon:
|
|
68
|
+
state: "success" | "warning" | "error" | "info" | "neutral";
|
|
69
|
+
actionIcon: "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" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "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-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" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-bag-filled" | "shopping-cart" | "shopping-cart-filled" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "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";
|
|
106
70
|
actionLoading: boolean;
|
|
107
71
|
}>, {
|
|
108
|
-
default
|
|
72
|
+
default?(_: {}): any;
|
|
109
73
|
}>;
|
|
110
74
|
export default _default;
|
|
111
75
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -118,12 +82,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
118
82
|
};
|
|
119
83
|
};
|
|
120
84
|
type __VLS_WithDefaults<P, D> = {
|
|
121
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
85
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
122
86
|
default: D[K];
|
|
123
|
-
} : P[K];
|
|
87
|
+
}> : P[K];
|
|
124
88
|
};
|
|
125
89
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
126
90
|
new (): {
|
|
127
91
|
$slots: S;
|
|
92
|
+
$props: __VLS_PropsChildren<S>;
|
|
128
93
|
};
|
|
129
94
|
};
|
|
95
|
+
type __VLS_PropsChildren<S> = {
|
|
96
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
97
|
+
};
|
|
98
|
+
type __VLS_Prettify<T> = {
|
|
99
|
+
[K in keyof T]: T[K];
|
|
100
|
+
} & {};
|