@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,53 +1,34 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { BreakpointCustomizable, RadioButtonWrapperState, Theme } from '../types';
|
|
2
|
-
|
|
3
|
+
type PRadioButtonWrapperProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
5
6
|
*/
|
|
6
|
-
hideLabel?: BreakpointCustomizable<boolean
|
|
7
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
7
8
|
/**
|
|
8
9
|
* The label text.
|
|
9
10
|
*/
|
|
10
|
-
label?: string
|
|
11
|
+
label?: string;
|
|
11
12
|
/**
|
|
12
13
|
* The message styled depending on validation state.
|
|
13
14
|
*/
|
|
14
|
-
message?: string
|
|
15
|
+
message?: string;
|
|
15
16
|
/**
|
|
16
17
|
* The validation state.
|
|
17
18
|
*/
|
|
18
|
-
state?:
|
|
19
|
+
state?: RadioButtonWrapperState;
|
|
19
20
|
/**
|
|
20
21
|
* Adapts the color depending on the theme.
|
|
21
22
|
*/
|
|
22
|
-
theme?:
|
|
23
|
-
}
|
|
23
|
+
theme?: Theme;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PRadioButtonWrapperProps>, {
|
|
24
26
|
hideLabel: boolean;
|
|
25
27
|
label: string;
|
|
26
28
|
message: string;
|
|
27
29
|
state: string;
|
|
28
30
|
theme: string;
|
|
29
|
-
}>, {}, 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<{
|
|
30
|
-
/**
|
|
31
|
-
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
32
|
-
*/
|
|
33
|
-
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The label text.
|
|
36
|
-
*/
|
|
37
|
-
label?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* The message styled depending on validation state.
|
|
40
|
-
*/
|
|
41
|
-
message?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* The validation state.
|
|
44
|
-
*/
|
|
45
|
-
state?: "success" | "none" | "error" | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Adapts the color depending on the theme.
|
|
48
|
-
*/
|
|
49
|
-
theme?: "light" | "dark" | undefined;
|
|
50
|
-
}>, {
|
|
31
|
+
}>, {}, 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<PRadioButtonWrapperProps>, {
|
|
51
32
|
hideLabel: boolean;
|
|
52
33
|
label: string;
|
|
53
34
|
message: string;
|
|
@@ -55,12 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
55
36
|
theme: string;
|
|
56
37
|
}>>>, {
|
|
57
38
|
label: string;
|
|
58
|
-
theme:
|
|
59
|
-
state:
|
|
39
|
+
theme: "light" | "dark";
|
|
40
|
+
state: "success" | "none" | "error";
|
|
60
41
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
61
42
|
message: string;
|
|
62
43
|
}>, {
|
|
63
|
-
default
|
|
44
|
+
default?(_: {}): any;
|
|
64
45
|
}>;
|
|
65
46
|
export default _default;
|
|
66
47
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -73,12 +54,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
73
54
|
};
|
|
74
55
|
};
|
|
75
56
|
type __VLS_WithDefaults<P, D> = {
|
|
76
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
77
58
|
default: D[K];
|
|
78
|
-
} : P[K];
|
|
59
|
+
}> : P[K];
|
|
79
60
|
};
|
|
80
61
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
62
|
new (): {
|
|
82
63
|
$slots: S;
|
|
64
|
+
$props: __VLS_PropsChildren<S>;
|
|
83
65
|
};
|
|
84
66
|
};
|
|
67
|
+
type __VLS_PropsChildren<S> = {
|
|
68
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
69
|
+
};
|
|
70
|
+
type __VLS_Prettify<T> = {
|
|
71
|
+
[K in keyof T]: T[K];
|
|
72
|
+
} & {};
|
|
@@ -1,79 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { ScrollerAlignScrollIndicator, SelectedAriaAttributes, ScrollerAriaAttribute, ScrollerGradientColor, ScrollerGradientColorScheme, ScrollerScrollIndicatorPosition, ScrollerScrollToPosition, Theme } from '../types';
|
|
3
|
+
type PScrollerProps = {
|
|
3
4
|
/**
|
|
4
|
-
* Sets the vertical position of scroll indicator
|
|
5
|
+
* Sets the vertical position of scroll indicator.
|
|
5
6
|
*/
|
|
6
|
-
alignScrollIndicator?:
|
|
7
|
+
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
8
|
+
/**
|
|
9
|
+
* Add ARIA role.
|
|
10
|
+
*/
|
|
11
|
+
aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
|
|
7
12
|
/**
|
|
8
13
|
* Adapts the background gradient color of prev and next button.
|
|
9
14
|
*/
|
|
10
|
-
gradientColor?:
|
|
15
|
+
gradientColor?: ScrollerGradientColor;
|
|
11
16
|
/**
|
|
12
17
|
* @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
|
|
13
18
|
*/
|
|
14
|
-
gradientColorScheme?:
|
|
19
|
+
gradientColorScheme?: ScrollerGradientColorScheme;
|
|
15
20
|
/**
|
|
16
21
|
* @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
|
|
17
22
|
*/
|
|
18
|
-
scrollIndicatorPosition?:
|
|
23
|
+
scrollIndicatorPosition?: ScrollerScrollIndicatorPosition;
|
|
19
24
|
/**
|
|
20
|
-
* Scrolls the scroll area to the left either smooth or immediately
|
|
25
|
+
* Scrolls the scroll area to the left either smooth or immediately.
|
|
21
26
|
*/
|
|
22
|
-
scrollToPosition?: ScrollerScrollToPosition
|
|
27
|
+
scrollToPosition?: ScrollerScrollToPosition;
|
|
23
28
|
/**
|
|
24
|
-
* Specifies if scrollbar should be shown
|
|
29
|
+
* Specifies if scrollbar should be shown.
|
|
25
30
|
*/
|
|
26
|
-
scrollbar?: boolean
|
|
31
|
+
scrollbar?: boolean;
|
|
27
32
|
/**
|
|
28
33
|
* Adapts the color when used on dark background.
|
|
29
34
|
*/
|
|
30
|
-
theme?:
|
|
31
|
-
}
|
|
35
|
+
theme?: Theme;
|
|
36
|
+
};
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PScrollerProps>, {
|
|
32
38
|
alignScrollIndicator: string;
|
|
33
39
|
gradientColor: string;
|
|
34
40
|
scrollbar: boolean;
|
|
35
41
|
theme: string;
|
|
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<{
|
|
37
|
-
/**
|
|
38
|
-
* Sets the vertical position of scroll indicator
|
|
39
|
-
*/
|
|
40
|
-
alignScrollIndicator?: "top" | "center" | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Adapts the background gradient color of prev and next button.
|
|
43
|
-
*/
|
|
44
|
-
gradientColor?: "background-base" | "background-surface" | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
|
|
47
|
-
*/
|
|
48
|
-
gradientColorScheme?: "default" | "surface" | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
|
|
51
|
-
*/
|
|
52
|
-
scrollIndicatorPosition?: "top" | "center" | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Scrolls the scroll area to the left either smooth or immediately
|
|
55
|
-
*/
|
|
56
|
-
scrollToPosition?: ScrollerScrollToPosition | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies if scrollbar should be shown
|
|
59
|
-
*/
|
|
60
|
-
scrollbar?: boolean | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Adapts the color when used on dark background.
|
|
63
|
-
*/
|
|
64
|
-
theme?: "light" | "dark" | undefined;
|
|
65
|
-
}>, {
|
|
42
|
+
}>, {}, 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<PScrollerProps>, {
|
|
66
43
|
alignScrollIndicator: string;
|
|
67
44
|
gradientColor: string;
|
|
68
45
|
scrollbar: boolean;
|
|
69
46
|
theme: string;
|
|
70
47
|
}>>>, {
|
|
71
|
-
theme: Theme;
|
|
72
|
-
alignScrollIndicator: ScrollerAlignScrollIndicator;
|
|
73
|
-
gradientColor: ScrollerGradientColor;
|
|
74
48
|
scrollbar: boolean;
|
|
49
|
+
theme: "light" | "dark";
|
|
50
|
+
alignScrollIndicator: "top" | "center";
|
|
51
|
+
gradientColor: "background-base" | "background-surface";
|
|
75
52
|
}>, {
|
|
76
|
-
default
|
|
53
|
+
default?(_: {}): any;
|
|
77
54
|
}>;
|
|
78
55
|
export default _default;
|
|
79
56
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -86,12 +63,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
86
63
|
};
|
|
87
64
|
};
|
|
88
65
|
type __VLS_WithDefaults<P, D> = {
|
|
89
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
66
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
90
67
|
default: D[K];
|
|
91
|
-
} : P[K];
|
|
68
|
+
}> : P[K];
|
|
92
69
|
};
|
|
93
70
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
71
|
new (): {
|
|
95
72
|
$slots: S;
|
|
73
|
+
$props: __VLS_PropsChildren<S>;
|
|
96
74
|
};
|
|
97
75
|
};
|
|
76
|
+
type __VLS_PropsChildren<S> = {
|
|
77
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
78
|
+
};
|
|
79
|
+
type __VLS_Prettify<T> = {
|
|
80
|
+
[K in keyof T]: T[K];
|
|
81
|
+
} & {};
|
|
@@ -4,6 +4,7 @@ const k = /* @__PURE__ */ a({
|
|
|
4
4
|
__name: "ScrollerWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
alignScrollIndicator: { default: "center" },
|
|
7
|
+
aria: null,
|
|
7
8
|
gradientColor: { default: "background-base" },
|
|
8
9
|
gradientColorScheme: null,
|
|
9
10
|
scrollIndicatorPosition: null,
|
|
@@ -11,13 +12,13 @@ const k = /* @__PURE__ */ a({
|
|
|
11
12
|
scrollbar: { type: Boolean, default: !1 },
|
|
12
13
|
theme: { default: "light" }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const o =
|
|
15
|
+
setup(n) {
|
|
16
|
+
const o = n, t = C("p-scroller"), e = s();
|
|
16
17
|
return c(() => {
|
|
17
18
|
r(e.value, o);
|
|
18
19
|
}), p(() => {
|
|
19
20
|
r(e.value, o);
|
|
20
|
-
}), (l, _) => (d(), f(i(u(
|
|
21
|
+
}), (l, _) => (d(), f(i(u(t)), {
|
|
21
22
|
ref_key: "pdsComponentRef",
|
|
22
23
|
ref: e
|
|
23
24
|
}, {
|
|
@@ -1,53 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { SegmentedControlItemIcon } from '../types';
|
|
3
|
+
type PSegmentedControlItemProps = {
|
|
2
4
|
/**
|
|
3
5
|
* Disables the button. No events will be triggered while disabled state is active.
|
|
4
6
|
*/
|
|
5
|
-
disabled?: boolean
|
|
7
|
+
disabled?: boolean;
|
|
6
8
|
/**
|
|
7
9
|
* The icon shown.
|
|
8
10
|
*/
|
|
9
|
-
icon?:
|
|
11
|
+
icon?: SegmentedControlItemIcon;
|
|
10
12
|
/**
|
|
11
13
|
* A URL path to a custom icon.
|
|
12
14
|
*/
|
|
13
|
-
iconSource?: string
|
|
15
|
+
iconSource?: string;
|
|
14
16
|
/**
|
|
15
17
|
* The label text.
|
|
16
18
|
*/
|
|
17
|
-
label?: string
|
|
19
|
+
label?: string;
|
|
18
20
|
/**
|
|
19
21
|
* The value of this item which is emitted by the parent element if it becomes selected. This property is **required**.
|
|
20
22
|
*/
|
|
21
23
|
value: string | number;
|
|
22
|
-
}
|
|
24
|
+
};
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PSegmentedControlItemProps>, {
|
|
23
26
|
disabled: boolean;
|
|
24
|
-
}>, {}, 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<{
|
|
25
|
-
/**
|
|
26
|
-
* Disables the button. No events will be triggered while disabled state is active.
|
|
27
|
-
*/
|
|
28
|
-
disabled?: boolean | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* The icon shown.
|
|
31
|
-
*/
|
|
32
|
-
icon?: import("../types").LinkButtonIconName | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* A URL path to a custom icon.
|
|
35
|
-
*/
|
|
36
|
-
iconSource?: string | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* The label text.
|
|
39
|
-
*/
|
|
40
|
-
label?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* The value of this item which is emitted by the parent element if it becomes selected. This property is **required**.
|
|
43
|
-
*/
|
|
44
|
-
value: string | number;
|
|
45
|
-
}>, {
|
|
27
|
+
}>, {}, 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<PSegmentedControlItemProps>, {
|
|
46
28
|
disabled: boolean;
|
|
47
29
|
}>>>, {
|
|
48
30
|
disabled: boolean;
|
|
49
31
|
}>, {
|
|
50
|
-
default
|
|
32
|
+
default?(_: {}): any;
|
|
51
33
|
}>;
|
|
52
34
|
export default _default;
|
|
53
35
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -60,12 +42,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
60
42
|
};
|
|
61
43
|
};
|
|
62
44
|
type __VLS_WithDefaults<P, D> = {
|
|
63
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
46
|
default: D[K];
|
|
65
|
-
} : P[K];
|
|
47
|
+
}> : P[K];
|
|
66
48
|
};
|
|
67
49
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
50
|
new (): {
|
|
69
51
|
$slots: S;
|
|
52
|
+
$props: __VLS_PropsChildren<S>;
|
|
70
53
|
};
|
|
71
54
|
};
|
|
55
|
+
type __VLS_PropsChildren<S> = {
|
|
56
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
@@ -1,45 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { SegmentedControlBackgroundColor, SegmentedControlUpdateEvent, Theme } from '../types';
|
|
3
|
+
type PSegmentedControlProps = {
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated since v3.0.0, will be removed with next major release. Background color variations
|
|
5
6
|
*/
|
|
6
|
-
backgroundColor?:
|
|
7
|
+
backgroundColor?: SegmentedControlBackgroundColor;
|
|
7
8
|
/**
|
|
8
9
|
* Adapts the segmented-control color depending on the theme.
|
|
9
10
|
*/
|
|
10
|
-
theme?:
|
|
11
|
+
theme?: Theme;
|
|
11
12
|
/**
|
|
12
13
|
* Sets the initial value of the segmented-control.
|
|
13
14
|
*/
|
|
14
|
-
value?: string | number
|
|
15
|
-
}
|
|
15
|
+
value?: string | number;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PSegmentedControlProps>, {
|
|
16
18
|
theme: string;
|
|
17
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
20
|
segmentedControlChange: (value: SegmentedControlUpdateEvent) => void;
|
|
19
|
-
} & {
|
|
20
21
|
update: (value: SegmentedControlUpdateEvent) => void;
|
|
21
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated since v3.0.0, will be removed with next major release. Background color variations
|
|
24
|
-
*/
|
|
25
|
-
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Adapts the segmented-control color depending on the theme.
|
|
28
|
-
*/
|
|
29
|
-
theme?: "light" | "dark" | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Sets the initial value of the segmented-control.
|
|
32
|
-
*/
|
|
33
|
-
value?: string | number | undefined;
|
|
34
|
-
}>, {
|
|
22
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PSegmentedControlProps>, {
|
|
35
23
|
theme: string;
|
|
36
24
|
}>>> & {
|
|
37
25
|
onUpdate?: ((value: SegmentedControlUpdateEvent) => any) | undefined;
|
|
38
26
|
onSegmentedControlChange?: ((value: SegmentedControlUpdateEvent) => any) | undefined;
|
|
39
27
|
}, {
|
|
40
|
-
theme:
|
|
28
|
+
theme: "light" | "dark";
|
|
41
29
|
}>, {
|
|
42
|
-
default
|
|
30
|
+
default?(_: {}): any;
|
|
43
31
|
}>;
|
|
44
32
|
export default _default;
|
|
45
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -52,12 +40,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
52
40
|
};
|
|
53
41
|
};
|
|
54
42
|
type __VLS_WithDefaults<P, D> = {
|
|
55
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
56
44
|
default: D[K];
|
|
57
|
-
} : P[K];
|
|
45
|
+
}> : P[K];
|
|
58
46
|
};
|
|
59
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
48
|
new (): {
|
|
61
49
|
$slots: S;
|
|
50
|
+
$props: __VLS_PropsChildren<S>;
|
|
62
51
|
};
|
|
63
52
|
};
|
|
53
|
+
type __VLS_PropsChildren<S> = {
|
|
54
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
55
|
+
};
|
|
56
|
+
type __VLS_Prettify<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { SelectWrapperDropdownDirection, BreakpointCustomizable, SelectWrapperState, Theme } from '../types';
|
|
2
|
-
|
|
3
|
+
type PSelectWrapperProps = {
|
|
3
4
|
/**
|
|
4
5
|
* The description text.
|
|
5
6
|
*/
|
|
6
|
-
description?: string
|
|
7
|
+
description?: string;
|
|
7
8
|
/**
|
|
8
9
|
* Changes the direction to which the dropdown list appears.
|
|
9
10
|
*/
|
|
10
|
-
dropdownDirection?:
|
|
11
|
+
dropdownDirection?: SelectWrapperDropdownDirection;
|
|
11
12
|
/**
|
|
12
13
|
* Filters select options by typing a character
|
|
13
14
|
*/
|
|
14
|
-
filter?: boolean
|
|
15
|
+
filter?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
17
18
|
*/
|
|
18
|
-
hideLabel?: BreakpointCustomizable<boolean
|
|
19
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
19
20
|
/**
|
|
20
21
|
* The label text.
|
|
21
22
|
*/
|
|
22
|
-
label?: string
|
|
23
|
+
label?: string;
|
|
23
24
|
/**
|
|
24
25
|
* The message styled depending on validation state.
|
|
25
26
|
*/
|
|
26
|
-
message?: string
|
|
27
|
+
message?: string;
|
|
27
28
|
/**
|
|
28
29
|
* Forces rendering of native browser select dropdown
|
|
29
30
|
*/
|
|
30
|
-
native?: boolean
|
|
31
|
+
native?: boolean;
|
|
31
32
|
/**
|
|
32
33
|
* The validation state.
|
|
33
34
|
*/
|
|
34
|
-
state?:
|
|
35
|
+
state?: SelectWrapperState;
|
|
35
36
|
/**
|
|
36
37
|
* Adapts the select 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<PSelectWrapperProps>, {
|
|
40
42
|
description: string;
|
|
41
43
|
dropdownDirection: string;
|
|
42
44
|
filter: boolean;
|
|
@@ -46,44 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
48
|
native: boolean;
|
|
47
49
|
state: string;
|
|
48
50
|
theme: string;
|
|
49
|
-
}>, {}, 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<{
|
|
50
|
-
/**
|
|
51
|
-
* The description text.
|
|
52
|
-
*/
|
|
53
|
-
description?: string | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Changes the direction to which the dropdown list appears.
|
|
56
|
-
*/
|
|
57
|
-
dropdownDirection?: "auto" | "down" | "up" | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Filters select options by typing a character
|
|
60
|
-
*/
|
|
61
|
-
filter?: boolean | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
64
|
-
*/
|
|
65
|
-
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* The label text.
|
|
68
|
-
*/
|
|
69
|
-
label?: string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* The message styled depending on validation state.
|
|
72
|
-
*/
|
|
73
|
-
message?: string | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Forces rendering of native browser select dropdown
|
|
76
|
-
*/
|
|
77
|
-
native?: boolean | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* The validation state.
|
|
80
|
-
*/
|
|
81
|
-
state?: "success" | "none" | "error" | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Adapts the select color depending on the theme.
|
|
84
|
-
*/
|
|
85
|
-
theme?: "light" | "dark" | undefined;
|
|
86
|
-
}>, {
|
|
51
|
+
}>, {}, 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<PSelectWrapperProps>, {
|
|
87
52
|
description: string;
|
|
88
53
|
dropdownDirection: string;
|
|
89
54
|
filter: boolean;
|
|
@@ -96,15 +61,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
96
61
|
}>>>, {
|
|
97
62
|
filter: boolean;
|
|
98
63
|
label: string;
|
|
99
|
-
theme:
|
|
64
|
+
theme: "light" | "dark";
|
|
100
65
|
description: string;
|
|
101
|
-
state:
|
|
66
|
+
state: "success" | "none" | "error";
|
|
102
67
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
103
68
|
message: string;
|
|
104
|
-
dropdownDirection:
|
|
69
|
+
dropdownDirection: "auto" | "down" | "up";
|
|
105
70
|
native: boolean;
|
|
106
71
|
}>, {
|
|
107
|
-
default
|
|
72
|
+
default?(_: {}): any;
|
|
108
73
|
}>;
|
|
109
74
|
export default _default;
|
|
110
75
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -117,12 +82,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
117
82
|
};
|
|
118
83
|
};
|
|
119
84
|
type __VLS_WithDefaults<P, D> = {
|
|
120
|
-
[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] & {
|
|
121
86
|
default: D[K];
|
|
122
|
-
} : P[K];
|
|
87
|
+
}> : P[K];
|
|
123
88
|
};
|
|
124
89
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
125
90
|
new (): {
|
|
126
91
|
$slots: S;
|
|
92
|
+
$props: __VLS_PropsChildren<S>;
|
|
127
93
|
};
|
|
128
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
|
+
} & {};
|
|
@@ -1,39 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { SelectedAriaAttributes, SpinnerAriaAttribute, BreakpointCustomizable, SpinnerSize, Theme } from '../types';
|
|
3
|
+
type PSpinnerProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Add ARIA attributes.
|
|
5
6
|
*/
|
|
6
|
-
aria?: SelectedAriaAttributes<
|
|
7
|
+
aria?: SelectedAriaAttributes<SpinnerAriaAttribute>;
|
|
7
8
|
/**
|
|
8
9
|
* Size of the spinner.
|
|
9
10
|
*/
|
|
10
|
-
size?: BreakpointCustomizable<
|
|
11
|
+
size?: BreakpointCustomizable<SpinnerSize>;
|
|
11
12
|
/**
|
|
12
13
|
* Adapts the spinner color depending on the theme.
|
|
13
14
|
*/
|
|
14
|
-
theme?:
|
|
15
|
-
}
|
|
15
|
+
theme?: Theme;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PSpinnerProps>, {
|
|
16
18
|
size: string;
|
|
17
19
|
theme: string;
|
|
18
|
-
}>, {}, 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<{
|
|
19
|
-
/**
|
|
20
|
-
* Add ARIA attributes.
|
|
21
|
-
*/
|
|
22
|
-
aria?: SelectedAriaAttributes<"aria-label"> | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Size of the spinner.
|
|
25
|
-
*/
|
|
26
|
-
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Adapts the spinner color depending on the theme.
|
|
29
|
-
*/
|
|
30
|
-
theme?: "light" | "dark" | undefined;
|
|
31
|
-
}>, {
|
|
20
|
+
}>, {}, 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<PSpinnerProps>, {
|
|
32
21
|
size: string;
|
|
33
22
|
theme: string;
|
|
34
23
|
}>>>, {
|
|
35
|
-
size: BreakpointCustomizable<
|
|
36
|
-
theme:
|
|
24
|
+
size: BreakpointCustomizable<"inherit" | "small" | "medium" | "large">;
|
|
25
|
+
theme: "light" | "dark";
|
|
37
26
|
}>;
|
|
38
27
|
export default _default;
|
|
39
28
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -46,7 +35,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
46
35
|
};
|
|
47
36
|
};
|
|
48
37
|
type __VLS_WithDefaults<P, D> = {
|
|
49
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
39
|
default: D[K];
|
|
51
|
-
} : P[K];
|
|
40
|
+
}> : P[K];
|
|
52
41
|
};
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|