@porsche-design-system/components-vue 2.20.0 → 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 +401 -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, 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.
|
|
@@ -13,9 +13,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
*/
|
|
14
14
|
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* The icon shown.
|
|
16
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
17
17
|
*/
|
|
18
|
-
icon?:
|
|
18
|
+
icon?: LinkButtonIconName | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* A URL path to a custom icon.
|
|
21
21
|
*/
|
|
@@ -24,15 +24,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
25
25
|
*/
|
|
26
26
|
loading?: 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 button color depending on the theme.
|
|
34
29
|
*/
|
|
35
|
-
theme?: "light" | "dark" |
|
|
30
|
+
theme?: "light" | "dark" | undefined;
|
|
36
31
|
/**
|
|
37
32
|
* Specifies the type of the button.
|
|
38
33
|
*/
|
|
@@ -46,7 +41,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
41
|
hideLabel: boolean;
|
|
47
42
|
icon: string;
|
|
48
43
|
loading: boolean;
|
|
49
|
-
tabbable: boolean;
|
|
50
44
|
theme: string;
|
|
51
45
|
type: string;
|
|
52
46
|
variant: string;
|
|
@@ -64,9 +58,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
58
|
*/
|
|
65
59
|
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
66
60
|
/**
|
|
67
|
-
* The icon shown.
|
|
61
|
+
* The icon shown. By choosing 'none', no icon is displayed.
|
|
68
62
|
*/
|
|
69
|
-
icon?:
|
|
63
|
+
icon?: LinkButtonIconName | undefined;
|
|
70
64
|
/**
|
|
71
65
|
* A URL path to a custom icon.
|
|
72
66
|
*/
|
|
@@ -75,15 +69,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
75
69
|
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
76
70
|
*/
|
|
77
71
|
loading?: boolean | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* To remove the element from tab order.
|
|
80
|
-
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
81
|
-
*/
|
|
82
|
-
tabbable?: boolean | undefined;
|
|
83
72
|
/**
|
|
84
73
|
* Adapts the button color depending on the theme.
|
|
85
74
|
*/
|
|
86
|
-
theme?: "light" | "dark" |
|
|
75
|
+
theme?: "light" | "dark" | undefined;
|
|
87
76
|
/**
|
|
88
77
|
* Specifies the type of the button.
|
|
89
78
|
*/
|
|
@@ -97,18 +86,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
97
86
|
hideLabel: boolean;
|
|
98
87
|
icon: string;
|
|
99
88
|
loading: boolean;
|
|
100
|
-
tabbable: boolean;
|
|
101
89
|
theme: string;
|
|
102
90
|
type: string;
|
|
103
91
|
variant: string;
|
|
104
92
|
}>>>, {
|
|
105
|
-
theme:
|
|
93
|
+
theme: Theme;
|
|
106
94
|
type: ButtonType;
|
|
107
95
|
disabled: boolean;
|
|
108
96
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
109
|
-
icon:
|
|
97
|
+
icon: LinkButtonIconName;
|
|
110
98
|
loading: boolean;
|
|
111
|
-
tabbable: boolean;
|
|
112
99
|
variant: ButtonVariant;
|
|
113
100
|
}>, {
|
|
114
101
|
default: (_: {}) => any;
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { defineComponent as r, ref as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as r, ref as p, onMounted as f, onUpdated as u, openBlock as d, createBlock as s, resolveDynamicComponent as i, unref as m, withCtx as c, renderSlot as y } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const h = /* @__PURE__ */ r({
|
|
4
4
|
__name: "ButtonWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: null,
|
|
7
7
|
disabled: { type: Boolean, default: !1 },
|
|
8
8
|
hideLabel: { default: !1 },
|
|
9
|
-
icon: { default: "
|
|
9
|
+
icon: { default: "none" },
|
|
10
10
|
iconSource: null,
|
|
11
11
|
loading: { type: Boolean, default: !1 },
|
|
12
|
-
tabbable: { type: Boolean, default: !0 },
|
|
13
12
|
theme: { default: "light" },
|
|
14
13
|
type: { default: "submit" },
|
|
15
|
-
variant: { default: "
|
|
14
|
+
variant: { default: "primary" }
|
|
16
15
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const t =
|
|
16
|
+
setup(n) {
|
|
17
|
+
const t = n, a = _("p-button"), e = p();
|
|
19
18
|
return f(() => {
|
|
20
19
|
o(e.value, t);
|
|
21
|
-
}),
|
|
20
|
+
}), u(() => {
|
|
22
21
|
o(e.value, t);
|
|
23
|
-
}), (l,
|
|
22
|
+
}), (l, C) => (d(), s(i(m(a)), {
|
|
24
23
|
ref_key: "pdsComponentRef",
|
|
25
24
|
ref: e
|
|
26
25
|
}, {
|
|
27
|
-
default:
|
|
28
|
-
|
|
26
|
+
default: c(() => [
|
|
27
|
+
y(l.$slots, "default")
|
|
29
28
|
]),
|
|
30
29
|
_: 3
|
|
31
30
|
}, 512));
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
h as default
|
|
36
35
|
};
|
|
@@ -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,30 +1,31 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, ref as f, onMounted as l, onUpdated as s, openBlock as d, createBlock as c, resolveDynamicComponent as m, unref as u, withCtx as i, renderSlot as h } from "vue";
|
|
2
|
+
import { getPrefixedTagName as C, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ p({
|
|
4
4
|
__name: "CheckboxWrapperWrapper",
|
|
5
5
|
props: {
|
|
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
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
}), (
|
|
13
|
+
const t = n, a = C("p-checkbox-wrapper"), e = f();
|
|
14
|
+
return l(() => {
|
|
15
|
+
o(e.value, t);
|
|
16
|
+
}), s(() => {
|
|
17
|
+
o(e.value, t);
|
|
18
|
+
}), (r, _) => (d(), c(m(u(a)), {
|
|
18
19
|
ref_key: "pdsComponentRef",
|
|
19
20
|
ref: e
|
|
20
21
|
}, {
|
|
21
22
|
default: i(() => [
|
|
22
|
-
|
|
23
|
+
h(r.$slots, "default")
|
|
23
24
|
]),
|
|
24
25
|
_: 3
|
|
25
26
|
}, 512));
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
k as default
|
|
30
31
|
};
|
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
import type { ContentWrapperBackgroundColor, Theme, ContentWrapperWidth } from '../types';
|
|
2
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* Has no effect anymore
|
|
6
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
5
7
|
*/
|
|
6
8
|
backgroundColor?: "default" | "transparent" | undefined;
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
10
|
+
* Has no effect anymore
|
|
11
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
9
12
|
*/
|
|
10
13
|
theme?: "light" | "dark" | undefined;
|
|
11
14
|
/**
|
|
12
15
|
* Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
|
|
13
16
|
*/
|
|
14
|
-
width?: "basic" | "extended" | "fluid" | undefined;
|
|
17
|
+
width?: "basic" | "extended" | "fluid" | "narrow" | "full" | undefined;
|
|
15
18
|
}>, {
|
|
16
19
|
backgroundColor: string;
|
|
17
20
|
theme: string;
|
|
18
21
|
width: string;
|
|
19
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<{
|
|
20
23
|
/**
|
|
21
|
-
*
|
|
24
|
+
* Has no effect anymore
|
|
25
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
22
26
|
*/
|
|
23
27
|
backgroundColor?: "default" | "transparent" | undefined;
|
|
24
28
|
/**
|
|
25
|
-
*
|
|
29
|
+
* Has no effect anymore
|
|
30
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
26
31
|
*/
|
|
27
32
|
theme?: "light" | "dark" | undefined;
|
|
28
33
|
/**
|
|
29
34
|
* Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
|
|
30
35
|
*/
|
|
31
|
-
width?: "basic" | "extended" | "fluid" | undefined;
|
|
36
|
+
width?: "basic" | "extended" | "fluid" | "narrow" | "full" | undefined;
|
|
32
37
|
}>, {
|
|
33
38
|
backgroundColor: string;
|
|
34
39
|
theme: string;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, Theme } from '../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Text alignment of the component.
|
|
5
|
+
*/
|
|
6
|
+
align?: "center" | "left" | "right" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Basic text color variations depending on theme property.
|
|
9
|
+
*/
|
|
10
|
+
color?: "primary" | "inherit" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
|
+
*/
|
|
14
|
+
ellipsis?: boolean | undefined;
|
|
15
|
+
/**
|
|
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
|
+
*/
|
|
18
|
+
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Sets a custom HTML tag depending on the usage of the display component.
|
|
21
|
+
*/
|
|
22
|
+
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
25
|
+
*/
|
|
26
|
+
theme?: "light" | "dark" | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
align: string;
|
|
29
|
+
color: string;
|
|
30
|
+
ellipsis: boolean;
|
|
31
|
+
size: string;
|
|
32
|
+
theme: string;
|
|
33
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
34
|
+
/**
|
|
35
|
+
* Text alignment of the component.
|
|
36
|
+
*/
|
|
37
|
+
align?: "center" | "left" | "right" | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Basic text color variations depending on theme property.
|
|
40
|
+
*/
|
|
41
|
+
color?: "primary" | "inherit" | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Adds an ellipsis to a single line of text if it overflows.
|
|
44
|
+
*/
|
|
45
|
+
ellipsis?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
48
|
+
*/
|
|
49
|
+
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Sets a custom HTML tag depending on the usage of the display component.
|
|
52
|
+
*/
|
|
53
|
+
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
56
|
+
*/
|
|
57
|
+
theme?: "light" | "dark" | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
align: string;
|
|
60
|
+
color: string;
|
|
61
|
+
ellipsis: boolean;
|
|
62
|
+
size: string;
|
|
63
|
+
theme: string;
|
|
64
|
+
}>>>, {
|
|
65
|
+
size: BreakpointCustomizable<DisplaySize>;
|
|
66
|
+
theme: Theme;
|
|
67
|
+
align: DisplayAlign;
|
|
68
|
+
color: DisplayColor;
|
|
69
|
+
ellipsis: boolean;
|
|
70
|
+
}>, {
|
|
71
|
+
default: (_: {}) => any;
|
|
72
|
+
}>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
75
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
76
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
77
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
78
|
+
} : {
|
|
79
|
+
type: import('vue').PropType<T[K]>;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
type __VLS_WithDefaults<P, D> = {
|
|
84
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
85
|
+
default: D[K];
|
|
86
|
+
} : P[K];
|
|
87
|
+
};
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as r, ref as p, onMounted as s, onUpdated as f, openBlock as d, createBlock as i, resolveDynamicComponent as u, unref as m, withCtx as c, renderSlot as g } from "vue";
|
|
2
|
+
import { getPrefixedTagName as y, syncProperties as o } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ r({
|
|
4
|
+
__name: "DisplayWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
align: { default: "left" },
|
|
7
|
+
color: { default: "primary" },
|
|
8
|
+
ellipsis: { type: Boolean, default: !1 },
|
|
9
|
+
size: { default: "large" },
|
|
10
|
+
tag: null,
|
|
11
|
+
theme: { default: "light" }
|
|
12
|
+
},
|
|
13
|
+
setup(n) {
|
|
14
|
+
const t = n, a = y("p-display"), e = p();
|
|
15
|
+
return s(() => {
|
|
16
|
+
o(e.value, t);
|
|
17
|
+
}), f(() => {
|
|
18
|
+
o(e.value, t);
|
|
19
|
+
}), (l, _) => (d(), i(u(m(a)), {
|
|
20
|
+
ref_key: "pdsComponentRef",
|
|
21
|
+
ref: e
|
|
22
|
+
}, {
|
|
23
|
+
default: c(() => [
|
|
24
|
+
g(l.$slots, "default")
|
|
25
|
+
]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 512));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
k as default
|
|
32
|
+
};
|
|
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines color depending on theme.
|
|
5
5
|
*/
|
|
6
|
-
color?: "neutral-contrast-
|
|
6
|
+
color?: "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Defines orientation.
|
|
9
9
|
*/
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
/**
|
|
21
21
|
* Defines color depending on theme.
|
|
22
22
|
*/
|
|
23
|
-
color?: "neutral-contrast-
|
|
23
|
+
color?: "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Defines orientation.
|
|
26
26
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldsetWrapperLabelSize, FormState } from '../types';
|
|
1
|
+
import type { FieldsetWrapperLabelSize, FormState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* The label text.
|
|
@@ -20,12 +20,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
* The validation state.
|
|
21
21
|
*/
|
|
22
22
|
state?: "success" | "none" | "error" | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Adapts color depending on theme.
|
|
25
|
+
*/
|
|
26
|
+
theme?: "light" | "dark" | undefined;
|
|
23
27
|
}>, {
|
|
24
28
|
label: string;
|
|
25
29
|
labelSize: string;
|
|
26
30
|
message: string;
|
|
27
31
|
required: boolean;
|
|
28
32
|
state: string;
|
|
33
|
+
theme: string;
|
|
29
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<{
|
|
30
35
|
/**
|
|
31
36
|
* The label text.
|
|
@@ -47,14 +52,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
52
|
* The validation state.
|
|
48
53
|
*/
|
|
49
54
|
state?: "success" | "none" | "error" | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Adapts color depending on theme.
|
|
57
|
+
*/
|
|
58
|
+
theme?: "light" | "dark" | undefined;
|
|
50
59
|
}>, {
|
|
51
60
|
label: string;
|
|
52
61
|
labelSize: string;
|
|
53
62
|
message: string;
|
|
54
63
|
required: boolean;
|
|
55
64
|
state: string;
|
|
65
|
+
theme: string;
|
|
56
66
|
}>>>, {
|
|
57
67
|
label: string;
|
|
68
|
+
theme: Theme;
|
|
58
69
|
state: FormState;
|
|
59
70
|
message: string;
|
|
60
71
|
labelSize: FieldsetWrapperLabelSize;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as p, ref as l, onMounted as
|
|
1
|
+
import { defineComponent as p, ref as l, onMounted as f, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as i, withCtx as c, renderSlot as _ } from "vue";
|
|
2
2
|
import { getPrefixedTagName as C, syncProperties as o } from "../../utils.js";
|
|
3
|
-
const
|
|
3
|
+
const b = /* @__PURE__ */ p({
|
|
4
4
|
__name: "FieldsetWrapperWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
label: { default: "" },
|
|
7
7
|
labelSize: { default: "medium" },
|
|
8
8
|
message: { default: "" },
|
|
9
9
|
required: { type: Boolean, default: !1 },
|
|
10
|
-
state: { default: "none" }
|
|
10
|
+
state: { default: "none" },
|
|
11
|
+
theme: { default: "light" }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const t =
|
|
14
|
-
return
|
|
13
|
+
setup(a) {
|
|
14
|
+
const t = a, n = C("p-fieldset-wrapper"), e = l();
|
|
15
|
+
return f(() => {
|
|
15
16
|
o(e.value, t);
|
|
16
|
-
}),
|
|
17
|
+
}), s(() => {
|
|
17
18
|
o(e.value, t);
|
|
18
|
-
}), (
|
|
19
|
+
}), (r, g) => (d(), u(m(i(n)), {
|
|
19
20
|
ref_key: "pdsComponentRef",
|
|
20
21
|
ref: e
|
|
21
22
|
}, {
|
|
22
23
|
default: c(() => [
|
|
23
|
-
_(
|
|
24
|
+
_(r.$slots, "default")
|
|
24
25
|
]),
|
|
25
26
|
_: 3
|
|
26
27
|
}, 512));
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
b as default
|
|
31
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BreakpointCustomizable, FlexItemAlignSelf, FlexItemFlex, FlexItemGrow, FlexItemOffset, FlexItemShrink, FlexItemWidth } from '../types';
|
|
2
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
/**
|
|
4
5
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
@@ -23,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
24
|
/**
|
|
24
25
|
* The width of the flex item. You can also supply values for specific breakpoints, like {base: "full", l: "one-quarter"}. You always need to provide a base value when doing this.
|
|
25
26
|
*/
|
|
26
|
-
width?: BreakpointCustomizable<"auto" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters"
|
|
27
|
+
width?: BreakpointCustomizable<"full" | "auto" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters"> | undefined;
|
|
27
28
|
}>, {
|
|
28
29
|
alignSelf: string;
|
|
29
30
|
flex: string;
|
|
@@ -55,7 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
55
56
|
/**
|
|
56
57
|
* The width of the flex item. You can also supply values for specific breakpoints, like {base: "full", l: "one-quarter"}. You always need to provide a base value when doing this.
|
|
57
58
|
*/
|
|
58
|
-
width?: BreakpointCustomizable<"auto" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters"
|
|
59
|
+
width?: BreakpointCustomizable<"full" | "auto" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters"> | undefined;
|
|
59
60
|
}>, {
|
|
60
61
|
alignSelf: string;
|
|
61
62
|
flex: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BreakpointCustomizable, FlexAlignContent, FlexAlignItems, FlexDirection, FlexInline, FlexJustifyContent, FlexWrap } from '../types';
|
|
2
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
/**
|
|
4
5
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { BreakpointCustomizable, GridItemOffset, GridItemSize } from '../types';
|
|
2
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
/**
|
|
4
5
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
5
6
|
*/
|
|
6
|
-
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 |
|
|
7
|
+
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 | 5 | 7 | 1 | 8 | 9 | 10 | 11> | undefined;
|
|
7
8
|
/**
|
|
8
9
|
* The size of the column. Can be between 1 and 12. Also defines the size of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
9
10
|
*/
|
|
10
|
-
size?: BreakpointCustomizable<3 | 4 | 6 | 2 |
|
|
11
|
+
size?: BreakpointCustomizable<3 | 4 | 6 | 2 | 5 | 7 | 1 | 12 | 8 | 9 | 10 | 11> | undefined;
|
|
11
12
|
}>, {
|
|
12
13
|
offset: number;
|
|
13
14
|
size: number;
|
|
@@ -15,11 +16,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
16
|
/**
|
|
16
17
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
17
18
|
*/
|
|
18
|
-
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 |
|
|
19
|
+
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 | 5 | 7 | 1 | 8 | 9 | 10 | 11> | undefined;
|
|
19
20
|
/**
|
|
20
21
|
* The size of the column. Can be between 1 and 12. Also defines the size of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
21
22
|
*/
|
|
22
|
-
size?: BreakpointCustomizable<3 | 4 | 6 | 2 |
|
|
23
|
+
size?: BreakpointCustomizable<3 | 4 | 6 | 2 | 5 | 7 | 1 | 12 | 8 | 9 | 10 | 11> | undefined;
|
|
23
24
|
}>, {
|
|
24
25
|
offset: number;
|
|
25
26
|
size: number;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { BreakpointCustomizable, GridDirection, GridGutter, GridWrap } from '../types';
|
|
2
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
/**
|
|
4
5
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
5
6
|
*/
|
|
6
7
|
direction?: BreakpointCustomizable<"row" | "column" | "row-reverse" | "column-reverse"> | undefined;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Has no effect anymore
|
|
10
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
9
11
|
*/
|
|
10
12
|
gutter?: BreakpointCustomizable<16 | 24 | 36> | undefined;
|
|
11
13
|
/**
|
|
@@ -26,7 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
28
|
*/
|
|
27
29
|
direction?: BreakpointCustomizable<"row" | "column" | "row-reverse" | "column-reverse"> | undefined;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* Has no effect anymore
|
|
32
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
30
33
|
*/
|
|
31
34
|
gutter?: BreakpointCustomizable<16 | 24 | 36> | undefined;
|
|
32
35
|
/**
|