@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
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as _, syncProperties as
|
|
3
|
-
const b = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as p, ref as d, onMounted as f, onUpdated as u, openBlock as i, createBlock as m, resolveDynamicComponent as c, unref as B, withCtx as C, renderSlot as y } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as n, addEventListenerToElementRef as a } from "../../utils.js";
|
|
3
|
+
const b = /* @__PURE__ */ p({
|
|
4
4
|
__name: "ModalWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: null,
|
|
7
7
|
disableBackdropClick: { type: Boolean, default: !1 },
|
|
8
|
-
disableCloseButton: { type: Boolean
|
|
8
|
+
disableCloseButton: { type: Boolean },
|
|
9
|
+
dismissButton: { type: Boolean, default: !0 },
|
|
9
10
|
fullscreen: { default: !1 },
|
|
10
11
|
heading: null,
|
|
11
12
|
open: { type: Boolean, default: !1 }
|
|
12
13
|
},
|
|
13
|
-
emits: ["close"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
14
|
+
emits: ["close", "dismiss"],
|
|
15
|
+
setup(l, { emit: o }) {
|
|
16
|
+
const t = l, s = _("p-modal"), e = d();
|
|
16
17
|
return f(() => {
|
|
17
|
-
t(e.value, o),
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
}), (r,
|
|
18
|
+
n(e.value, t), a(e.value, "close", o), a(e.value, "dismiss", o);
|
|
19
|
+
}), u(() => {
|
|
20
|
+
n(e.value, t);
|
|
21
|
+
}), (r, v) => (i(), m(c(B(s)), {
|
|
21
22
|
ref_key: "pdsComponentRef",
|
|
22
23
|
ref: e
|
|
23
24
|
}, {
|
|
24
25
|
default: C(() => [
|
|
25
|
-
|
|
26
|
+
y(r.$slots, "default")
|
|
26
27
|
]),
|
|
27
28
|
_: 3
|
|
28
29
|
}, 512));
|
|
@@ -3,11 +3,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
3
3
|
/**
|
|
4
4
|
* Adapts the color of the component.
|
|
5
5
|
*/
|
|
6
|
-
color?: "primary" | "contrast-low" | "contrast-medium" | "contrast-high" |
|
|
6
|
+
color?: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Adapts the model of the component.
|
|
9
9
|
*/
|
|
10
|
-
model?: "
|
|
10
|
+
model?: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Adapts the size of the component.
|
|
13
13
|
*/
|
|
@@ -25,11 +25,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
25
|
/**
|
|
26
26
|
* Adapts the color of the component.
|
|
27
27
|
*/
|
|
28
|
-
color?: "primary" | "contrast-low" | "contrast-medium" | "contrast-high" |
|
|
28
|
+
color?: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Adapts the model of the component.
|
|
31
31
|
*/
|
|
32
|
-
model?: "
|
|
32
|
+
model?: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo" | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Adapts the size of the component.
|
|
35
35
|
*/
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, PaginationMaxNumberOfPageLinks, PaginationChangeEvent, Theme } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Index of the currently active page.
|
|
5
5
|
*/
|
|
6
6
|
activePage: number;
|
|
7
7
|
/**
|
|
8
|
-
* Aria label what the pagination is used for.
|
|
8
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.root` instead. Aria label what the pagination is used for.
|
|
9
9
|
*/
|
|
10
10
|
allyLabel?: string | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* Aria label for next page icon.
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.next` instead. Aria label for next page icon.
|
|
13
13
|
*/
|
|
14
14
|
allyLabelNext?: string | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* Aria label for page navigation.
|
|
16
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.page` instead. Aria label for page navigation.
|
|
17
17
|
*/
|
|
18
18
|
allyLabelPage?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* Aria label for previous page icon.
|
|
20
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.prev` instead. Aria label for previous page icon.
|
|
21
21
|
*/
|
|
22
22
|
allyLabelPrev?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Override the default wordings that are used for aria-labels on the next/prev and page buttons.
|
|
25
|
+
*/
|
|
26
|
+
intl?: Partial<Record<"page" | "prev" | "next" | "root", string>> | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* The total count of items which should be shown per page.
|
|
25
29
|
*/
|
|
@@ -38,10 +42,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
42
|
totalItemsCount: number;
|
|
39
43
|
}>, {
|
|
40
44
|
activePage: number;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
intl: () => {
|
|
46
|
+
root: string;
|
|
47
|
+
prev: string;
|
|
48
|
+
next: string;
|
|
49
|
+
page: string;
|
|
50
|
+
};
|
|
45
51
|
itemsPerPage: number;
|
|
46
52
|
maxNumberOfPageLinks: () => {
|
|
47
53
|
base: number;
|
|
@@ -50,28 +56,34 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
50
56
|
theme: string;
|
|
51
57
|
totalItemsCount: number;
|
|
52
58
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
-
|
|
59
|
+
change: (value: PaginationChangeEvent) => void;
|
|
60
|
+
} & {
|
|
61
|
+
pageChange: (value: PaginationChangeEvent) => void;
|
|
54
62
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
55
63
|
/**
|
|
56
64
|
* Index of the currently active page.
|
|
57
65
|
*/
|
|
58
66
|
activePage: number;
|
|
59
67
|
/**
|
|
60
|
-
* Aria label what the pagination is used for.
|
|
68
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.root` instead. Aria label what the pagination is used for.
|
|
61
69
|
*/
|
|
62
70
|
allyLabel?: string | undefined;
|
|
63
71
|
/**
|
|
64
|
-
* Aria label for next page icon.
|
|
72
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.next` instead. Aria label for next page icon.
|
|
65
73
|
*/
|
|
66
74
|
allyLabelNext?: string | undefined;
|
|
67
75
|
/**
|
|
68
|
-
* Aria label for page navigation.
|
|
76
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.page` instead. Aria label for page navigation.
|
|
69
77
|
*/
|
|
70
78
|
allyLabelPage?: string | undefined;
|
|
71
79
|
/**
|
|
72
|
-
* Aria label for previous page icon.
|
|
80
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `intl.prev` instead. Aria label for previous page icon.
|
|
73
81
|
*/
|
|
74
82
|
allyLabelPrev?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Override the default wordings that are used for aria-labels on the next/prev and page buttons.
|
|
85
|
+
*/
|
|
86
|
+
intl?: Partial<Record<"page" | "prev" | "next" | "root", string>> | undefined;
|
|
75
87
|
/**
|
|
76
88
|
* The total count of items which should be shown per page.
|
|
77
89
|
*/
|
|
@@ -90,10 +102,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
90
102
|
totalItemsCount: number;
|
|
91
103
|
}>, {
|
|
92
104
|
activePage: number;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
105
|
+
intl: () => {
|
|
106
|
+
root: string;
|
|
107
|
+
prev: string;
|
|
108
|
+
next: string;
|
|
109
|
+
page: string;
|
|
110
|
+
};
|
|
97
111
|
itemsPerPage: number;
|
|
98
112
|
maxNumberOfPageLinks: () => {
|
|
99
113
|
base: number;
|
|
@@ -102,16 +116,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
102
116
|
theme: string;
|
|
103
117
|
totalItemsCount: number;
|
|
104
118
|
}>>> & {
|
|
105
|
-
|
|
119
|
+
onChange?: ((value: PaginationChangeEvent) => any) | undefined;
|
|
120
|
+
onPageChange?: ((value: PaginationChangeEvent) => any) | undefined;
|
|
106
121
|
}, {
|
|
107
122
|
theme: Theme;
|
|
123
|
+
intl: Partial<Record<"page" | "prev" | "next" | "root", string>>;
|
|
108
124
|
activePage: number;
|
|
109
|
-
allyLabel: string;
|
|
110
|
-
allyLabelNext: string;
|
|
111
|
-
allyLabelPage: string;
|
|
112
|
-
allyLabelPrev: string;
|
|
113
125
|
itemsPerPage: number;
|
|
114
|
-
maxNumberOfPageLinks: BreakpointCustomizable<
|
|
126
|
+
maxNumberOfPageLinks: BreakpointCustomizable<PaginationMaxNumberOfPageLinks>;
|
|
115
127
|
totalItemsCount: number;
|
|
116
128
|
}>;
|
|
117
129
|
export default _default;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, ref as u, onMounted as s, onUpdated as g, openBlock as f, createBlock as i, resolveDynamicComponent as m, unref as c } from "vue";
|
|
2
|
+
import { getPrefixedTagName as d, syncProperties as t, addEventListenerToElementRef as l } from "../../utils.js";
|
|
3
|
+
const b = /* @__PURE__ */ p({
|
|
4
4
|
__name: "PaginationWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
activePage: { default: 1 },
|
|
7
|
-
allyLabel:
|
|
8
|
-
allyLabelNext:
|
|
9
|
-
allyLabelPage:
|
|
10
|
-
allyLabelPrev:
|
|
7
|
+
allyLabel: null,
|
|
8
|
+
allyLabelNext: null,
|
|
9
|
+
allyLabelPage: null,
|
|
10
|
+
allyLabelPrev: null,
|
|
11
|
+
intl: { default: () => ({ root: "Pagination", prev: "Previous page", next: "Next page", page: "Page" }) },
|
|
11
12
|
itemsPerPage: { default: 1 },
|
|
12
13
|
maxNumberOfPageLinks: { default: () => ({ base: 5, xs: 7 }) },
|
|
13
14
|
theme: { default: "light" },
|
|
14
15
|
totalItemsCount: { default: 1 }
|
|
15
16
|
},
|
|
16
|
-
emits: ["pageChange"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
t(e.value, a),
|
|
21
|
-
}),
|
|
22
|
-
t(e.value,
|
|
23
|
-
}), (P, v) => (
|
|
17
|
+
emits: ["change", "pageChange"],
|
|
18
|
+
setup(o, { emit: a }) {
|
|
19
|
+
const n = o, r = d("p-pagination"), e = u();
|
|
20
|
+
return s(() => {
|
|
21
|
+
t(e.value, n), l(e.value, "change", a), l(e.value, "pageChange", a);
|
|
22
|
+
}), g(() => {
|
|
23
|
+
t(e.value, n);
|
|
24
|
+
}), (P, v) => (f(), i(m(c(r)), {
|
|
24
25
|
ref_key: "pdsComponentRef",
|
|
25
26
|
ref: e
|
|
26
27
|
}, null, 512));
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
b as default
|
|
31
32
|
};
|
|
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
/**
|
|
12
12
|
* Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
|
|
13
13
|
*/
|
|
14
|
-
direction?: "top" | "
|
|
14
|
+
direction?: "top" | "bottom" | "left" | "right" | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Adapts the popover color depending on the theme.
|
|
17
17
|
*/
|
|
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
31
|
/**
|
|
32
32
|
* Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
|
|
33
33
|
*/
|
|
34
|
-
direction?: "top" | "
|
|
34
|
+
direction?: "top" | "bottom" | "left" | "right" | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Adapts the popover color depending on the theme.
|
|
37
37
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, RadioButtonWrapperState, 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: RadioButtonWrapperState;
|
|
60
60
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
61
61
|
message: string;
|
|
62
62
|
}>, {
|
|
@@ -1,50 +1,77 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScrollerAlignScrollIndicator, ScrollerGradientColor, ScrollerScrollToPosition, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Sets the vertical position of scroll indicator
|
|
5
|
+
*/
|
|
6
|
+
alignScrollIndicator?: "top" | "center" | undefined;
|
|
3
7
|
/**
|
|
4
8
|
* Adapts the background gradient color of prev and next button.
|
|
5
9
|
*/
|
|
10
|
+
gradientColor?: "background-base" | "background-surface" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @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
|
+
*/
|
|
6
14
|
gradientColorScheme?: "default" | "surface" | undefined;
|
|
7
15
|
/**
|
|
8
|
-
* Sets the vertical position of scroll indicator
|
|
16
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
|
|
9
17
|
*/
|
|
10
18
|
scrollIndicatorPosition?: "top" | "center" | undefined;
|
|
11
19
|
/**
|
|
12
20
|
* Scrolls the scroll area to the left either smooth or immediately
|
|
13
21
|
*/
|
|
14
|
-
scrollToPosition?:
|
|
22
|
+
scrollToPosition?: ScrollerScrollToPosition | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Specifies if scrollbar should be shown
|
|
25
|
+
*/
|
|
26
|
+
scrollbar?: boolean | undefined;
|
|
15
27
|
/**
|
|
16
28
|
* Adapts the color when used on dark background.
|
|
17
29
|
*/
|
|
18
30
|
theme?: "light" | "dark" | undefined;
|
|
19
31
|
}>, {
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
alignScrollIndicator: string;
|
|
33
|
+
gradientColor: string;
|
|
34
|
+
scrollbar: boolean;
|
|
22
35
|
theme: string;
|
|
23
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;
|
|
24
41
|
/**
|
|
25
42
|
* Adapts the background gradient color of prev and next button.
|
|
26
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
|
+
*/
|
|
27
48
|
gradientColorScheme?: "default" | "surface" | undefined;
|
|
28
49
|
/**
|
|
29
|
-
* Sets the vertical position of scroll indicator
|
|
50
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
|
|
30
51
|
*/
|
|
31
52
|
scrollIndicatorPosition?: "top" | "center" | undefined;
|
|
32
53
|
/**
|
|
33
54
|
* Scrolls the scroll area to the left either smooth or immediately
|
|
34
55
|
*/
|
|
35
|
-
scrollToPosition?:
|
|
56
|
+
scrollToPosition?: ScrollerScrollToPosition | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies if scrollbar should be shown
|
|
59
|
+
*/
|
|
60
|
+
scrollbar?: boolean | undefined;
|
|
36
61
|
/**
|
|
37
62
|
* Adapts the color when used on dark background.
|
|
38
63
|
*/
|
|
39
64
|
theme?: "light" | "dark" | undefined;
|
|
40
65
|
}>, {
|
|
41
|
-
|
|
42
|
-
|
|
66
|
+
alignScrollIndicator: string;
|
|
67
|
+
gradientColor: string;
|
|
68
|
+
scrollbar: boolean;
|
|
43
69
|
theme: string;
|
|
44
70
|
}>>>, {
|
|
45
71
|
theme: Theme;
|
|
46
|
-
|
|
47
|
-
|
|
72
|
+
alignScrollIndicator: ScrollerAlignScrollIndicator;
|
|
73
|
+
gradientColor: ScrollerGradientColor;
|
|
74
|
+
scrollbar: boolean;
|
|
48
75
|
}>, {
|
|
49
76
|
default: (_: {}) => any;
|
|
50
77
|
}>;
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
2
|
-
import { getPrefixedTagName as
|
|
1
|
+
import { defineComponent as a, ref as s, onMounted as c, onUpdated as p, openBlock as d, createBlock as f, resolveDynamicComponent as i, unref as u, withCtx as m, renderSlot as g } from "vue";
|
|
2
|
+
import { getPrefixedTagName as C, syncProperties as r } from "../../utils.js";
|
|
3
3
|
const k = /* @__PURE__ */ a({
|
|
4
4
|
__name: "ScrollerWrapper",
|
|
5
5
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
alignScrollIndicator: { default: "center" },
|
|
7
|
+
gradientColor: { default: "background-base" },
|
|
8
|
+
gradientColorScheme: null,
|
|
9
|
+
scrollIndicatorPosition: null,
|
|
8
10
|
scrollToPosition: null,
|
|
11
|
+
scrollbar: { type: Boolean, default: !1 },
|
|
9
12
|
theme: { default: "light" }
|
|
10
13
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const o =
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
}), (l,
|
|
14
|
+
setup(t) {
|
|
15
|
+
const o = t, n = C("p-scroller"), e = s();
|
|
16
|
+
return c(() => {
|
|
17
|
+
r(e.value, o);
|
|
18
|
+
}), p(() => {
|
|
19
|
+
r(e.value, o);
|
|
20
|
+
}), (l, _) => (d(), f(i(u(n)), {
|
|
18
21
|
ref_key: "pdsComponentRef",
|
|
19
22
|
ref: e
|
|
20
23
|
}, {
|
|
21
|
-
default:
|
|
22
|
-
|
|
24
|
+
default: m(() => [
|
|
25
|
+
g(l.$slots, "default")
|
|
23
26
|
]),
|
|
24
27
|
_: 3
|
|
25
28
|
}, 512));
|
|
@@ -6,7 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
6
|
/**
|
|
7
7
|
* The icon shown.
|
|
8
8
|
*/
|
|
9
|
-
icon?: "
|
|
9
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* A URL path to a custom icon.
|
|
12
12
|
*/
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
/**
|
|
30
30
|
* The icon shown.
|
|
31
31
|
*/
|
|
32
|
-
icon?: "
|
|
32
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* A URL path to a custom icon.
|
|
35
35
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SegmentedControlChangeEvent, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated Background color variations
|
|
4
|
+
* @deprecated since v3.0.0, will be removed with next major release. Background color variations
|
|
5
5
|
*/
|
|
6
6
|
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
7
7
|
/**
|
|
@@ -15,10 +15,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
}>, {
|
|
16
16
|
theme: string;
|
|
17
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
change: (value: SegmentedControlChangeEvent) => void;
|
|
19
|
+
} & {
|
|
18
20
|
segmentedControlChange: (value: SegmentedControlChangeEvent) => void;
|
|
19
21
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
22
|
/**
|
|
21
|
-
* @deprecated Background color variations
|
|
23
|
+
* @deprecated since v3.0.0, will be removed with next major release. Background color variations
|
|
22
24
|
*/
|
|
23
25
|
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
24
26
|
/**
|
|
@@ -32,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
34
|
}>, {
|
|
33
35
|
theme: string;
|
|
34
36
|
}>>> & {
|
|
37
|
+
onChange?: ((value: SegmentedControlChangeEvent) => any) | undefined;
|
|
35
38
|
onSegmentedControlChange?: ((value: SegmentedControlChangeEvent) => any) | undefined;
|
|
36
39
|
}, {
|
|
37
40
|
theme: Theme;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const y = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as s, ref as d, onMounted as m, onUpdated as u, openBlock as c, createBlock as f, resolveDynamicComponent as g, unref as C, withCtx as i, renderSlot as h } from "vue";
|
|
2
|
+
import { getPrefixedTagName as v, syncProperties as t, addEventListenerToElementRef as r } from "../../utils.js";
|
|
3
|
+
const y = /* @__PURE__ */ s({
|
|
4
4
|
__name: "SegmentedControlWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
backgroundColor: null,
|
|
7
7
|
theme: { default: "light" },
|
|
8
8
|
value: null
|
|
9
9
|
},
|
|
10
|
-
emits: ["segmentedControlChange"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
10
|
+
emits: ["change", "segmentedControlChange"],
|
|
11
|
+
setup(a, { emit: n }) {
|
|
12
|
+
const o = a, l = v("p-segmented-control"), e = d();
|
|
13
13
|
return m(() => {
|
|
14
|
-
o(e.value, n),
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
}), (
|
|
14
|
+
t(e.value, o), r(e.value, "change", n), r(e.value, "segmentedControlChange", n);
|
|
15
|
+
}), u(() => {
|
|
16
|
+
t(e.value, o);
|
|
17
|
+
}), (p, _) => (c(), f(g(C(l)), {
|
|
18
18
|
ref_key: "pdsComponentRef",
|
|
19
19
|
ref: e
|
|
20
20
|
}, {
|
|
21
|
-
default:
|
|
22
|
-
|
|
21
|
+
default: i(() => [
|
|
22
|
+
h(p.$slots, "default")
|
|
23
23
|
]),
|
|
24
24
|
_: 3
|
|
25
25
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectWrapperDropdownDirection, BreakpointCustomizable, SelectWrapperState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* The description text.
|
|
@@ -97,11 +97,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
97
97
|
filter: boolean;
|
|
98
98
|
label: string;
|
|
99
99
|
theme: Theme;
|
|
100
|
-
state: FormState;
|
|
101
|
-
hideLabel: BreakpointCustomizable<boolean>;
|
|
102
100
|
description: string;
|
|
101
|
+
state: SelectWrapperState;
|
|
102
|
+
hideLabel: BreakpointCustomizable<boolean>;
|
|
103
103
|
message: string;
|
|
104
|
-
dropdownDirection:
|
|
104
|
+
dropdownDirection: SelectWrapperDropdownDirection;
|
|
105
105
|
native: boolean;
|
|
106
106
|
}>, {
|
|
107
107
|
default: (_: {}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StepperHorizontalChangeEvent, BreakpointCustomizable, StepperHorizontalSize, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
size?: BreakpointCustomizable<"small" | "medium"> | undefined;
|
|
4
4
|
/**
|
|
@@ -9,7 +9,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
size: string;
|
|
10
10
|
theme: string;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
|
|
12
|
+
change: (value: StepperHorizontalChangeEvent) => void;
|
|
13
|
+
} & {
|
|
14
|
+
stepChange: (value: StepperHorizontalChangeEvent) => void;
|
|
13
15
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
16
|
size?: BreakpointCustomizable<"small" | "medium"> | undefined;
|
|
15
17
|
/**
|
|
@@ -20,7 +22,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
22
|
size: string;
|
|
21
23
|
theme: string;
|
|
22
24
|
}>>> & {
|
|
23
|
-
|
|
25
|
+
onChange?: ((value: StepperHorizontalChangeEvent) => any) | undefined;
|
|
26
|
+
onStepChange?: ((value: StepperHorizontalChangeEvent) => any) | undefined;
|
|
24
27
|
}, {
|
|
25
28
|
size: BreakpointCustomizable<StepperHorizontalSize>;
|
|
26
29
|
theme: Theme;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as _, syncProperties as o, addEventListenerToElementRef as
|
|
3
|
-
const y = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as l, ref as f, onMounted as m, onUpdated as d, openBlock as c, createBlock as u, resolveDynamicComponent as i, unref as h, withCtx as g, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as o, addEventListenerToElementRef as r } from "../../utils.js";
|
|
3
|
+
const y = /* @__PURE__ */ l({
|
|
4
4
|
__name: "StepperHorizontalWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
size: { default: "small" },
|
|
7
7
|
theme: { default: "light" }
|
|
8
8
|
},
|
|
9
|
-
emits: ["stepChange"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
return
|
|
13
|
-
o(e.value, t),
|
|
14
|
-
}),
|
|
15
|
-
o(e.value,
|
|
16
|
-
}), (
|
|
9
|
+
emits: ["change", "stepChange"],
|
|
10
|
+
setup(a, { emit: t }) {
|
|
11
|
+
const n = a, p = _("p-stepper-horizontal"), e = f();
|
|
12
|
+
return m(() => {
|
|
13
|
+
o(e.value, n), r(e.value, "change", t), r(e.value, "stepChange", t);
|
|
14
|
+
}), d(() => {
|
|
15
|
+
o(e.value, n);
|
|
16
|
+
}), (s, v) => (c(), u(i(h(p)), {
|
|
17
17
|
ref_key: "pdsComponentRef",
|
|
18
18
|
ref: e
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
20
|
+
default: g(() => [
|
|
21
|
+
C(s.$slots, "default")
|
|
22
22
|
]),
|
|
23
23
|
_: 3
|
|
24
24
|
}, 512));
|