@porsche-design-system/components-vue 2.20.0-rc.1 → 3.0.0-alpha.0
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 +403 -3
- package/lib/components/AccordionWrapper.vue.d.ts +5 -5
- package/lib/components/BannerWrapper.vue.d.ts +2 -2
- package/lib/components/BannerWrapper.vue.js +9 -9
- package/lib/components/ButtonPureWrapper.vue.d.ts +13 -24
- package/lib/components/ButtonPureWrapper.vue.js +7 -8
- package/lib/components/ButtonWrapper.vue.d.ts +9 -22
- package/lib/components/ButtonWrapper.vue.js +12 -13
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/CheckboxWrapperWrapper.vue.js +13 -12
- package/lib/components/ContentWrapperWrapper.vue.d.ts +11 -6
- package/lib/components/DisplayWrapper.vue.d.ts +92 -0
- package/lib/components/DisplayWrapper.vue.js +32 -0
- package/lib/components/DisplayWrapper.vue2.js +4 -0
- package/lib/components/DividerWrapper.vue.d.ts +2 -2
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/FieldsetWrapperWrapper.vue.js +11 -10
- package/lib/components/FlexItemWrapper.vue.d.ts +3 -2
- package/lib/components/FlexWrapper.vue.d.ts +1 -0
- package/lib/components/GridItemWrapper.vue.d.ts +5 -4
- package/lib/components/GridWrapper.vue.d.ts +5 -2
- package/lib/components/HeadingWrapper.vue.d.ts +92 -0
- package/lib/components/HeadingWrapper.vue.js +32 -0
- package/lib/components/HeadingWrapper.vue2.js +4 -0
- package/lib/components/HeadlineWrapper.vue.d.ts +8 -7
- package/lib/components/HeadlineWrapper.vue.js +5 -5
- package/lib/components/IconWrapper.vue.d.ts +17 -15
- package/lib/components/IconWrapper.vue.js +7 -7
- package/lib/components/InlineNotificationWrapper.vue.d.ts +4 -4
- package/lib/components/InlineNotificationWrapper.vue.js +7 -7
- package/lib/components/LinkPureWrapper.vue.d.ts +24 -11
- package/lib/components/LinkPureWrapper.vue.js +6 -5
- package/lib/components/LinkSocialWrapper.vue.d.ts +1 -0
- package/lib/components/LinkWrapper.vue.d.ts +9 -9
- package/lib/components/LinkWrapper.vue.js +10 -10
- package/lib/components/PopoverWrapper.vue.d.ts +12 -1
- package/lib/components/PopoverWrapper.vue.js +9 -8
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/RadioButtonWrapperWrapper.vue.js +7 -6
- package/lib/components/ScrollerWrapper.vue.d.ts +4 -4
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -3
- package/lib/components/SegmentedControlWrapper.vue.d.ts +3 -6
- package/lib/components/SegmentedControlWrapper.vue.js +14 -14
- package/lib/components/SpinnerWrapper.vue.d.ts +6 -6
- package/lib/components/SwitchWrapper.vue.d.ts +4 -17
- package/lib/components/SwitchWrapper.vue.js +7 -8
- package/lib/components/TabsBarWrapper.vue.d.ts +4 -4
- package/lib/components/TabsWrapper.vue.d.ts +4 -4
- package/lib/components/TagDismissibleWrapper.vue.d.ts +14 -3
- package/lib/components/TagDismissibleWrapper.vue.js +13 -12
- package/lib/components/TagWrapper.vue.d.ts +5 -5
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/TextFieldWrapperWrapper.vue.js +8 -7
- package/lib/components/TextWrapper.vue.d.ts +9 -9
- package/lib/components/TextWrapper.vue.js +7 -7
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/TextareaWrapperWrapper.vue.js +10 -9
- package/lib/components/index.d.ts +2 -0
- package/lib/types.d.ts +275 -42
- package/package.json +2 -2
- package/partials/esm/{partials.js → index.js} +0 -0
- package/partials/{partials.d.ts → index.d.ts} +0 -0
- package/partials/{partials.js → index.js} +0 -0
- package/partials/package.json +3 -3
- package/public-api.js +94 -90
- package/styles/esm/index.js +1 -0
- package/styles/index.d.ts +1 -0
- package/styles/index.js +12 -0
- package/styles/package.json +6 -0
- package/styles/scss.scss +1 -0
- package/{testing.d.ts → testing/index.d.ts} +0 -0
- package/testing/{testing.js → index.js} +0 -0
- package/jsdom-polyfill.d.ts +0 -1
- package/testing/package.json +0 -5
- package/testing/testing.d.ts +0 -1
- package/utilities/js/esm/js.js +0 -1
- package/utilities/js/js.d.ts +0 -1
- package/utilities/js/js.js +0 -12
- package/utilities/js/package.json +0 -6
- package/utilities/scss.scss +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, BreakpointCustomizable,
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, LinkButtonIconName, LinkTarget, Theme, LinkVariant } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -17,9 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
17
|
*/
|
|
18
18
|
href?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* The icon shown.
|
|
20
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
21
21
|
*/
|
|
22
|
-
icon?:
|
|
22
|
+
icon?: LinkButtonIconName | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* A URL path to a custom icon.
|
|
25
25
|
*/
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
35
|
/**
|
|
36
36
|
* Adapts the link color when used on dark background.
|
|
37
37
|
*/
|
|
38
|
-
theme?: "light" | "dark" |
|
|
38
|
+
theme?: "light" | "dark" | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* The style variant of the link.
|
|
41
41
|
*/
|
|
@@ -64,9 +64,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
64
|
*/
|
|
65
65
|
href?: string | undefined;
|
|
66
66
|
/**
|
|
67
|
-
* The icon shown.
|
|
67
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
68
68
|
*/
|
|
69
|
-
icon?:
|
|
69
|
+
icon?: LinkButtonIconName | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* A URL path to a custom icon.
|
|
72
72
|
*/
|
|
@@ -82,7 +82,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
82
82
|
/**
|
|
83
83
|
* Adapts the link color when used on dark background.
|
|
84
84
|
*/
|
|
85
|
-
theme?: "light" | "dark" |
|
|
85
|
+
theme?: "light" | "dark" | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* The style variant of the link.
|
|
88
88
|
*/
|
|
@@ -94,9 +94,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
94
94
|
theme: string;
|
|
95
95
|
variant: string;
|
|
96
96
|
}>>>, {
|
|
97
|
-
theme:
|
|
97
|
+
theme: Theme;
|
|
98
98
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
99
|
-
icon:
|
|
99
|
+
icon: LinkButtonIconName;
|
|
100
100
|
variant: LinkVariant;
|
|
101
101
|
target: LinkTarget;
|
|
102
102
|
}>, {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const v = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as a, ref as f, onMounted as p, onUpdated as u, openBlock as d, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as _ } from "vue";
|
|
2
|
+
import { getPrefixedTagName as h, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const v = /* @__PURE__ */ a({
|
|
4
4
|
__name: "LinkWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: null,
|
|
7
7
|
download: null,
|
|
8
8
|
hideLabel: { default: !1 },
|
|
9
9
|
href: null,
|
|
10
|
-
icon: { default: "
|
|
10
|
+
icon: { default: "none" },
|
|
11
11
|
iconSource: null,
|
|
12
12
|
rel: null,
|
|
13
13
|
target: { default: "_self" },
|
|
14
14
|
theme: { default: "light" },
|
|
15
|
-
variant: { default: "
|
|
15
|
+
variant: { default: "primary" }
|
|
16
16
|
},
|
|
17
17
|
setup(t) {
|
|
18
|
-
const n = t,
|
|
19
|
-
return
|
|
18
|
+
const n = t, l = h("p-link"), e = f();
|
|
19
|
+
return p(() => {
|
|
20
20
|
o(e.value, n);
|
|
21
|
-
}),
|
|
21
|
+
}), u(() => {
|
|
22
22
|
o(e.value, n);
|
|
23
|
-
}), (
|
|
23
|
+
}), (r, C) => (d(), s(i(c(l)), {
|
|
24
24
|
ref_key: "pdsComponentRef",
|
|
25
25
|
ref: e
|
|
26
26
|
}, {
|
|
27
27
|
default: m(() => [
|
|
28
|
-
|
|
28
|
+
_(r.$slots, "default")
|
|
29
29
|
]),
|
|
30
30
|
_: 3
|
|
31
31
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, PopoverDirection } from '../types';
|
|
1
|
+
import type { SelectedAriaAttributes, PopoverDirection, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -12,8 +12,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
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
14
|
direction?: "top" | "left" | "right" | "bottom" | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Adapts the popover color depending on the theme.
|
|
17
|
+
*/
|
|
18
|
+
theme?: "light" | "dark" | undefined;
|
|
15
19
|
}>, {
|
|
16
20
|
direction: string;
|
|
21
|
+
theme: string;
|
|
17
22
|
}>, {}, 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<{
|
|
18
23
|
/**
|
|
19
24
|
* Add ARIA attributes.
|
|
@@ -27,9 +32,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
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.
|
|
28
33
|
*/
|
|
29
34
|
direction?: "top" | "left" | "right" | "bottom" | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Adapts the popover color depending on the theme.
|
|
37
|
+
*/
|
|
38
|
+
theme?: "light" | "dark" | undefined;
|
|
30
39
|
}>, {
|
|
31
40
|
direction: string;
|
|
41
|
+
theme: string;
|
|
32
42
|
}>>>, {
|
|
43
|
+
theme: Theme;
|
|
33
44
|
direction: PopoverDirection;
|
|
34
45
|
}>, {
|
|
35
46
|
default: (_: {}) => any;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
1
|
+
import { defineComponent as a, ref as l, onMounted as s, onUpdated as f, openBlock as d, createBlock as m, resolveDynamicComponent as c, unref as i, withCtx as u, renderSlot as _ } from "vue";
|
|
2
2
|
import { getPrefixedTagName as C, syncProperties as t } from "../../utils.js";
|
|
3
|
-
const
|
|
3
|
+
const k = /* @__PURE__ */ a({
|
|
4
4
|
__name: "PopoverWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: null,
|
|
7
7
|
description: null,
|
|
8
|
-
direction: { default: "bottom" }
|
|
8
|
+
direction: { default: "bottom" },
|
|
9
|
+
theme: { default: "light" }
|
|
9
10
|
},
|
|
10
11
|
setup(n) {
|
|
11
|
-
const o = n, r = C("p-popover"), e =
|
|
12
|
-
return
|
|
12
|
+
const o = n, r = C("p-popover"), e = l();
|
|
13
|
+
return s(() => {
|
|
13
14
|
t(e.value, o);
|
|
14
|
-
}),
|
|
15
|
+
}), f(() => {
|
|
15
16
|
t(e.value, o);
|
|
16
|
-
}), (p, v) => (
|
|
17
|
+
}), (p, v) => (d(), m(c(i(r)), {
|
|
17
18
|
ref_key: "pdsComponentRef",
|
|
18
19
|
ref: e
|
|
19
20
|
}, {
|
|
@@ -25,5 +26,5 @@ const x = /* @__PURE__ */ a({
|
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
k as default
|
|
29
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, FormState } from '../types';
|
|
1
|
+
import type { BreakpointCustomizable, FormState, 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.
|
|
@@ -16,11 +16,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
* The validation state.
|
|
17
17
|
*/
|
|
18
18
|
state?: "success" | "none" | "error" | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Adapts the color depending on the theme.
|
|
21
|
+
*/
|
|
22
|
+
theme?: "light" | "dark" | undefined;
|
|
19
23
|
}>, {
|
|
20
24
|
hideLabel: boolean;
|
|
21
25
|
label: string;
|
|
22
26
|
message: string;
|
|
23
27
|
state: string;
|
|
28
|
+
theme: string;
|
|
24
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<{
|
|
25
30
|
/**
|
|
26
31
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
@@ -38,13 +43,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
43
|
* The validation state.
|
|
39
44
|
*/
|
|
40
45
|
state?: "success" | "none" | "error" | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Adapts the color depending on the theme.
|
|
48
|
+
*/
|
|
49
|
+
theme?: "light" | "dark" | undefined;
|
|
41
50
|
}>, {
|
|
42
51
|
hideLabel: boolean;
|
|
43
52
|
label: string;
|
|
44
53
|
message: string;
|
|
45
54
|
state: string;
|
|
55
|
+
theme: string;
|
|
46
56
|
}>>>, {
|
|
47
57
|
label: string;
|
|
58
|
+
theme: Theme;
|
|
48
59
|
state: FormState;
|
|
49
60
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
50
61
|
message: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
1
|
+
import { defineComponent as p, ref as f, onMounted as l, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as c, withCtx as i, renderSlot as _ } from "vue";
|
|
2
2
|
import { getPrefixedTagName as C, syncProperties as o } from "../../utils.js";
|
|
3
3
|
const k = /* @__PURE__ */ p({
|
|
4
4
|
__name: "RadioButtonWrapperWrapper",
|
|
@@ -6,15 +6,16 @@ const k = /* @__PURE__ */ p({
|
|
|
6
6
|
hideLabel: { default: !1 },
|
|
7
7
|
label: { default: "" },
|
|
8
8
|
message: { default: "" },
|
|
9
|
-
state: { default: "none" }
|
|
9
|
+
state: { default: "none" },
|
|
10
|
+
theme: { default: "light" }
|
|
10
11
|
},
|
|
11
12
|
setup(n) {
|
|
12
|
-
const t = n, a = C("p-radio-button-wrapper"), e =
|
|
13
|
-
return
|
|
13
|
+
const t = n, a = C("p-radio-button-wrapper"), e = f();
|
|
14
|
+
return l(() => {
|
|
14
15
|
o(e.value, t);
|
|
15
|
-
}),
|
|
16
|
+
}), s(() => {
|
|
16
17
|
o(e.value, t);
|
|
17
|
-
}), (r,
|
|
18
|
+
}), (r, g) => (d(), u(m(c(a)), {
|
|
18
19
|
ref_key: "pdsComponentRef",
|
|
19
20
|
ref: e
|
|
20
21
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GradientColorTheme, ScrollIndicatorPosition, ScrollToPosition,
|
|
1
|
+
import type { GradientColorTheme, ScrollIndicatorPosition, ScrollToPosition, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Adapts the background gradient color of prev and next button.
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Adapts the color when used on dark background.
|
|
17
17
|
*/
|
|
18
|
-
theme?: "light" | "dark" |
|
|
18
|
+
theme?: "light" | "dark" | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
gradientColorScheme: string;
|
|
21
21
|
scrollIndicatorPosition: string;
|
|
@@ -36,13 +36,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
36
|
/**
|
|
37
37
|
* Adapts the color when used on dark background.
|
|
38
38
|
*/
|
|
39
|
-
theme?: "light" | "dark" |
|
|
39
|
+
theme?: "light" | "dark" | undefined;
|
|
40
40
|
}>, {
|
|
41
41
|
gradientColorScheme: string;
|
|
42
42
|
scrollIndicatorPosition: string;
|
|
43
43
|
theme: string;
|
|
44
44
|
}>>>, {
|
|
45
|
-
theme:
|
|
45
|
+
theme: Theme;
|
|
46
46
|
gradientColorScheme: GradientColorTheme;
|
|
47
47
|
scrollIndicatorPosition: ScrollIndicatorPosition;
|
|
48
48
|
}>, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { IconName } from '../types';
|
|
2
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
2
|
/**
|
|
4
3
|
* Disables the button. No events will be triggered while disabled state is active.
|
|
@@ -7,7 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
6
|
/**
|
|
8
7
|
* The icon shown.
|
|
9
8
|
*/
|
|
10
|
-
icon?:
|
|
9
|
+
icon?: "360" | "accessibility" | "active-cabin-ventilation" | "add" | "adjust" | "arrow-double-down" | "arrow-double-left" | "arrow-double-right" | "arrow-double-up" | "arrow-down" | "arrow-first" | "arrow-head-down" | "arrow-head-left" | "arrow-head-right" | "arrow-head-up" | "arrow-last" | "arrow-left" | "arrow-right" | "arrow-up" | "augmented-reality" | "battery-empty" | "battery-full" | "bell" | "bookmark" | "broadcast" | "calculator" | "calendar" | "camera" | "car" | "car-battery" | "card" | "charging-active" | "charging-state" | "charging-station" | "chart" | "chat" | "check" | "city" | "climate" | "climate-control" | "clock" | "close" | "closed-caption" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "document" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "locate" | "lock" | "lock-open" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-facebook" | "logo-foursquare" | "logo-gmail" | "logo-google" | "logo-hatena" | "logo-instagram" | "logo-kaixin" | "logo-kakaotalk" | "logo-linkedin" | "logo-naver" | "logo-pinterest" | "logo-qq" | "logo-qq-share" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-xing" | "logo-yahoo" | "logo-youku" | "logo-youtube" | "logout" | "map" | "menu-dots-horizontal" | "menu-dots-vertical" | "menu-lines" | "minus" | "mobile" | "moon" | "oil-can" | "parking-brake" | "parking-light" | "pause" | "phone" | "pin" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-cart" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
|
|
11
10
|
/**
|
|
12
11
|
* A URL path to a custom icon.
|
|
13
12
|
*/
|
|
@@ -30,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
29
|
/**
|
|
31
30
|
* The icon shown.
|
|
32
31
|
*/
|
|
33
|
-
icon?:
|
|
32
|
+
icon?: "360" | "accessibility" | "active-cabin-ventilation" | "add" | "adjust" | "arrow-double-down" | "arrow-double-left" | "arrow-double-right" | "arrow-double-up" | "arrow-down" | "arrow-first" | "arrow-head-down" | "arrow-head-left" | "arrow-head-right" | "arrow-head-up" | "arrow-last" | "arrow-left" | "arrow-right" | "arrow-up" | "augmented-reality" | "battery-empty" | "battery-full" | "bell" | "bookmark" | "broadcast" | "calculator" | "calendar" | "camera" | "car" | "car-battery" | "card" | "charging-active" | "charging-state" | "charging-station" | "chart" | "chat" | "check" | "city" | "climate" | "climate-control" | "clock" | "close" | "closed-caption" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "document" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "locate" | "lock" | "lock-open" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-facebook" | "logo-foursquare" | "logo-gmail" | "logo-google" | "logo-hatena" | "logo-instagram" | "logo-kaixin" | "logo-kakaotalk" | "logo-linkedin" | "logo-naver" | "logo-pinterest" | "logo-qq" | "logo-qq-share" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-xing" | "logo-yahoo" | "logo-youku" | "logo-youtube" | "logout" | "map" | "menu-dots-horizontal" | "menu-dots-vertical" | "menu-lines" | "minus" | "mobile" | "moon" | "oil-can" | "parking-brake" | "parking-light" | "pause" | "phone" | "pin" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-cart" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
|
|
34
33
|
/**
|
|
35
34
|
* A URL path to a custom icon.
|
|
36
35
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SegmentedControlChangeEvent, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
|
-
* Background color variations
|
|
4
|
+
* @deprecated Background color variations
|
|
5
5
|
*/
|
|
6
6
|
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
7
7
|
/**
|
|
@@ -13,13 +13,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
*/
|
|
14
14
|
value?: string | number | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
backgroundColor: string;
|
|
17
16
|
theme: string;
|
|
18
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
18
|
segmentedControlChange: (value: SegmentedControlChangeEvent) => void;
|
|
20
19
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
21
20
|
/**
|
|
22
|
-
* Background color variations
|
|
21
|
+
* @deprecated Background color variations
|
|
23
22
|
*/
|
|
24
23
|
backgroundColor?: "background-surface" | "background-default" | undefined;
|
|
25
24
|
/**
|
|
@@ -31,13 +30,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
30
|
*/
|
|
32
31
|
value?: string | number | undefined;
|
|
33
32
|
}>, {
|
|
34
|
-
backgroundColor: string;
|
|
35
33
|
theme: string;
|
|
36
34
|
}>>> & {
|
|
37
35
|
onSegmentedControlChange?: ((value: SegmentedControlChangeEvent) => any) | undefined;
|
|
38
36
|
}, {
|
|
39
37
|
theme: Theme;
|
|
40
|
-
backgroundColor: SegmentedControlBackgroundColor;
|
|
41
38
|
}>, {
|
|
42
39
|
default: (_: {}) => any;
|
|
43
40
|
}>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as _, syncProperties as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, ref as s, onMounted as m, onUpdated as d, openBlock as f, createBlock as u, resolveDynamicComponent as c, unref as C, withCtx as g, renderSlot as i } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as o, addEventListenerToElementRef as h } from "../../utils.js";
|
|
3
|
+
const y = /* @__PURE__ */ p({
|
|
4
4
|
__name: "SegmentedControlWrapper",
|
|
5
5
|
props: {
|
|
6
|
-
backgroundColor:
|
|
6
|
+
backgroundColor: null,
|
|
7
7
|
theme: { default: "light" },
|
|
8
8
|
value: null
|
|
9
9
|
},
|
|
10
10
|
emits: ["segmentedControlChange"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
}), (
|
|
11
|
+
setup(t, { emit: r }) {
|
|
12
|
+
const n = t, l = _("p-segmented-control"), e = s();
|
|
13
|
+
return m(() => {
|
|
14
|
+
o(e.value, n), h(e.value, "segmentedControlChange", r);
|
|
15
|
+
}), d(() => {
|
|
16
|
+
o(e.value, n);
|
|
17
|
+
}), (a, v) => (f(), u(c(C(l)), {
|
|
18
18
|
ref_key: "pdsComponentRef",
|
|
19
19
|
ref: e
|
|
20
20
|
}, {
|
|
21
|
-
default:
|
|
22
|
-
i(
|
|
21
|
+
default: g(() => [
|
|
22
|
+
i(a.$slots, "default")
|
|
23
23
|
]),
|
|
24
24
|
_: 3
|
|
25
25
|
}, 512));
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
y as default
|
|
30
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, BreakpointCustomizable, SpinnerSize,
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, SpinnerSize, Theme } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -7,11 +7,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
/**
|
|
8
8
|
* Size of the spinner.
|
|
9
9
|
*/
|
|
10
|
-
size?: BreakpointCustomizable<"
|
|
10
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Adapts the spinner color depending on the theme.
|
|
13
13
|
*/
|
|
14
|
-
theme?: "light" | "dark" |
|
|
14
|
+
theme?: "light" | "dark" | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
size: string;
|
|
17
17
|
theme: string;
|
|
@@ -23,17 +23,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
23
23
|
/**
|
|
24
24
|
* Size of the spinner.
|
|
25
25
|
*/
|
|
26
|
-
size?: BreakpointCustomizable<"
|
|
26
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* Adapts the spinner color depending on the theme.
|
|
29
29
|
*/
|
|
30
|
-
theme?: "light" | "dark" |
|
|
30
|
+
theme?: "light" | "dark" | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
size: string;
|
|
33
33
|
theme: string;
|
|
34
34
|
}>>>, {
|
|
35
35
|
size: BreakpointCustomizable<SpinnerSize>;
|
|
36
|
-
theme:
|
|
36
|
+
theme: Theme;
|
|
37
37
|
}>;
|
|
38
38
|
export default _default;
|
|
39
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, AlignLabel, SwitchChangeEvent,
|
|
1
|
+
import type { BreakpointCustomizable, AlignLabel, SwitchChangeEvent, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Aligns the label.
|
|
@@ -24,15 +24,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
* Stretches the contents to max available space.
|
|
25
25
|
*/
|
|
26
26
|
stretch?: BreakpointCustomizable<boolean> | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* To remove the element from tab order.
|
|
29
|
-
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
30
|
-
*/
|
|
31
|
-
tabbable?: boolean | undefined;
|
|
32
27
|
/**
|
|
33
28
|
* Adapts the switch color depending on the theme.
|
|
34
29
|
*/
|
|
35
|
-
theme?: "light" | "dark" |
|
|
30
|
+
theme?: "light" | "dark" | undefined;
|
|
36
31
|
}>, {
|
|
37
32
|
alignLabel: string;
|
|
38
33
|
checked: boolean;
|
|
@@ -40,7 +35,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
35
|
hideLabel: boolean;
|
|
41
36
|
loading: boolean;
|
|
42
37
|
stretch: boolean;
|
|
43
|
-
tabbable: boolean;
|
|
44
38
|
theme: string;
|
|
45
39
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
40
|
switchChange: (value: SwitchChangeEvent) => void;
|
|
@@ -69,15 +63,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
69
63
|
* Stretches the contents to max available space.
|
|
70
64
|
*/
|
|
71
65
|
stretch?: BreakpointCustomizable<boolean> | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* To remove the element from tab order.
|
|
74
|
-
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
75
|
-
*/
|
|
76
|
-
tabbable?: boolean | undefined;
|
|
77
66
|
/**
|
|
78
67
|
* Adapts the switch color depending on the theme.
|
|
79
68
|
*/
|
|
80
|
-
theme?: "light" | "dark" |
|
|
69
|
+
theme?: "light" | "dark" | undefined;
|
|
81
70
|
}>, {
|
|
82
71
|
alignLabel: string;
|
|
83
72
|
checked: boolean;
|
|
@@ -85,18 +74,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
85
74
|
hideLabel: boolean;
|
|
86
75
|
loading: boolean;
|
|
87
76
|
stretch: boolean;
|
|
88
|
-
tabbable: boolean;
|
|
89
77
|
theme: string;
|
|
90
78
|
}>>> & {
|
|
91
79
|
onSwitchChange?: ((value: SwitchChangeEvent) => any) | undefined;
|
|
92
80
|
}, {
|
|
93
81
|
stretch: BreakpointCustomizable<boolean>;
|
|
94
|
-
theme:
|
|
82
|
+
theme: Theme;
|
|
95
83
|
alignLabel: BreakpointCustomizable<AlignLabel>;
|
|
96
84
|
disabled: boolean;
|
|
97
85
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
98
86
|
loading: boolean;
|
|
99
|
-
tabbable: boolean;
|
|
100
87
|
checked: boolean;
|
|
101
88
|
}>, {
|
|
102
89
|
default: (_: {}) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as C, syncProperties as a, addEventListenerToElementRef as
|
|
3
|
-
const B = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as f, ref as r, onMounted as d, onUpdated as p, openBlock as i, createBlock as c, resolveDynamicComponent as u, unref as m, withCtx as h, renderSlot as g } from "vue";
|
|
2
|
+
import { getPrefixedTagName as C, syncProperties as a, addEventListenerToElementRef as _ } from "../../utils.js";
|
|
3
|
+
const B = /* @__PURE__ */ f({
|
|
4
4
|
__name: "SwitchWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
alignLabel: { default: "right" },
|
|
@@ -9,22 +9,21 @@ const B = /* @__PURE__ */ r({
|
|
|
9
9
|
hideLabel: { default: !1 },
|
|
10
10
|
loading: { type: Boolean, default: !1 },
|
|
11
11
|
stretch: { default: !1 },
|
|
12
|
-
tabbable: { type: Boolean, default: !0 },
|
|
13
12
|
theme: { default: "light" }
|
|
14
13
|
},
|
|
15
14
|
emits: ["switchChange"],
|
|
16
15
|
setup(o, { emit: n }) {
|
|
17
|
-
const t = o, l = C("p-switch"), e =
|
|
16
|
+
const t = o, l = C("p-switch"), e = r();
|
|
18
17
|
return d(() => {
|
|
19
|
-
a(e.value, t),
|
|
18
|
+
a(e.value, t), _(e.value, "switchChange", n);
|
|
20
19
|
}), p(() => {
|
|
21
20
|
a(e.value, t);
|
|
22
|
-
}), (
|
|
21
|
+
}), (s, w) => (i(), c(u(m(l)), {
|
|
23
22
|
ref_key: "pdsComponentRef",
|
|
24
23
|
ref: e
|
|
25
24
|
}, {
|
|
26
25
|
default: h(() => [
|
|
27
|
-
g(
|
|
26
|
+
g(s.$slots, "default")
|
|
28
27
|
]),
|
|
29
28
|
_: 3
|
|
30
29
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TabGradientColorTheme, TabChangeEvent, BreakpointCustomizable, TabSize,
|
|
1
|
+
import type { TabGradientColorTheme, TabChangeEvent, BreakpointCustomizable, TabSize, Theme, TabWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines which tab to be visualized as selected (zero-based numbering), undefined if none should be selected.
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Adapts the color when used on dark background.
|
|
17
17
|
*/
|
|
18
|
-
theme?: "light" | "dark" |
|
|
18
|
+
theme?: "light" | "dark" | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* The text weight.
|
|
21
21
|
*/
|
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
43
43
|
/**
|
|
44
44
|
* Adapts the color when used on dark background.
|
|
45
45
|
*/
|
|
46
|
-
theme?: "light" | "dark" |
|
|
46
|
+
theme?: "light" | "dark" | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* The text weight.
|
|
49
49
|
*/
|
|
@@ -58,7 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
58
|
}, {
|
|
59
59
|
weight: TabWeight;
|
|
60
60
|
size: BreakpointCustomizable<TabSize>;
|
|
61
|
-
theme:
|
|
61
|
+
theme: Theme;
|
|
62
62
|
gradientColorScheme: TabGradientColorTheme;
|
|
63
63
|
}>, {
|
|
64
64
|
default: (_: {}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TabGradientColorTheme, TabChangeEvent, BreakpointCustomizable, TabSize,
|
|
1
|
+
import type { TabGradientColorTheme, TabChangeEvent, BreakpointCustomizable, TabSize, Theme, TabWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines which tab to be visualized as selected (zero-based numbering).
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Adapts the color when used on dark background.
|
|
17
17
|
*/
|
|
18
|
-
theme?: "light" | "dark" |
|
|
18
|
+
theme?: "light" | "dark" | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* The text weight.
|
|
21
21
|
*/
|
|
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
44
44
|
/**
|
|
45
45
|
* Adapts the color when used on dark background.
|
|
46
46
|
*/
|
|
47
|
-
theme?: "light" | "dark" |
|
|
47
|
+
theme?: "light" | "dark" | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* The text weight.
|
|
50
50
|
*/
|
|
@@ -60,7 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
60
|
}, {
|
|
61
61
|
weight: TabWeight;
|
|
62
62
|
size: BreakpointCustomizable<TabSize>;
|
|
63
|
-
theme:
|
|
63
|
+
theme: Theme;
|
|
64
64
|
gradientColorScheme: TabGradientColorTheme;
|
|
65
65
|
activeTabIndex: number;
|
|
66
66
|
}>, {
|