@porsche-design-system/components-vue 3.18.0 → 3.19.0-rc.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 +17 -0
- package/cjs/lib/components/CarouselWrapper.vue.cjs +1 -1
- package/esm/lib/components/CarouselWrapper.vue.d.ts +15 -1
- package/esm/lib/components/CarouselWrapper.vue.mjs +9 -7
- package/esm/lib/components/ScrollerWrapper.vue.d.ts +1 -1
- package/esm/lib/types.d.ts +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.19.0-rc.0] - 2024-09-03
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- `componentsReady()`: Introduce optional `readyState` parameter
|
|
22
|
+
([#3460](https://github.com/porsche-design-system/porsche-design-system/pull/3460))
|
|
23
|
+
|
|
24
|
+
#### Changed
|
|
25
|
+
|
|
26
|
+
- `Text Field Wrapper`: width calculation of counter and unit element are now CSS based in relation to the number of
|
|
27
|
+
characters ([#3472](https://github.com/porsche-design-system/porsche-design-system/pull/3472))
|
|
28
|
+
|
|
29
|
+
#### Fixed
|
|
30
|
+
|
|
31
|
+
- `jsdom-polyfill`: errors from included polyfill packages
|
|
32
|
+
([3481](https://github.com/porsche-design-system/porsche-design-system/pull/3481))
|
|
33
|
+
|
|
17
34
|
### [3.18.0] - 2024-08-21
|
|
18
35
|
|
|
19
36
|
### [3.18.0-rc.0] - 2024-08-21
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../../utils.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../../utils.cjs"),c=e.defineComponent({__name:"CarouselWrapper",props:{activeSlideIndex:{default:0},alignHeader:{default:"start"},aria:{},description:{},disablePagination:{},focusOnCenterSlide:{type:Boolean,default:!1},gradientColor:{default:"none"},heading:{},headingSize:{default:"x-large"},intl:{},pagination:{default:!0},rewind:{type:Boolean,default:!0},skipLinkTarget:{},slidesPerPage:{default:1},theme:{},width:{default:"basic"},wrapContent:{type:Boolean}},emits:["carouselChange","update"],setup(d,{emit:l}){const u=t.usePrefix("p-carousel"),o=d,n=e.ref(),r=l,s=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(n,{...o,theme:o.theme||s.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(n,"carouselChange",r),t.addEventListenerToElementRef(n,"update",r)}),e.onUpdated(i),e.watch(s,a=>{t.syncProperties(n,{theme:o.theme||a})}),(a,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(u)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},512))}});module.exports=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, BreakpointCustomizable, CarouselHeadingSize, CarouselInternationalization, Theme, CarouselWidth } from '../types';
|
|
1
|
+
import type { CarouselAlignHeader, SelectedAriaAttributes, CarouselAriaAttribute, BreakpointCustomizable, CarouselGradientColor, CarouselHeadingSize, CarouselInternationalization, Theme, CarouselWidth } from '../types';
|
|
2
2
|
type PCarouselProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Defines which slide to be active (zero-based numbering).
|
|
@@ -20,6 +20,14 @@ type PCarouselProps = {
|
|
|
20
20
|
* @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.
|
|
21
21
|
*/
|
|
22
22
|
disablePagination?: BreakpointCustomizable<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether focus should be set on the center slide. If true, the carousel loops by individual slide; otherwise, it loops by page.
|
|
25
|
+
*/
|
|
26
|
+
focusOnCenterSlide?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Adapts the background gradient for the left and right edge.
|
|
29
|
+
*/
|
|
30
|
+
gradientColor?: CarouselGradientColor;
|
|
23
31
|
/**
|
|
24
32
|
* Defines the heading used in the carousel.
|
|
25
33
|
*/
|
|
@@ -68,6 +76,8 @@ declare function __VLS_template(): {
|
|
|
68
76
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PCarouselProps>, {
|
|
69
77
|
activeSlideIndex: number;
|
|
70
78
|
alignHeader: string;
|
|
79
|
+
focusOnCenterSlide: boolean;
|
|
80
|
+
gradientColor: string;
|
|
71
81
|
headingSize: string;
|
|
72
82
|
pagination: boolean;
|
|
73
83
|
rewind: boolean;
|
|
@@ -79,6 +89,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
79
89
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PCarouselProps>, {
|
|
80
90
|
activeSlideIndex: number;
|
|
81
91
|
alignHeader: string;
|
|
92
|
+
focusOnCenterSlide: boolean;
|
|
93
|
+
gradientColor: string;
|
|
82
94
|
headingSize: string;
|
|
83
95
|
pagination: boolean;
|
|
84
96
|
rewind: boolean;
|
|
@@ -91,6 +103,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
91
103
|
width: CarouselWidth;
|
|
92
104
|
activeSlideIndex: number;
|
|
93
105
|
alignHeader: CarouselAlignHeader;
|
|
106
|
+
focusOnCenterSlide: boolean;
|
|
107
|
+
gradientColor: CarouselGradientColor;
|
|
94
108
|
headingSize: CarouselHeadingSize;
|
|
95
109
|
pagination: BreakpointCustomizable<boolean>;
|
|
96
110
|
rewind: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePrefix as x, themeInjectionKey as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as u, ref as f, inject as c, onMounted as m, onUpdated as h, watch as g, openBlock as C, createBlock as y, resolveDynamicComponent as _, unref as w, withCtx as P, renderSlot as k } from "vue";
|
|
2
|
+
import { usePrefix as x, themeInjectionKey as B, addEventListenerToElementRef as i, syncProperties as s } from "../../utils.mjs";
|
|
3
|
+
const b = /* @__PURE__ */ u({
|
|
4
4
|
__name: "CarouselWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
activeSlideIndex: { default: 0 },
|
|
@@ -8,6 +8,8 @@ const S = /* @__PURE__ */ c({
|
|
|
8
8
|
aria: {},
|
|
9
9
|
description: {},
|
|
10
10
|
disablePagination: {},
|
|
11
|
+
focusOnCenterSlide: { type: Boolean, default: !1 },
|
|
12
|
+
gradientColor: { default: "none" },
|
|
11
13
|
heading: {},
|
|
12
14
|
headingSize: { default: "x-large" },
|
|
13
15
|
intl: {},
|
|
@@ -20,13 +22,13 @@ const S = /* @__PURE__ */ c({
|
|
|
20
22
|
wrapContent: { type: Boolean }
|
|
21
23
|
},
|
|
22
24
|
emits: ["carouselChange", "update"],
|
|
23
|
-
setup(d, { emit:
|
|
24
|
-
const
|
|
25
|
+
setup(d, { emit: l }) {
|
|
26
|
+
const p = x("p-carousel"), t = d, e = f(), a = l, o = c(B), r = () => s(e, { ...t, theme: t.theme || o.value });
|
|
25
27
|
return m(() => {
|
|
26
28
|
r(), i(e, "carouselChange", a), i(e, "update", a);
|
|
27
29
|
}), h(r), g(o, (n) => {
|
|
28
30
|
s(e, { theme: t.theme || n });
|
|
29
|
-
}), (n,
|
|
31
|
+
}), (n, v) => (C(), y(_(w(p)), {
|
|
30
32
|
ref_key: "pdsComponentRef",
|
|
31
33
|
ref: e
|
|
32
34
|
}, {
|
|
@@ -38,5 +40,5 @@ const S = /* @__PURE__ */ c({
|
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
b as default
|
|
42
44
|
};
|
|
@@ -46,8 +46,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
46
46
|
scrollbar: boolean;
|
|
47
47
|
}>>>, {
|
|
48
48
|
scrollbar: boolean;
|
|
49
|
-
alignScrollIndicator: ScrollerAlignScrollIndicator;
|
|
50
49
|
gradientColor: ScrollerGradientColor;
|
|
50
|
+
alignScrollIndicator: ScrollerAlignScrollIndicator;
|
|
51
51
|
}, {}>;
|
|
52
52
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
53
53
|
export default _default;
|
package/esm/lib/types.d.ts
CHANGED
|
@@ -696,6 +696,12 @@ declare const CAROUSEL_WIDTHS: readonly [
|
|
|
696
696
|
"extended"
|
|
697
697
|
];
|
|
698
698
|
export type CarouselWidth = (typeof CAROUSEL_WIDTHS)[number];
|
|
699
|
+
declare const CAROUSEL_GRADIENT_COLORS: readonly [
|
|
700
|
+
"background-base",
|
|
701
|
+
"background-surface",
|
|
702
|
+
"none"
|
|
703
|
+
];
|
|
704
|
+
export type CarouselGradientColor = (typeof CAROUSEL_GRADIENT_COLORS)[number];
|
|
699
705
|
declare const CAROUSEL_ALIGN_HEADERS: readonly [
|
|
700
706
|
"start",
|
|
701
707
|
"center",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0-rc.0",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.
|
|
20
|
+
"@porsche-design-system/components-js": "3.19.0-rc.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": ">=3.0.0 <4.0.0"
|