@porsche-design-system/components-vue 3.0.0-alpha.2 → 3.0.0-alpha.4
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 +385 -0
- package/lib/components/AccordionWrapper.vue.d.ts +3 -0
- package/lib/components/AccordionWrapper.vue.js +13 -13
- package/lib/components/BannerWrapper.vue.d.ts +32 -2
- package/lib/components/BannerWrapper.vue.js +11 -9
- package/lib/components/ButtonPureWrapper.vue.d.ts +11 -11
- package/lib/components/ButtonTileWrapper.vue.d.ts +171 -0
- package/lib/components/ButtonTileWrapper.vue.js +40 -0
- package/lib/components/ButtonTileWrapper.vue2.js +4 -0
- package/lib/components/ButtonWrapper.vue.d.ts +5 -5
- package/lib/components/CarouselWrapper.vue.d.ts +32 -13
- package/lib/components/CarouselWrapper.vue.js +17 -15
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/DisplayWrapper.vue.d.ts +4 -4
- package/lib/components/DividerWrapper.vue.d.ts +14 -6
- package/lib/components/DividerWrapper.vue.js +11 -10
- package/lib/components/FieldsetWrapper.vue.d.ts +95 -0
- package/lib/components/FieldsetWrapper.vue.js +32 -0
- package/lib/components/FieldsetWrapper.vue2.js +4 -0
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +4 -3
- package/lib/components/GridItemWrapper.vue.d.ts +4 -4
- package/lib/components/HeadingWrapper.vue.d.ts +4 -4
- package/lib/components/HeadlineWrapper.vue.d.ts +3 -3
- package/lib/components/IconWrapper.vue.d.ts +4 -4
- package/lib/components/InlineNotificationWrapper.vue.d.ts +3 -3
- package/lib/components/LinkPureWrapper.vue.d.ts +10 -10
- package/lib/components/LinkSocialWrapper.vue.d.ts +5 -5
- package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +106 -0
- package/lib/components/LinkTileModelSignatureWrapper.vue.js +33 -0
- package/lib/components/LinkTileModelSignatureWrapper.vue2.js +4 -0
- package/lib/components/LinkTileWrapper.vue.d.ts +6 -6
- package/lib/components/LinkTileWrapper.vue.js +1 -1
- package/lib/components/LinkWrapper.vue.d.ts +4 -4
- package/lib/components/MarqueWrapper.vue.d.ts +2 -2
- package/lib/components/ModalWrapper.vue.d.ts +16 -5
- package/lib/components/ModalWrapper.vue.js +13 -12
- package/lib/components/ModelSignatureWrapper.vue.d.ts +4 -4
- package/lib/components/PaginationWrapper.vue.d.ts +36 -24
- package/lib/components/PaginationWrapper.vue.js +17 -16
- package/lib/components/PopoverWrapper.vue.d.ts +2 -2
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ScrollerWrapper.vue.d.ts +38 -11
- package/lib/components/ScrollerWrapper.vue.js +16 -13
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -2
- package/lib/components/SegmentedControlWrapper.vue.d.ts +5 -2
- package/lib/components/SegmentedControlWrapper.vue.js +12 -12
- package/lib/components/SelectWrapperWrapper.vue.d.ts +4 -4
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +6 -3
- package/lib/components/StepperHorizontalWrapper.vue.js +13 -13
- package/lib/components/SwitchWrapper.vue.d.ts +6 -3
- package/lib/components/SwitchWrapper.vue.js +13 -13
- package/lib/components/TableWrapper.vue.d.ts +26 -3
- package/lib/components/TableWrapper.vue.js +14 -13
- package/lib/components/TabsBarWrapper.vue.d.ts +21 -10
- package/lib/components/TabsBarWrapper.vue.js +15 -14
- package/lib/components/TabsWrapper.vue.d.ts +21 -10
- package/lib/components/TabsWrapper.vue.js +15 -14
- package/lib/components/TagDismissibleWrapper.vue.d.ts +2 -2
- package/lib/components/TagWrapper.vue.d.ts +2 -2
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextFieldWrapperWrapper.vue.js +7 -6
- package/lib/components/TextListWrapper.vue.d.ts +16 -11
- package/lib/components/TextListWrapper.vue.js +11 -10
- package/lib/components/TextWrapper.vue.d.ts +4 -4
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
- package/lib/components/index.d.ts +3 -0
- package/lib/types.d.ts +164 -68
- package/package.json +2 -2
- package/public-api.js +117 -111
- package/styles/_index.scss +1 -0
- package/styles/scss.scss +0 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { ButtonTileAlign, SelectedAriaAttributes, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Alignment of button and description.
|
|
5
|
+
*/
|
|
6
|
+
align?: "top" | "bottom" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Add ARIA attributes.
|
|
9
|
+
*/
|
|
10
|
+
aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Aspect ratio of the button-tile.
|
|
13
|
+
*/
|
|
14
|
+
aspectRatio?: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16"> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Displays the button-tile as compact version with description and button icon only.
|
|
17
|
+
*/
|
|
18
|
+
compact?: BreakpointCustomizable<boolean> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Description text.
|
|
21
|
+
*/
|
|
22
|
+
description: string;
|
|
23
|
+
/**
|
|
24
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Show gradient.
|
|
29
|
+
*/
|
|
30
|
+
gradient?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
33
|
+
*/
|
|
34
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* A URL path to a custom icon.
|
|
37
|
+
*/
|
|
38
|
+
iconSource?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Label of the button.
|
|
41
|
+
*/
|
|
42
|
+
label: string;
|
|
43
|
+
/**
|
|
44
|
+
* Disables the button-tile and shows a loading indicator. No events will be triggered while loading state is active.
|
|
45
|
+
*/
|
|
46
|
+
loading?: boolean | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Font size of the description.
|
|
49
|
+
*/
|
|
50
|
+
size?: BreakpointCustomizable<"default" | "inherit"> | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the type of the button.
|
|
53
|
+
*/
|
|
54
|
+
type?: "reset" | "button" | "submit" | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Font weight of the description.
|
|
57
|
+
*/
|
|
58
|
+
weight?: BreakpointCustomizable<"regular" | "semi-bold"> | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
align: string;
|
|
61
|
+
aspectRatio: string;
|
|
62
|
+
compact: boolean;
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
gradient: boolean;
|
|
65
|
+
icon: string;
|
|
66
|
+
loading: boolean;
|
|
67
|
+
size: string;
|
|
68
|
+
type: string;
|
|
69
|
+
weight: string;
|
|
70
|
+
}>, {}, 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<{
|
|
71
|
+
/**
|
|
72
|
+
* Alignment of button and description.
|
|
73
|
+
*/
|
|
74
|
+
align?: "top" | "bottom" | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Add ARIA attributes.
|
|
77
|
+
*/
|
|
78
|
+
aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Aspect ratio of the button-tile.
|
|
81
|
+
*/
|
|
82
|
+
aspectRatio?: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16"> | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Displays the button-tile as compact version with description and button icon only.
|
|
85
|
+
*/
|
|
86
|
+
compact?: BreakpointCustomizable<boolean> | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Description text.
|
|
89
|
+
*/
|
|
90
|
+
description: string;
|
|
91
|
+
/**
|
|
92
|
+
* Disables the button. No events will be triggered while disabled state is active.
|
|
93
|
+
*/
|
|
94
|
+
disabled?: boolean | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Show gradient.
|
|
97
|
+
*/
|
|
98
|
+
gradient?: boolean | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
101
|
+
*/
|
|
102
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* A URL path to a custom icon.
|
|
105
|
+
*/
|
|
106
|
+
iconSource?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Label of the button.
|
|
109
|
+
*/
|
|
110
|
+
label: string;
|
|
111
|
+
/**
|
|
112
|
+
* Disables the button-tile and shows a loading indicator. No events will be triggered while loading state is active.
|
|
113
|
+
*/
|
|
114
|
+
loading?: boolean | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Font size of the description.
|
|
117
|
+
*/
|
|
118
|
+
size?: BreakpointCustomizable<"default" | "inherit"> | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies the type of the button.
|
|
121
|
+
*/
|
|
122
|
+
type?: "reset" | "button" | "submit" | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Font weight of the description.
|
|
125
|
+
*/
|
|
126
|
+
weight?: BreakpointCustomizable<"regular" | "semi-bold"> | undefined;
|
|
127
|
+
}>, {
|
|
128
|
+
align: string;
|
|
129
|
+
aspectRatio: string;
|
|
130
|
+
compact: boolean;
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
gradient: boolean;
|
|
133
|
+
icon: string;
|
|
134
|
+
loading: boolean;
|
|
135
|
+
size: string;
|
|
136
|
+
type: string;
|
|
137
|
+
weight: string;
|
|
138
|
+
}>>>, {
|
|
139
|
+
weight: BreakpointCustomizable<ButtonTileWeight>;
|
|
140
|
+
compact: BreakpointCustomizable<boolean>;
|
|
141
|
+
size: BreakpointCustomizable<ButtonTileSize>;
|
|
142
|
+
type: ButtonTileType;
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
icon: ButtonTileIcon;
|
|
145
|
+
loading: boolean;
|
|
146
|
+
align: ButtonTileAlign;
|
|
147
|
+
aspectRatio: BreakpointCustomizable<ButtonTileAspectRatio>;
|
|
148
|
+
gradient: boolean;
|
|
149
|
+
}>, {
|
|
150
|
+
default: (_: {}) => any;
|
|
151
|
+
}>;
|
|
152
|
+
export default _default;
|
|
153
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
154
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
155
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
156
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
157
|
+
} : {
|
|
158
|
+
type: import('vue').PropType<T[K]>;
|
|
159
|
+
required: true;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
type __VLS_WithDefaults<P, D> = {
|
|
163
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
164
|
+
default: D[K];
|
|
165
|
+
} : P[K];
|
|
166
|
+
};
|
|
167
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
168
|
+
new (): {
|
|
169
|
+
$slots: S;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as u, ref as r, onMounted as d, onUpdated as f, openBlock as p, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as b } from "vue";
|
|
2
|
+
import { getPrefixedTagName as g, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const C = /* @__PURE__ */ u({
|
|
4
|
+
__name: "ButtonTileWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
align: { default: "bottom" },
|
|
7
|
+
aria: null,
|
|
8
|
+
aspectRatio: { default: "4:3" },
|
|
9
|
+
compact: { default: !1 },
|
|
10
|
+
description: null,
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
gradient: { type: Boolean, default: !0 },
|
|
13
|
+
icon: { default: "none" },
|
|
14
|
+
iconSource: null,
|
|
15
|
+
label: null,
|
|
16
|
+
loading: { type: Boolean, default: !1 },
|
|
17
|
+
size: { default: "default" },
|
|
18
|
+
type: { default: "submit" },
|
|
19
|
+
weight: { default: "semi-bold" }
|
|
20
|
+
},
|
|
21
|
+
setup(n) {
|
|
22
|
+
const t = n, a = g("p-button-tile"), e = r();
|
|
23
|
+
return d(() => {
|
|
24
|
+
o(e.value, t);
|
|
25
|
+
}), f(() => {
|
|
26
|
+
o(e.value, t);
|
|
27
|
+
}), (l, y) => (p(), s(i(c(a)), {
|
|
28
|
+
ref_key: "pdsComponentRef",
|
|
29
|
+
ref: e
|
|
30
|
+
}, {
|
|
31
|
+
default: m(() => [
|
|
32
|
+
b(l.$slots, "default")
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 512));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
C as default
|
|
40
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, BreakpointCustomizable,
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* The icon shown. By choosing 'none', no icon is displayed.
|
|
17
17
|
*/
|
|
18
|
-
icon?: LinkButtonIconName | undefined;
|
|
18
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* A URL path to a custom icon.
|
|
21
21
|
*/
|
|
@@ -60,7 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
60
|
/**
|
|
61
61
|
* The icon shown. By choosing 'none', no icon is displayed.
|
|
62
62
|
*/
|
|
63
|
-
icon?: LinkButtonIconName | undefined;
|
|
63
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* A URL path to a custom icon.
|
|
66
66
|
*/
|
|
@@ -90,11 +90,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
90
90
|
type: string;
|
|
91
91
|
variant: string;
|
|
92
92
|
}>>>, {
|
|
93
|
-
disabled: boolean;
|
|
94
93
|
theme: Theme;
|
|
95
94
|
type: ButtonType;
|
|
95
|
+
disabled: boolean;
|
|
96
96
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
97
|
-
icon:
|
|
97
|
+
icon: ButtonIcon;
|
|
98
98
|
loading: boolean;
|
|
99
99
|
variant: ButtonVariant;
|
|
100
100
|
}>, {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { CarouselAlignHeader, BreakpointCustomizable, CarouselChangeEvent, Theme, CarouselWidth } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Defines which slide to be active (zero-based numbering).
|
|
5
|
+
*/
|
|
6
|
+
activeSlideIndex?: number | undefined;
|
|
3
7
|
/**
|
|
4
8
|
* Alignment of heading and description
|
|
5
9
|
*/
|
|
@@ -9,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
13
|
*/
|
|
10
14
|
description?: string | undefined;
|
|
11
15
|
/**
|
|
12
|
-
* If true, the carousel will not show pagination bullets at the bottom.
|
|
16
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
|
|
13
17
|
*/
|
|
14
18
|
disablePagination?: BreakpointCustomizable<boolean> | undefined;
|
|
15
19
|
/**
|
|
@@ -20,14 +24,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
24
|
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
21
25
|
*/
|
|
22
26
|
intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* If false, the carousel will not show pagination bullets at the bottom.
|
|
29
|
+
*/
|
|
30
|
+
pagination?: BreakpointCustomizable<boolean> | undefined;
|
|
23
31
|
/**
|
|
24
32
|
* Whether the slides should rewind from last to first slide and vice versa.
|
|
25
33
|
*/
|
|
26
34
|
rewind?: boolean | undefined;
|
|
27
35
|
/**
|
|
28
|
-
* Sets the amount of slides visible at the same time.
|
|
36
|
+
* Sets the amount of slides visible at the same time. Can be set to `auto` if you want to define different widths per slide via CSS.
|
|
29
37
|
*/
|
|
30
|
-
slidesPerPage?: BreakpointCustomizable<number> | undefined;
|
|
38
|
+
slidesPerPage?: "auto" | BreakpointCustomizable<number> | undefined;
|
|
31
39
|
/**
|
|
32
40
|
* Adapts the color when used on dark background.
|
|
33
41
|
*/
|
|
@@ -42,16 +50,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
50
|
*/
|
|
43
51
|
wrapContent?: boolean | undefined;
|
|
44
52
|
}>, {
|
|
53
|
+
activeSlideIndex: number;
|
|
45
54
|
alignHeader: string;
|
|
46
|
-
|
|
47
|
-
intl: () => {};
|
|
55
|
+
pagination: boolean;
|
|
48
56
|
rewind: boolean;
|
|
49
57
|
slidesPerPage: number;
|
|
50
58
|
theme: string;
|
|
51
59
|
width: string;
|
|
52
60
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
61
|
carouselChange: (value: CarouselChangeEvent) => void;
|
|
62
|
+
} & {
|
|
63
|
+
change: (value: CarouselChangeEvent) => void;
|
|
54
64
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
65
|
+
/**
|
|
66
|
+
* Defines which slide to be active (zero-based numbering).
|
|
67
|
+
*/
|
|
68
|
+
activeSlideIndex?: number | undefined;
|
|
55
69
|
/**
|
|
56
70
|
* Alignment of heading and description
|
|
57
71
|
*/
|
|
@@ -61,7 +75,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
61
75
|
*/
|
|
62
76
|
description?: string | undefined;
|
|
63
77
|
/**
|
|
64
|
-
* If true, the carousel will not show pagination bullets at the bottom.
|
|
78
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
|
|
65
79
|
*/
|
|
66
80
|
disablePagination?: BreakpointCustomizable<boolean> | undefined;
|
|
67
81
|
/**
|
|
@@ -72,14 +86,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
72
86
|
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
73
87
|
*/
|
|
74
88
|
intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* If false, the carousel will not show pagination bullets at the bottom.
|
|
91
|
+
*/
|
|
92
|
+
pagination?: BreakpointCustomizable<boolean> | undefined;
|
|
75
93
|
/**
|
|
76
94
|
* Whether the slides should rewind from last to first slide and vice versa.
|
|
77
95
|
*/
|
|
78
96
|
rewind?: boolean | undefined;
|
|
79
97
|
/**
|
|
80
|
-
* Sets the amount of slides visible at the same time.
|
|
98
|
+
* Sets the amount of slides visible at the same time. Can be set to `auto` if you want to define different widths per slide via CSS.
|
|
81
99
|
*/
|
|
82
|
-
slidesPerPage?: BreakpointCustomizable<number> | undefined;
|
|
100
|
+
slidesPerPage?: "auto" | BreakpointCustomizable<number> | undefined;
|
|
83
101
|
/**
|
|
84
102
|
* Adapts the color when used on dark background.
|
|
85
103
|
*/
|
|
@@ -94,23 +112,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
94
112
|
*/
|
|
95
113
|
wrapContent?: boolean | undefined;
|
|
96
114
|
}>, {
|
|
115
|
+
activeSlideIndex: number;
|
|
97
116
|
alignHeader: string;
|
|
98
|
-
|
|
99
|
-
intl: () => {};
|
|
117
|
+
pagination: boolean;
|
|
100
118
|
rewind: boolean;
|
|
101
119
|
slidesPerPage: number;
|
|
102
120
|
theme: string;
|
|
103
121
|
width: string;
|
|
104
122
|
}>>> & {
|
|
123
|
+
onChange?: ((value: CarouselChangeEvent) => any) | undefined;
|
|
105
124
|
onCarouselChange?: ((value: CarouselChangeEvent) => any) | undefined;
|
|
106
125
|
}, {
|
|
107
126
|
theme: Theme;
|
|
108
127
|
width: CarouselWidth;
|
|
128
|
+
activeSlideIndex: number;
|
|
109
129
|
alignHeader: CarouselAlignHeader;
|
|
110
|
-
|
|
111
|
-
intl: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
|
|
130
|
+
pagination: BreakpointCustomizable<boolean>;
|
|
112
131
|
rewind: boolean;
|
|
113
|
-
slidesPerPage: BreakpointCustomizable<number
|
|
132
|
+
slidesPerPage: BreakpointCustomizable<number> | "auto";
|
|
114
133
|
}>, {
|
|
115
134
|
default: (_: {}) => any;
|
|
116
135
|
}>;
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const P = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as u, ref as s, onMounted as i, onUpdated as p, openBlock as f, createBlock as c, resolveDynamicComponent as m, unref as g, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as v, syncProperties as a, addEventListenerToElementRef as o } from "../../utils.js";
|
|
3
|
+
const P = /* @__PURE__ */ u({
|
|
4
4
|
__name: "CarouselWrapper",
|
|
5
5
|
props: {
|
|
6
|
+
activeSlideIndex: { default: 0 },
|
|
6
7
|
alignHeader: { default: "left" },
|
|
7
8
|
description: null,
|
|
8
|
-
disablePagination:
|
|
9
|
+
disablePagination: null,
|
|
9
10
|
heading: null,
|
|
10
|
-
intl:
|
|
11
|
+
intl: null,
|
|
12
|
+
pagination: { default: !0 },
|
|
11
13
|
rewind: { type: Boolean, default: !0 },
|
|
12
14
|
slidesPerPage: { default: 1 },
|
|
13
15
|
theme: { default: "light" },
|
|
14
16
|
width: { default: "basic" },
|
|
15
17
|
wrapContent: { type: Boolean }
|
|
16
18
|
},
|
|
17
|
-
emits: ["carouselChange"],
|
|
18
|
-
setup(
|
|
19
|
-
const t =
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
}), (
|
|
19
|
+
emits: ["carouselChange", "change"],
|
|
20
|
+
setup(l, { emit: n }) {
|
|
21
|
+
const t = l, r = v("p-carousel"), e = s();
|
|
22
|
+
return i(() => {
|
|
23
|
+
a(e.value, t), o(e.value, "carouselChange", n), o(e.value, "change", n);
|
|
24
|
+
}), p(() => {
|
|
25
|
+
a(e.value, t);
|
|
26
|
+
}), (d, _) => (f(), c(m(g(r)), {
|
|
25
27
|
ref_key: "pdsComponentRef",
|
|
26
28
|
ref: e
|
|
27
29
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
C(
|
|
30
|
+
default: h(() => [
|
|
31
|
+
C(d.$slots, "default")
|
|
30
32
|
]),
|
|
31
33
|
_: 3
|
|
32
34
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
@@ -56,7 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
56
|
}>>>, {
|
|
57
57
|
label: string;
|
|
58
58
|
theme: Theme;
|
|
59
|
-
state:
|
|
59
|
+
state: CheckboxWrapperState;
|
|
60
60
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
61
61
|
message: string;
|
|
62
62
|
}>, {
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
/**
|
|
8
8
|
* Basic text color variations depending on theme property.
|
|
9
9
|
*/
|
|
10
|
-
color?: "
|
|
10
|
+
color?: "inherit" | "primary" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
18
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Sets a custom HTML tag depending on the usage of the display component.
|
|
21
21
|
*/
|
|
@@ -38,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
38
|
/**
|
|
39
39
|
* Basic text color variations depending on theme property.
|
|
40
40
|
*/
|
|
41
|
-
color?: "
|
|
41
|
+
color?: "inherit" | "primary" | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
44
44
|
*/
|
|
@@ -46,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
46
|
/**
|
|
47
47
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
48
48
|
*/
|
|
49
|
-
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
49
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* Sets a custom HTML tag depending on the usage of the display component.
|
|
52
52
|
*/
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type { DividerColor, BreakpointCustomizable,
|
|
1
|
+
import type { DividerColor, BreakpointCustomizable, DividerDirection, Theme } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines color depending on theme.
|
|
5
5
|
*/
|
|
6
6
|
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
7
7
|
/**
|
|
8
|
-
* Defines
|
|
8
|
+
* Defines direction.
|
|
9
|
+
*/
|
|
10
|
+
direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
|
|
9
13
|
*/
|
|
10
14
|
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
15
|
/**
|
|
@@ -14,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
18
|
theme?: "light" | "dark" | undefined;
|
|
15
19
|
}>, {
|
|
16
20
|
color: string;
|
|
17
|
-
|
|
21
|
+
direction: string;
|
|
18
22
|
theme: string;
|
|
19
23
|
}>, {}, 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<{
|
|
20
24
|
/**
|
|
@@ -22,7 +26,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
26
|
*/
|
|
23
27
|
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
24
28
|
/**
|
|
25
|
-
* Defines
|
|
29
|
+
* Defines direction.
|
|
30
|
+
*/
|
|
31
|
+
direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
|
|
26
34
|
*/
|
|
27
35
|
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
28
36
|
/**
|
|
@@ -31,12 +39,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
31
39
|
theme?: "light" | "dark" | undefined;
|
|
32
40
|
}>, {
|
|
33
41
|
color: string;
|
|
34
|
-
|
|
42
|
+
direction: string;
|
|
35
43
|
theme: string;
|
|
36
44
|
}>>>, {
|
|
37
45
|
theme: Theme;
|
|
46
|
+
direction: BreakpointCustomizable<DividerDirection>;
|
|
38
47
|
color: DividerColor;
|
|
39
|
-
orientation: BreakpointCustomizable<DividerOrientation>;
|
|
40
48
|
}>;
|
|
41
49
|
export default _default;
|
|
42
50
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineComponent as p, ref as a, onMounted as
|
|
2
|
-
import { getPrefixedTagName as m, syncProperties as
|
|
1
|
+
import { defineComponent as p, ref as a, onMounted as i, onUpdated as l, openBlock as c, createBlock as d, resolveDynamicComponent as f, unref as s } from "vue";
|
|
2
|
+
import { getPrefixedTagName as m, syncProperties as n } from "../../utils.js";
|
|
3
3
|
const g = /* @__PURE__ */ p({
|
|
4
4
|
__name: "DividerWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "contrast-low" },
|
|
7
|
-
|
|
7
|
+
direction: { default: "horizontal" },
|
|
8
|
+
orientation: null,
|
|
8
9
|
theme: { default: "light" }
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const o =
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
}), (u, _) => (
|
|
11
|
+
setup(t) {
|
|
12
|
+
const o = t, r = m("p-divider"), e = a();
|
|
13
|
+
return i(() => {
|
|
14
|
+
n(e.value, o);
|
|
15
|
+
}), l(() => {
|
|
16
|
+
n(e.value, o);
|
|
17
|
+
}), (u, _) => (c(), d(f(s(r)), {
|
|
17
18
|
ref_key: "pdsComponentRef",
|
|
18
19
|
ref: e
|
|
19
20
|
}, null, 512));
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { FieldsetLabelSize, FieldsetState, Theme } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* The label text.
|
|
5
|
+
*/
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The size of the label text.
|
|
9
|
+
*/
|
|
10
|
+
labelSize?: "small" | "medium" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The message styled depending on validation state.
|
|
13
|
+
*/
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Marks the Fieldset as required.
|
|
17
|
+
*/
|
|
18
|
+
required?: boolean | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The validation state.
|
|
21
|
+
*/
|
|
22
|
+
state?: "success" | "none" | "error" | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Adapts color depending on theme.
|
|
25
|
+
*/
|
|
26
|
+
theme?: "light" | "dark" | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
label: string;
|
|
29
|
+
labelSize: string;
|
|
30
|
+
message: string;
|
|
31
|
+
required: boolean;
|
|
32
|
+
state: string;
|
|
33
|
+
theme: 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
|
+
* The label text.
|
|
37
|
+
*/
|
|
38
|
+
label?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The size of the label text.
|
|
41
|
+
*/
|
|
42
|
+
labelSize?: "small" | "medium" | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The message styled depending on validation state.
|
|
45
|
+
*/
|
|
46
|
+
message?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Marks the Fieldset as required.
|
|
49
|
+
*/
|
|
50
|
+
required?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The validation state.
|
|
53
|
+
*/
|
|
54
|
+
state?: "success" | "none" | "error" | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Adapts color depending on theme.
|
|
57
|
+
*/
|
|
58
|
+
theme?: "light" | "dark" | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
label: string;
|
|
61
|
+
labelSize: string;
|
|
62
|
+
message: string;
|
|
63
|
+
required: boolean;
|
|
64
|
+
state: string;
|
|
65
|
+
theme: string;
|
|
66
|
+
}>>>, {
|
|
67
|
+
label: string;
|
|
68
|
+
theme: Theme;
|
|
69
|
+
state: FieldsetState;
|
|
70
|
+
required: boolean;
|
|
71
|
+
message: string;
|
|
72
|
+
labelSize: FieldsetLabelSize;
|
|
73
|
+
}>, {
|
|
74
|
+
default: (_: {}) => any;
|
|
75
|
+
}>;
|
|
76
|
+
export default _default;
|
|
77
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
78
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
79
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
80
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
81
|
+
} : {
|
|
82
|
+
type: import('vue').PropType<T[K]>;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
type __VLS_WithDefaults<P, D> = {
|
|
87
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
88
|
+
default: D[K];
|
|
89
|
+
} : P[K];
|
|
90
|
+
};
|
|
91
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
92
|
+
new (): {
|
|
93
|
+
$slots: S;
|
|
94
|
+
};
|
|
95
|
+
};
|