@porsche-design-system/components-vue 3.0.0-alpha.0 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -2
- package/OSS_NOTICE +65234 -2280
- package/README.md +25 -2
- package/lib/components/BannerWrapper.vue.d.ts +2 -2
- package/lib/components/ButtonPureWrapper.vue.d.ts +3 -3
- package/lib/components/ButtonWrapper.vue.d.ts +1 -1
- package/lib/components/CarouselWrapper.vue.d.ts +27 -3
- package/lib/components/CarouselWrapper.vue.js +12 -10
- package/lib/components/ContentWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ContentWrapperWrapper.vue.js +5 -5
- package/lib/components/DividerWrapper.vue.d.ts +2 -2
- package/lib/components/DividerWrapper.vue.js +7 -7
- package/lib/components/IconWrapper.vue.d.ts +2 -2
- package/lib/components/LinkPureWrapper.vue.d.ts +2 -2
- package/lib/components/ModelSignatureWrapper.vue.d.ts +66 -0
- package/lib/components/ModelSignatureWrapper.vue.js +25 -0
- package/lib/components/ModelSignatureWrapper.vue2.js +4 -0
- package/lib/components/SwitchWrapper.vue.d.ts +1 -1
- package/lib/components/TagWrapper.vue.d.ts +2 -2
- package/lib/components/TextListWrapper.vue.d.ts +6 -6
- package/lib/components/TextWrapper.vue.d.ts +4 -4
- package/lib/components/index.d.ts +1 -0
- package/lib/types.d.ts +89 -32
- package/package.json +2 -2
- package/plugin.d.ts +14 -0
- package/plugin.js +28 -0
- package/public-api.d.ts +1 -0
- package/public-api.js +83 -78
package/README.md
CHANGED
|
@@ -22,8 +22,8 @@ yarn add @porsche-design-system/components-vue
|
|
|
22
22
|
|
|
23
23
|
### Usage
|
|
24
24
|
|
|
25
|
-
After adding the `@porsche-design-system/components-vue` package to your project, you've to extend your standard
|
|
26
|
-
|
|
25
|
+
After adding the `@porsche-design-system/components-vue` package to your project, you've to extend your standard vue
|
|
26
|
+
setup by the `PorscheDesignSystemProvider` by adding it to your `App.vue` file.
|
|
27
27
|
|
|
28
28
|
```tsx
|
|
29
29
|
// App.vue
|
|
@@ -52,6 +52,29 @@ vue setup by the `PorscheDesignSystemProvider` by adding it to your `App.vue` fi
|
|
|
52
52
|
</template>
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
### Plugin
|
|
56
|
+
|
|
57
|
+
You can also use the `PorscheDesignSystemPlugin` to extend your vue setup.
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
// main.ts
|
|
61
|
+
import { createApp } from 'vue';
|
|
62
|
+
import { createPorscheDesignSystem } from '@porsche-design-system/components-vue';
|
|
63
|
+
|
|
64
|
+
const app = createApp(App);
|
|
65
|
+
app.use(createPorscheDesignSystem({ prefix: 'my-prefix' }));
|
|
66
|
+
app.mount('#app');
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Composable
|
|
70
|
+
|
|
71
|
+
The `usePorscheDesignSystemPlugin` composable provides access to the `PorscheDesignSystemPlugin` context.
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
import { usePorscheDesignSystemPlugin } from '@porsche-design-system/components-vue';
|
|
75
|
+
|
|
76
|
+
const { isPorscheDesignSystemLoaded, componentsReady } = usePorscheDesignSystemPlugin();
|
|
77
|
+
```
|
|
55
78
|
|
|
56
79
|
## Methodology
|
|
57
80
|
|
|
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
12
|
/**
|
|
13
13
|
* Defines the width of the banner corresponding to the `content-wrapper` dimensions
|
|
14
14
|
*/
|
|
15
|
-
width?: "
|
|
15
|
+
width?: "extended" | "basic" | "fluid" | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
persistent: boolean;
|
|
18
18
|
state: string;
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
/**
|
|
34
34
|
* Defines the width of the banner corresponding to the `content-wrapper` dimensions
|
|
35
35
|
*/
|
|
36
|
-
width?: "
|
|
36
|
+
width?: "extended" | "basic" | "fluid" | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
persistent: boolean;
|
|
39
39
|
state: string;
|
|
@@ -52,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
52
52
|
* The weight of the text (only has effect with visible label).
|
|
53
53
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
54
54
|
*/
|
|
55
|
-
weight?: "
|
|
55
|
+
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
active: boolean;
|
|
58
58
|
alignLabel: string;
|
|
@@ -118,7 +118,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
118
118
|
* The weight of the text (only has effect with visible label).
|
|
119
119
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
120
120
|
*/
|
|
121
|
-
weight?: "
|
|
121
|
+
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
122
122
|
}>, {
|
|
123
123
|
active: boolean;
|
|
124
124
|
alignLabel: string;
|
|
@@ -134,12 +134,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
134
134
|
}>>>, {
|
|
135
135
|
weight: TextWeight;
|
|
136
136
|
stretch: BreakpointCustomizable<boolean>;
|
|
137
|
+
disabled: boolean;
|
|
137
138
|
size: BreakpointCustomizable<TextSize>;
|
|
138
139
|
theme: Theme;
|
|
139
140
|
type: ButtonType;
|
|
140
141
|
active: boolean;
|
|
141
142
|
alignLabel: BreakpointCustomizable<AlignLabel>;
|
|
142
|
-
disabled: boolean;
|
|
143
143
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
144
144
|
icon: LinkButtonIconName;
|
|
145
145
|
loading: boolean;
|
|
@@ -90,9 +90,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
90
90
|
type: string;
|
|
91
91
|
variant: string;
|
|
92
92
|
}>>>, {
|
|
93
|
+
disabled: boolean;
|
|
93
94
|
theme: Theme;
|
|
94
95
|
type: ButtonType;
|
|
95
|
-
disabled: boolean;
|
|
96
96
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
97
97
|
icon: LinkButtonIconName;
|
|
98
98
|
loading: boolean;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, CarouselChangeEvent, Theme } from '../types';
|
|
1
|
+
import type { CarouselAlignHeader, BreakpointCustomizable, CarouselChangeEvent, Theme, CarouselWidth } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Alignment of heading and description
|
|
5
|
+
*/
|
|
6
|
+
alignHeader?: "center" | "left" | undefined;
|
|
3
7
|
/**
|
|
4
8
|
* Defines the description used in the carousel.
|
|
5
9
|
*/
|
|
@@ -29,18 +33,29 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
33
|
*/
|
|
30
34
|
theme?: "light" | "dark" | undefined;
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* Defines the outer spacings between the carousel and the left and right screen sides.
|
|
37
|
+
*/
|
|
38
|
+
width?: "extended" | "basic" | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Has no effect anymore
|
|
41
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
33
42
|
*/
|
|
34
43
|
wrapContent?: boolean | undefined;
|
|
35
44
|
}>, {
|
|
45
|
+
alignHeader: string;
|
|
36
46
|
disablePagination: boolean;
|
|
37
47
|
intl: () => {};
|
|
38
48
|
rewind: boolean;
|
|
39
49
|
slidesPerPage: number;
|
|
40
50
|
theme: string;
|
|
51
|
+
width: string;
|
|
41
52
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
53
|
carouselChange: (value: CarouselChangeEvent) => void;
|
|
43
54
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
55
|
+
/**
|
|
56
|
+
* Alignment of heading and description
|
|
57
|
+
*/
|
|
58
|
+
alignHeader?: "center" | "left" | undefined;
|
|
44
59
|
/**
|
|
45
60
|
* Defines the description used in the carousel.
|
|
46
61
|
*/
|
|
@@ -70,19 +85,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
70
85
|
*/
|
|
71
86
|
theme?: "light" | "dark" | undefined;
|
|
72
87
|
/**
|
|
73
|
-
*
|
|
88
|
+
* Defines the outer spacings between the carousel and the left and right screen sides.
|
|
89
|
+
*/
|
|
90
|
+
width?: "extended" | "basic" | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Has no effect anymore
|
|
93
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
74
94
|
*/
|
|
75
95
|
wrapContent?: boolean | undefined;
|
|
76
96
|
}>, {
|
|
97
|
+
alignHeader: string;
|
|
77
98
|
disablePagination: boolean;
|
|
78
99
|
intl: () => {};
|
|
79
100
|
rewind: boolean;
|
|
80
101
|
slidesPerPage: number;
|
|
81
102
|
theme: string;
|
|
103
|
+
width: string;
|
|
82
104
|
}>>> & {
|
|
83
105
|
onCarouselChange?: ((value: CarouselChangeEvent) => any) | undefined;
|
|
84
106
|
}, {
|
|
85
107
|
theme: Theme;
|
|
108
|
+
width: CarouselWidth;
|
|
109
|
+
alignHeader: CarouselAlignHeader;
|
|
86
110
|
disablePagination: BreakpointCustomizable<boolean>;
|
|
87
111
|
intl: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
|
|
88
112
|
rewind: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as s, ref as
|
|
1
|
+
import { defineComponent as s, ref as d, onMounted as p, onUpdated as u, openBlock as f, createBlock as i, resolveDynamicComponent as c, unref as m, withCtx as g, renderSlot as C } from "vue";
|
|
2
2
|
import { getPrefixedTagName as h, syncProperties as n, addEventListenerToElementRef as _ } from "../../utils.js";
|
|
3
|
-
const
|
|
3
|
+
const P = /* @__PURE__ */ s({
|
|
4
4
|
__name: "CarouselWrapper",
|
|
5
5
|
props: {
|
|
6
|
+
alignHeader: { default: "left" },
|
|
6
7
|
description: null,
|
|
7
8
|
disablePagination: { default: !1 },
|
|
8
9
|
heading: null,
|
|
@@ -10,26 +11,27 @@ const w = /* @__PURE__ */ s({
|
|
|
10
11
|
rewind: { type: Boolean, default: !0 },
|
|
11
12
|
slidesPerPage: { default: 1 },
|
|
12
13
|
theme: { default: "light" },
|
|
14
|
+
width: { default: "basic" },
|
|
13
15
|
wrapContent: { type: Boolean }
|
|
14
16
|
},
|
|
15
17
|
emits: ["carouselChange"],
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
18
|
-
return
|
|
19
|
-
n(e.value, t), _(e.value, "carouselChange",
|
|
18
|
+
setup(a, { emit: o }) {
|
|
19
|
+
const t = a, l = h("p-carousel"), e = d();
|
|
20
|
+
return p(() => {
|
|
21
|
+
n(e.value, t), _(e.value, "carouselChange", o);
|
|
20
22
|
}), u(() => {
|
|
21
23
|
n(e.value, t);
|
|
22
|
-
}), (
|
|
24
|
+
}), (r, v) => (f(), i(c(m(l)), {
|
|
23
25
|
ref_key: "pdsComponentRef",
|
|
24
26
|
ref: e
|
|
25
27
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
|
|
28
|
+
default: g(() => [
|
|
29
|
+
C(r.$slots, "default")
|
|
28
30
|
]),
|
|
29
31
|
_: 3
|
|
30
32
|
}, 512));
|
|
31
33
|
}
|
|
32
34
|
});
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
P as default
|
|
35
37
|
};
|
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
14
|
/**
|
|
15
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.
|
|
16
16
|
*/
|
|
17
|
-
width?: "
|
|
17
|
+
width?: "extended" | "basic" | "fluid" | "narrow" | "full" | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
backgroundColor: string;
|
|
20
20
|
theme: string;
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
/**
|
|
34
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.
|
|
35
35
|
*/
|
|
36
|
-
width?: "
|
|
36
|
+
width?: "extended" | "basic" | "fluid" | "narrow" | "full" | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
backgroundColor: string;
|
|
39
39
|
theme: string;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
1
|
+
import { defineComponent as a, ref as d, onMounted as f, onUpdated as s, openBlock as l, createBlock as c, resolveDynamicComponent as m, unref as u, withCtx as i, renderSlot as C } from "vue";
|
|
2
2
|
import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
|
|
3
3
|
const w = /* @__PURE__ */ a({
|
|
4
4
|
__name: "ContentWrapperWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
backgroundColor: { default: "transparent" },
|
|
7
7
|
theme: { default: "light" },
|
|
8
|
-
width: { default: "
|
|
8
|
+
width: { default: "extended" }
|
|
9
9
|
},
|
|
10
10
|
setup(n) {
|
|
11
|
-
const t = n, r = _("p-content-wrapper"), e =
|
|
11
|
+
const t = n, r = _("p-content-wrapper"), e = d();
|
|
12
12
|
return f(() => {
|
|
13
13
|
o(e.value, t);
|
|
14
|
-
}),
|
|
14
|
+
}), s(() => {
|
|
15
15
|
o(e.value, t);
|
|
16
|
-
}), (p, g) => (
|
|
16
|
+
}), (p, g) => (l(), c(m(u(r)), {
|
|
17
17
|
ref_key: "pdsComponentRef",
|
|
18
18
|
ref: e
|
|
19
19
|
}, {
|
|
@@ -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-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
6
|
+
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "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-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
23
|
+
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Defines orientation.
|
|
26
26
|
*/
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, ref as a, onMounted as c, onUpdated as f, openBlock as i, createBlock as l, resolveDynamicComponent as s, unref as d } from "vue";
|
|
2
2
|
import { getPrefixedTagName as m, syncProperties as t } from "../../utils.js";
|
|
3
|
-
const g = /* @__PURE__ */
|
|
3
|
+
const g = /* @__PURE__ */ p({
|
|
4
4
|
__name: "DividerWrapper",
|
|
5
5
|
props: {
|
|
6
|
-
color: { default: "
|
|
6
|
+
color: { default: "contrast-low" },
|
|
7
7
|
orientation: { default: "horizontal" },
|
|
8
8
|
theme: { default: "light" }
|
|
9
9
|
},
|
|
10
10
|
setup(n) {
|
|
11
|
-
const o = n, r = m("p-divider"), e =
|
|
12
|
-
return
|
|
11
|
+
const o = n, r = m("p-divider"), e = a();
|
|
12
|
+
return c(() => {
|
|
13
13
|
t(e.value, o);
|
|
14
|
-
}),
|
|
14
|
+
}), f(() => {
|
|
15
15
|
t(e.value, o);
|
|
16
|
-
}), (u, _) => (
|
|
16
|
+
}), (u, _) => (i(), l(s(d(r)), {
|
|
17
17
|
ref_key: "pdsComponentRef",
|
|
18
18
|
ref: e
|
|
19
19
|
}, null, 512));
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
/**
|
|
8
8
|
* Basic color variations depending on theme property.
|
|
9
9
|
*/
|
|
10
|
-
color?: "default" | "primary" | "
|
|
10
|
+
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "disabled" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Has no effect anymore
|
|
13
13
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
43
|
/**
|
|
44
44
|
* Basic color variations depending on theme property.
|
|
45
45
|
*/
|
|
46
|
-
color?: "default" | "primary" | "
|
|
46
|
+
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | "disabled" | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* Has no effect anymore
|
|
49
49
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -60,7 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
60
|
* The weight of the text (only has effect with visible label).
|
|
61
61
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
62
62
|
*/
|
|
63
|
-
weight?: "
|
|
63
|
+
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
64
64
|
}>, {
|
|
65
65
|
active: boolean;
|
|
66
66
|
alignLabel: string;
|
|
@@ -133,7 +133,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
133
133
|
* The weight of the text (only has effect with visible label).
|
|
134
134
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
135
135
|
*/
|
|
136
|
-
weight?: "
|
|
136
|
+
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
137
137
|
}>, {
|
|
138
138
|
active: boolean;
|
|
139
139
|
alignLabel: string;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ModelSignatureColor, ModelSignatureModel, ModelSignatureSize, Theme } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Adapts the color of the component.
|
|
5
|
+
*/
|
|
6
|
+
color?: "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "inherit" | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Adapts the model of the component.
|
|
9
|
+
*/
|
|
10
|
+
model?: "911" | "718" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Adapts the size of the component.
|
|
13
|
+
*/
|
|
14
|
+
size?: "inherit" | "small" | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Adapts color depending on theme.
|
|
17
|
+
*/
|
|
18
|
+
theme?: "light" | "dark" | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
color: string;
|
|
21
|
+
model: string;
|
|
22
|
+
size: string;
|
|
23
|
+
theme: string;
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
25
|
+
/**
|
|
26
|
+
* Adapts the color of the component.
|
|
27
|
+
*/
|
|
28
|
+
color?: "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "inherit" | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Adapts the model of the component.
|
|
31
|
+
*/
|
|
32
|
+
model?: "911" | "718" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo" | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Adapts the size of the component.
|
|
35
|
+
*/
|
|
36
|
+
size?: "inherit" | "small" | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Adapts color depending on theme.
|
|
39
|
+
*/
|
|
40
|
+
theme?: "light" | "dark" | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
color: string;
|
|
43
|
+
model: string;
|
|
44
|
+
size: string;
|
|
45
|
+
theme: string;
|
|
46
|
+
}>>>, {
|
|
47
|
+
size: ModelSignatureSize;
|
|
48
|
+
theme: Theme;
|
|
49
|
+
color: ModelSignatureColor;
|
|
50
|
+
model: ModelSignatureModel;
|
|
51
|
+
}>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type __VLS_WithDefaults<P, D> = {
|
|
63
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
64
|
+
default: D[K];
|
|
65
|
+
} : P[K];
|
|
66
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as a, ref as p, onMounted as l, onUpdated as m, openBlock as s, createBlock as f, resolveDynamicComponent as d, unref as u } from "vue";
|
|
2
|
+
import { getPrefixedTagName as c, syncProperties as t } from "../../utils.js";
|
|
3
|
+
const y = /* @__PURE__ */ a({
|
|
4
|
+
__name: "ModelSignatureWrapper",
|
|
5
|
+
props: {
|
|
6
|
+
color: { default: "primary" },
|
|
7
|
+
model: { default: "911" },
|
|
8
|
+
size: { default: "small" },
|
|
9
|
+
theme: { default: "light" }
|
|
10
|
+
},
|
|
11
|
+
setup(n) {
|
|
12
|
+
const o = n, r = c("p-model-signature"), e = p();
|
|
13
|
+
return l(() => {
|
|
14
|
+
t(e.value, o);
|
|
15
|
+
}), m(() => {
|
|
16
|
+
t(e.value, o);
|
|
17
|
+
}), (i, _) => (s(), f(d(u(r)), {
|
|
18
|
+
ref_key: "pdsComponentRef",
|
|
19
|
+
ref: e
|
|
20
|
+
}, null, 512));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
y as default
|
|
25
|
+
};
|
|
@@ -79,9 +79,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
79
79
|
onSwitchChange?: ((value: SwitchChangeEvent) => any) | undefined;
|
|
80
80
|
}, {
|
|
81
81
|
stretch: BreakpointCustomizable<boolean>;
|
|
82
|
+
disabled: boolean;
|
|
82
83
|
theme: Theme;
|
|
83
84
|
alignLabel: BreakpointCustomizable<AlignLabel>;
|
|
84
|
-
disabled: boolean;
|
|
85
85
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
86
86
|
loading: boolean;
|
|
87
87
|
checked: boolean;
|
|
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
3
3
|
/**
|
|
4
4
|
* Background color variations depending on theme property.
|
|
5
5
|
*/
|
|
6
|
-
color?: "primary" | "
|
|
6
|
+
color?: "primary" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "neutral-contrast-high" | "notification-neutral" | "background-surface" | "background-default" | "background-base" | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* The icon shown.
|
|
9
9
|
*/
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
/**
|
|
24
24
|
* Background color variations depending on theme property.
|
|
25
25
|
*/
|
|
26
|
-
color?: "primary" | "
|
|
26
|
+
color?: "primary" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "neutral-contrast-high" | "notification-neutral" | "background-surface" | "background-default" | "background-base" | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* The icon shown.
|
|
29
29
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ListType, OrderType, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
|
-
* The type of the
|
|
4
|
+
* The type of the list.
|
|
5
5
|
*/
|
|
6
6
|
listType?: "unordered" | "ordered" | undefined;
|
|
7
7
|
/**
|
|
8
|
-
* The list style type of
|
|
8
|
+
* The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
9
9
|
*/
|
|
10
10
|
orderType?: "numbered" | "alphabetically" | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* Adapts the text color depending on the theme.
|
|
12
|
+
* Adapts the text color depending on the theme.
|
|
13
13
|
*/
|
|
14
14
|
theme?: "light" | "dark" | undefined;
|
|
15
15
|
}>, {
|
|
@@ -18,15 +18,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
theme: string;
|
|
19
19
|
}>, {}, 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
20
|
/**
|
|
21
|
-
* The type of the
|
|
21
|
+
* The type of the list.
|
|
22
22
|
*/
|
|
23
23
|
listType?: "unordered" | "ordered" | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* The list style type of
|
|
25
|
+
* The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
26
26
|
*/
|
|
27
27
|
orderType?: "numbered" | "alphabetically" | undefined;
|
|
28
28
|
/**
|
|
29
|
-
* Adapts the text color depending on the theme.
|
|
29
|
+
* Adapts the text color depending on the theme.
|
|
30
30
|
*/
|
|
31
31
|
theme?: "light" | "dark" | undefined;
|
|
32
32
|
}>, {
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
/**
|
|
8
8
|
* Basic text color variations depending on theme property.
|
|
9
9
|
*/
|
|
10
|
-
color?: "default" | "primary" | "
|
|
10
|
+
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
13
|
*/
|
|
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
/**
|
|
28
28
|
* The weight of the text.
|
|
29
29
|
*/
|
|
30
|
-
weight?: "
|
|
30
|
+
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
align: string;
|
|
33
33
|
color: string;
|
|
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
44
44
|
/**
|
|
45
45
|
* Basic text color variations depending on theme property.
|
|
46
46
|
*/
|
|
47
|
-
color?: "default" | "primary" | "
|
|
47
|
+
color?: "default" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "inherit" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
50
50
|
*/
|
|
@@ -64,7 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
64
|
/**
|
|
65
65
|
* The weight of the text.
|
|
66
66
|
*/
|
|
67
|
-
weight?: "
|
|
67
|
+
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
68
68
|
}>, {
|
|
69
69
|
align: string;
|
|
70
70
|
color: string;
|
|
@@ -23,6 +23,7 @@ export { default as PLinkSocial } from './LinkSocialWrapper.vue';
|
|
|
23
23
|
export { default as PLinkTile } from './LinkTileWrapper.vue';
|
|
24
24
|
export { default as PMarque } from './MarqueWrapper.vue';
|
|
25
25
|
export { default as PModal } from './ModalWrapper.vue';
|
|
26
|
+
export { default as PModelSignature } from './ModelSignatureWrapper.vue';
|
|
26
27
|
export { default as PPagination } from './PaginationWrapper.vue';
|
|
27
28
|
export { default as PPopover } from './PopoverWrapper.vue';
|
|
28
29
|
export { default as PRadioButtonWrapper } from './RadioButtonWrapperWrapper.vue';
|