@porsche-design-system/components-vue 3.0.0-alpha.1 → 3.0.0-alpha.3
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 +351 -3
- package/OSS_NOTICE +65234 -2280
- package/README.md +25 -2
- package/lib/components/AccordionWrapper.vue.d.ts +3 -0
- package/lib/components/AccordionWrapper.vue.js +13 -13
- package/lib/components/BannerWrapper.vue.d.ts +30 -2
- package/lib/components/BannerWrapper.vue.js +11 -9
- package/lib/components/ButtonPureWrapper.vue.d.ts +13 -13
- package/lib/components/ButtonWrapper.vue.d.ts +5 -5
- package/lib/components/CarouselWrapper.vue.d.ts +43 -8
- package/lib/components/CarouselWrapper.vue.js +18 -15
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ContentWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ContentWrapperWrapper.vue.js +5 -5
- package/lib/components/DisplayWrapper.vue.d.ts +2 -2
- package/lib/components/DividerWrapper.vue.d.ts +16 -8
- package/lib/components/DividerWrapper.vue.js +13 -12
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/GridItemWrapper.vue.d.ts +4 -4
- package/lib/components/HeadingWrapper.vue.d.ts +2 -2
- package/lib/components/IconWrapper.vue.d.ts +4 -4
- package/lib/components/InlineNotificationWrapper.vue.d.ts +3 -3
- package/lib/components/LinkPureWrapper.vue.d.ts +12 -12
- package/lib/components/LinkSocialWrapper.vue.d.ts +5 -5
- package/lib/components/LinkTileWrapper.vue.d.ts +4 -4
- package/lib/components/LinkTileWrapper.vue.js +1 -1
- package/lib/components/LinkWrapper.vue.d.ts +4 -4
- package/lib/components/MarqueWrapper.vue.d.ts +2 -2
- package/lib/components/ModalWrapper.vue.d.ts +16 -5
- package/lib/components/ModalWrapper.vue.js +13 -12
- package/lib/components/ModelSignatureWrapper.vue.d.ts +66 -0
- package/lib/components/ModelSignatureWrapper.vue.js +25 -0
- package/lib/components/ModelSignatureWrapper.vue2.js +4 -0
- package/lib/components/PaginationWrapper.vue.d.ts +38 -26
- package/lib/components/PaginationWrapper.vue.js +17 -16
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +2 -2
- package/lib/components/ScrollerWrapper.vue.d.ts +27 -11
- package/lib/components/ScrollerWrapper.vue.js +15 -13
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -2
- package/lib/components/SegmentedControlWrapper.vue.d.ts +5 -2
- package/lib/components/SegmentedControlWrapper.vue.js +12 -12
- package/lib/components/SelectWrapperWrapper.vue.d.ts +4 -4
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +6 -3
- package/lib/components/StepperHorizontalWrapper.vue.js +13 -13
- package/lib/components/SwitchWrapper.vue.d.ts +6 -3
- package/lib/components/SwitchWrapper.vue.js +13 -13
- package/lib/components/TableWrapper.vue.d.ts +3 -0
- package/lib/components/TableWrapper.vue.js +10 -10
- package/lib/components/TabsBarWrapper.vue.d.ts +21 -10
- package/lib/components/TabsBarWrapper.vue.js +15 -14
- package/lib/components/TabsWrapper.vue.d.ts +21 -10
- package/lib/components/TabsWrapper.vue.js +15 -14
- package/lib/components/TagDismissibleWrapper.vue.d.ts +2 -2
- package/lib/components/TagWrapper.vue.d.ts +2 -2
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextFieldWrapperWrapper.vue.js +7 -6
- package/lib/components/TextListWrapper.vue.d.ts +18 -13
- package/lib/components/TextListWrapper.vue.js +11 -10
- package/lib/components/TextWrapper.vue.d.ts +6 -6
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +16 -8
- package/lib/components/TextareaWrapperWrapper.vue.js +12 -11
- package/lib/components/index.d.ts +1 -0
- package/lib/types.d.ts +164 -60
- 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
|
|
|
@@ -30,6 +30,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
30
|
theme: string;
|
|
31
31
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
32
|
accordionChange: (value: AccordionChangeEvent) => void;
|
|
33
|
+
} & {
|
|
34
|
+
change: (value: AccordionChangeEvent) => void;
|
|
33
35
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
34
36
|
/**
|
|
35
37
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
@@ -60,6 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
62
|
tag: string;
|
|
61
63
|
theme: string;
|
|
62
64
|
}>>> & {
|
|
65
|
+
onChange?: ((value: AccordionChangeEvent) => any) | undefined;
|
|
63
66
|
onAccordionChange?: ((value: AccordionChangeEvent) => any) | undefined;
|
|
64
67
|
}, {
|
|
65
68
|
size: BreakpointCustomizable<AccordionSize>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const k = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as l, ref as d, onMounted as s, onUpdated as f, openBlock as m, createBlock as i, resolveDynamicComponent as u, unref as g, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as t, addEventListenerToElementRef as a } from "../../utils.js";
|
|
3
|
+
const k = /* @__PURE__ */ l({
|
|
4
4
|
__name: "AccordionWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
compact: { type: Boolean },
|
|
@@ -10,19 +10,19 @@ const k = /* @__PURE__ */ c({
|
|
|
10
10
|
tag: { default: "h2" },
|
|
11
11
|
theme: { default: "light" }
|
|
12
12
|
},
|
|
13
|
-
emits: ["accordionChange"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
n(e.value, o),
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
}), (
|
|
13
|
+
emits: ["accordionChange", "change"],
|
|
14
|
+
setup(r, { emit: o }) {
|
|
15
|
+
const n = r, p = _("p-accordion"), e = d();
|
|
16
|
+
return s(() => {
|
|
17
|
+
t(e.value, n), a(e.value, "accordionChange", o), a(e.value, "change", o);
|
|
18
|
+
}), f(() => {
|
|
19
|
+
t(e.value, n);
|
|
20
|
+
}), (c, v) => (m(), i(u(g(p)), {
|
|
21
21
|
ref_key: "pdsComponentRef",
|
|
22
22
|
ref: e
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
|
|
24
|
+
default: h(() => [
|
|
25
|
+
C(c.$slots, "default")
|
|
26
26
|
]),
|
|
27
27
|
_: 3
|
|
28
28
|
}, 512));
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { BannerState, Theme, BannerWidth } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* Description of the banner.
|
|
5
|
+
*/
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Heading of the banner.
|
|
9
|
+
*/
|
|
10
|
+
heading?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Defines if the banner can be closed/removed by the user.
|
|
13
|
+
*/
|
|
3
14
|
persistent?: boolean | undefined;
|
|
4
15
|
/**
|
|
5
16
|
* State of the banner.
|
|
@@ -12,8 +23,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
23
|
/**
|
|
13
24
|
* Defines the width of the banner corresponding to the `content-wrapper` dimensions
|
|
14
25
|
*/
|
|
15
|
-
width?: "
|
|
26
|
+
width?: "extended" | "basic" | "fluid" | undefined;
|
|
16
27
|
}>, {
|
|
28
|
+
description: string;
|
|
29
|
+
heading: string;
|
|
17
30
|
persistent: boolean;
|
|
18
31
|
state: string;
|
|
19
32
|
theme: string;
|
|
@@ -21,6 +34,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
34
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
35
|
dismiss: (value?: void | undefined) => void;
|
|
23
36
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
37
|
+
/**
|
|
38
|
+
* Description of the banner.
|
|
39
|
+
*/
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Heading of the banner.
|
|
43
|
+
*/
|
|
44
|
+
heading?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Defines if the banner can be closed/removed by the user.
|
|
47
|
+
*/
|
|
24
48
|
persistent?: boolean | undefined;
|
|
25
49
|
/**
|
|
26
50
|
* State of the banner.
|
|
@@ -33,8 +57,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
57
|
/**
|
|
34
58
|
* Defines the width of the banner corresponding to the `content-wrapper` dimensions
|
|
35
59
|
*/
|
|
36
|
-
width?: "
|
|
60
|
+
width?: "extended" | "basic" | "fluid" | undefined;
|
|
37
61
|
}>, {
|
|
62
|
+
description: string;
|
|
63
|
+
heading: string;
|
|
38
64
|
persistent: boolean;
|
|
39
65
|
state: string;
|
|
40
66
|
theme: string;
|
|
@@ -42,7 +68,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
68
|
}>>> & {
|
|
43
69
|
onDismiss?: ((value?: void | undefined) => any) | undefined;
|
|
44
70
|
}, {
|
|
71
|
+
heading: string;
|
|
45
72
|
theme: Theme;
|
|
73
|
+
description: string;
|
|
46
74
|
persistent: boolean;
|
|
47
75
|
state: BannerState;
|
|
48
76
|
width: BannerWidth;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const B = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as d, ref as p, onMounted as f, onUpdated as i, openBlock as l, createBlock as m, resolveDynamicComponent as u, unref as c, withCtx as _, renderSlot as h } from "vue";
|
|
2
|
+
import { getPrefixedTagName as C, syncProperties as n, addEventListenerToElementRef as g } from "../../utils.js";
|
|
3
|
+
const B = /* @__PURE__ */ d({
|
|
4
4
|
__name: "BannerWrapper",
|
|
5
5
|
props: {
|
|
6
|
+
description: { default: "" },
|
|
7
|
+
heading: { default: "" },
|
|
6
8
|
persistent: { type: Boolean, default: !1 },
|
|
7
9
|
state: { default: "info" },
|
|
8
10
|
theme: { default: "light" },
|
|
9
11
|
width: { default: "extended" }
|
|
10
12
|
},
|
|
11
13
|
emits: ["dismiss"],
|
|
12
|
-
setup(o, { emit:
|
|
13
|
-
const t = o,
|
|
14
|
+
setup(o, { emit: a }) {
|
|
15
|
+
const t = o, r = C("p-banner"), e = p();
|
|
14
16
|
return f(() => {
|
|
15
|
-
n(e.value, t),
|
|
16
|
-
}),
|
|
17
|
+
n(e.value, t), g(e.value, "dismiss", a);
|
|
18
|
+
}), i(() => {
|
|
17
19
|
n(e.value, t);
|
|
18
|
-
}), (
|
|
20
|
+
}), (s, v) => (l(), m(u(c(r)), {
|
|
19
21
|
ref_key: "pdsComponentRef",
|
|
20
22
|
ref: e
|
|
21
23
|
}, {
|
|
22
24
|
default: _(() => [
|
|
23
|
-
|
|
25
|
+
h(s.$slots, "default")
|
|
24
26
|
]),
|
|
25
27
|
_: 3
|
|
26
28
|
}, 512));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Display button in active state.
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
/**
|
|
24
24
|
* The icon shown.
|
|
25
25
|
*/
|
|
26
|
-
icon?: LinkButtonIconName | undefined;
|
|
26
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* A URL path to a custom icon.
|
|
29
29
|
*/
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
35
|
/**
|
|
36
36
|
* Size of the button.
|
|
37
37
|
*/
|
|
38
|
-
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
38
|
+
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Stretches the area between icon and label to max available space.
|
|
41
41
|
*/
|
|
@@ -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;
|
|
@@ -89,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
89
|
/**
|
|
90
90
|
* The icon shown.
|
|
91
91
|
*/
|
|
92
|
-
icon?: LinkButtonIconName | undefined;
|
|
92
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
93
93
|
/**
|
|
94
94
|
* A URL path to a custom icon.
|
|
95
95
|
*/
|
|
@@ -101,7 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
101
101
|
/**
|
|
102
102
|
* Size of the button.
|
|
103
103
|
*/
|
|
104
|
-
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
104
|
+
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* Stretches the area between icon and label to max available space.
|
|
107
107
|
*/
|
|
@@ -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;
|
|
@@ -132,16 +132,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
132
132
|
type: string;
|
|
133
133
|
weight: string;
|
|
134
134
|
}>>>, {
|
|
135
|
-
weight:
|
|
135
|
+
weight: ButtonPureWeight;
|
|
136
136
|
stretch: BreakpointCustomizable<boolean>;
|
|
137
|
-
|
|
138
|
-
size: BreakpointCustomizable<TextSize>;
|
|
137
|
+
size: BreakpointCustomizable<ButtonPureSize>;
|
|
139
138
|
theme: Theme;
|
|
140
|
-
type:
|
|
139
|
+
type: ButtonPureType;
|
|
141
140
|
active: boolean;
|
|
142
|
-
alignLabel: BreakpointCustomizable<
|
|
141
|
+
alignLabel: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
142
|
+
disabled: boolean;
|
|
143
143
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
144
|
-
icon:
|
|
144
|
+
icon: ButtonPureIcon;
|
|
145
145
|
loading: boolean;
|
|
146
146
|
}>, {
|
|
147
147
|
default: (_: {}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, BreakpointCustomizable,
|
|
1
|
+
import type { SelectedAriaAttributes, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Add ARIA attributes.
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* The icon shown. By choosing 'none', no icon is displayed.
|
|
17
17
|
*/
|
|
18
|
-
icon?: LinkButtonIconName | undefined;
|
|
18
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* A URL path to a custom icon.
|
|
21
21
|
*/
|
|
@@ -60,7 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
60
|
/**
|
|
61
61
|
* The icon shown. By choosing 'none', no icon is displayed.
|
|
62
62
|
*/
|
|
63
|
-
icon?: LinkButtonIconName | undefined;
|
|
63
|
+
icon?: import("../types").LinkButtonIconName | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* A URL path to a custom icon.
|
|
66
66
|
*/
|
|
@@ -90,11 +90,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
90
90
|
type: string;
|
|
91
91
|
variant: string;
|
|
92
92
|
}>>>, {
|
|
93
|
-
disabled: boolean;
|
|
94
93
|
theme: Theme;
|
|
95
94
|
type: ButtonType;
|
|
95
|
+
disabled: boolean;
|
|
96
96
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
97
|
-
icon:
|
|
97
|
+
icon: ButtonIcon;
|
|
98
98
|
loading: boolean;
|
|
99
99
|
variant: ButtonVariant;
|
|
100
100
|
}>, {
|
|
@@ -1,11 +1,15 @@
|
|
|
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
|
*/
|
|
6
10
|
description?: string | undefined;
|
|
7
11
|
/**
|
|
8
|
-
* If true, the carousel will not show pagination bullets at the bottom.
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
|
|
9
13
|
*/
|
|
10
14
|
disablePagination?: BreakpointCustomizable<boolean> | undefined;
|
|
11
15
|
/**
|
|
@@ -16,6 +20,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
20
|
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
17
21
|
*/
|
|
18
22
|
intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* If false, the carousel will not show pagination bullets at the bottom.
|
|
25
|
+
*/
|
|
26
|
+
pagination?: BreakpointCustomizable<boolean> | undefined;
|
|
19
27
|
/**
|
|
20
28
|
* Whether the slides should rewind from last to first slide and vice versa.
|
|
21
29
|
*/
|
|
@@ -29,24 +37,37 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
37
|
*/
|
|
30
38
|
theme?: "light" | "dark" | undefined;
|
|
31
39
|
/**
|
|
32
|
-
*
|
|
40
|
+
* Defines the outer spacings between the carousel and the left and right screen sides.
|
|
41
|
+
*/
|
|
42
|
+
width?: "extended" | "basic" | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Has no effect anymore
|
|
45
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
33
46
|
*/
|
|
34
47
|
wrapContent?: boolean | undefined;
|
|
35
48
|
}>, {
|
|
36
|
-
|
|
49
|
+
alignHeader: string;
|
|
37
50
|
intl: () => {};
|
|
51
|
+
pagination: boolean;
|
|
38
52
|
rewind: boolean;
|
|
39
53
|
slidesPerPage: number;
|
|
40
54
|
theme: string;
|
|
55
|
+
width: string;
|
|
41
56
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
57
|
carouselChange: (value: CarouselChangeEvent) => void;
|
|
58
|
+
} & {
|
|
59
|
+
change: (value: CarouselChangeEvent) => void;
|
|
43
60
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
61
|
+
/**
|
|
62
|
+
* Alignment of heading and description
|
|
63
|
+
*/
|
|
64
|
+
alignHeader?: "center" | "left" | undefined;
|
|
44
65
|
/**
|
|
45
66
|
* Defines the description used in the carousel.
|
|
46
67
|
*/
|
|
47
68
|
description?: string | undefined;
|
|
48
69
|
/**
|
|
49
|
-
* If true, the carousel will not show pagination bullets at the bottom.
|
|
70
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
|
|
50
71
|
*/
|
|
51
72
|
disablePagination?: BreakpointCustomizable<boolean> | undefined;
|
|
52
73
|
/**
|
|
@@ -57,6 +78,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
57
78
|
* Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
|
|
58
79
|
*/
|
|
59
80
|
intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* If false, the carousel will not show pagination bullets at the bottom.
|
|
83
|
+
*/
|
|
84
|
+
pagination?: BreakpointCustomizable<boolean> | undefined;
|
|
60
85
|
/**
|
|
61
86
|
* Whether the slides should rewind from last to first slide and vice versa.
|
|
62
87
|
*/
|
|
@@ -70,21 +95,31 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
70
95
|
*/
|
|
71
96
|
theme?: "light" | "dark" | undefined;
|
|
72
97
|
/**
|
|
73
|
-
*
|
|
98
|
+
* Defines the outer spacings between the carousel and the left and right screen sides.
|
|
99
|
+
*/
|
|
100
|
+
width?: "extended" | "basic" | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Has no effect anymore
|
|
103
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
74
104
|
*/
|
|
75
105
|
wrapContent?: boolean | undefined;
|
|
76
106
|
}>, {
|
|
77
|
-
|
|
107
|
+
alignHeader: string;
|
|
78
108
|
intl: () => {};
|
|
109
|
+
pagination: boolean;
|
|
79
110
|
rewind: boolean;
|
|
80
111
|
slidesPerPage: number;
|
|
81
112
|
theme: string;
|
|
113
|
+
width: string;
|
|
82
114
|
}>>> & {
|
|
115
|
+
onChange?: ((value: CarouselChangeEvent) => any) | undefined;
|
|
83
116
|
onCarouselChange?: ((value: CarouselChangeEvent) => any) | undefined;
|
|
84
117
|
}, {
|
|
85
118
|
theme: Theme;
|
|
86
|
-
|
|
119
|
+
width: CarouselWidth;
|
|
120
|
+
alignHeader: CarouselAlignHeader;
|
|
87
121
|
intl: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>>;
|
|
122
|
+
pagination: BreakpointCustomizable<boolean>;
|
|
88
123
|
rewind: boolean;
|
|
89
124
|
slidesPerPage: BreakpointCustomizable<number>;
|
|
90
125
|
}>, {
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getPrefixedTagName as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as d, ref as s, onMounted as p, onUpdated as i, openBlock as f, createBlock as c, resolveDynamicComponent as m, unref as g, withCtx as h, renderSlot as C } from "vue";
|
|
2
|
+
import { getPrefixedTagName as _, syncProperties as a, addEventListenerToElementRef as o } from "../../utils.js";
|
|
3
|
+
const P = /* @__PURE__ */ d({
|
|
4
4
|
__name: "CarouselWrapper",
|
|
5
5
|
props: {
|
|
6
|
+
alignHeader: { default: "left" },
|
|
6
7
|
description: null,
|
|
7
|
-
disablePagination:
|
|
8
|
+
disablePagination: null,
|
|
8
9
|
heading: null,
|
|
9
10
|
intl: { default: () => ({}) },
|
|
11
|
+
pagination: { default: !0 },
|
|
10
12
|
rewind: { type: Boolean, default: !0 },
|
|
11
13
|
slidesPerPage: { default: 1 },
|
|
12
14
|
theme: { default: "light" },
|
|
15
|
+
width: { default: "basic" },
|
|
13
16
|
wrapContent: { type: Boolean }
|
|
14
17
|
},
|
|
15
|
-
emits: ["carouselChange"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
-
n(e.value, t),
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
}), (
|
|
18
|
+
emits: ["carouselChange", "change"],
|
|
19
|
+
setup(l, { emit: t }) {
|
|
20
|
+
const n = l, r = _("p-carousel"), e = s();
|
|
21
|
+
return p(() => {
|
|
22
|
+
a(e.value, n), o(e.value, "carouselChange", t), o(e.value, "change", t);
|
|
23
|
+
}), i(() => {
|
|
24
|
+
a(e.value, n);
|
|
25
|
+
}), (u, v) => (f(), c(m(g(r)), {
|
|
23
26
|
ref_key: "pdsComponentRef",
|
|
24
27
|
ref: e
|
|
25
28
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
|
|
29
|
+
default: h(() => [
|
|
30
|
+
C(u.$slots, "default")
|
|
28
31
|
]),
|
|
29
32
|
_: 3
|
|
30
33
|
}, 512));
|
|
31
34
|
}
|
|
32
35
|
});
|
|
33
36
|
export {
|
|
34
|
-
|
|
37
|
+
P as default
|
|
35
38
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable,
|
|
1
|
+
import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
@@ -56,7 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
56
|
}>>>, {
|
|
57
57
|
label: string;
|
|
58
58
|
theme: Theme;
|
|
59
|
-
state:
|
|
59
|
+
state: CheckboxWrapperState;
|
|
60
60
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
61
61
|
message: string;
|
|
62
62
|
}>, {
|
|
@@ -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
|
}, {
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
18
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Sets a custom HTML tag depending on the usage of the display component.
|
|
21
21
|
*/
|
|
@@ -46,7 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
46
|
/**
|
|
47
47
|
* Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
|
|
48
48
|
*/
|
|
49
|
-
size?: BreakpointCustomizable<"inherit" | "medium" | "large"> | undefined;
|
|
49
|
+
size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* Sets a custom HTML tag depending on the usage of the display component.
|
|
52
52
|
*/
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import type { DividerColor, BreakpointCustomizable,
|
|
1
|
+
import type { DividerColor, BreakpointCustomizable, DividerDirection, Theme } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines color depending on theme.
|
|
5
5
|
*/
|
|
6
|
-
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
|
-
* Defines
|
|
8
|
+
* Defines direction.
|
|
9
|
+
*/
|
|
10
|
+
direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
|
|
9
13
|
*/
|
|
10
14
|
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
15
|
/**
|
|
@@ -14,15 +18,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
18
|
theme?: "light" | "dark" | undefined;
|
|
15
19
|
}>, {
|
|
16
20
|
color: string;
|
|
17
|
-
|
|
21
|
+
direction: string;
|
|
18
22
|
theme: string;
|
|
19
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
24
|
/**
|
|
21
25
|
* Defines color depending on theme.
|
|
22
26
|
*/
|
|
23
|
-
color?: "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
27
|
+
color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Defines direction.
|
|
30
|
+
*/
|
|
31
|
+
direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
24
32
|
/**
|
|
25
|
-
* Defines orientation.
|
|
33
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
|
|
26
34
|
*/
|
|
27
35
|
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
28
36
|
/**
|
|
@@ -31,12 +39,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
31
39
|
theme?: "light" | "dark" | undefined;
|
|
32
40
|
}>, {
|
|
33
41
|
color: string;
|
|
34
|
-
|
|
42
|
+
direction: string;
|
|
35
43
|
theme: string;
|
|
36
44
|
}>>>, {
|
|
37
45
|
theme: Theme;
|
|
46
|
+
direction: BreakpointCustomizable<DividerDirection>;
|
|
38
47
|
color: DividerColor;
|
|
39
|
-
orientation: BreakpointCustomizable<DividerOrientation>;
|
|
40
48
|
}>;
|
|
41
49
|
export default _default;
|
|
42
50
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|