@porsche-design-system/components-vue 3.19.0-rc.0 → 3.19.0-rc.1
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
CHANGED
|
@@ -14,12 +14,20 @@ 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.1] - 2024-09-06
|
|
18
|
+
|
|
19
|
+
#### Changed
|
|
20
|
+
|
|
21
|
+
- `Canvas`: Improve UX ([#3494](https://github.com/porsche-design-system/porsche-design-system/pull/3494))
|
|
22
|
+
|
|
17
23
|
### [3.19.0-rc.0] - 2024-09-03
|
|
18
24
|
|
|
19
25
|
#### Added
|
|
20
26
|
|
|
21
27
|
- `componentsReady()`: Introduce optional `readyState` parameter
|
|
22
28
|
([#3460](https://github.com/porsche-design-system/porsche-design-system/pull/3460))
|
|
29
|
+
- `Carousel`: introduce `focusOnCenterSlide` & `gradientColor` props
|
|
30
|
+
([#3488](https://github.com/porsche-design-system/porsche-design-system/pull/3488))
|
|
23
31
|
|
|
24
32
|
#### Changed
|
|
25
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"CanvasWrapper",props:{sidebarEndIcon:{default:"configurate"},sidebarEndOpen:{type:Boolean,default:!1},sidebarStartIcon:{default:"menu-lines"},sidebarStartOpen:{type:Boolean,default:!1},theme:{}},setup(c){const p=t.usePrefix("p-canvas"),n=c,o=e.ref(),r=e.inject(t.themeInjectionKey),a=()=>t.syncProperties(o,{...n,theme:n.theme||r.value});return e.onMounted(a),e.onUpdated(a),e.watch(r,s=>{t.syncProperties(o,{theme:n.theme||s})}),(s,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},512))}});module.exports=u;
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CanvasSidebarEndIcon, CanvasSidebarStartIcon, Theme } from '../types';
|
|
2
2
|
type PCanvasProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The icon to toggle the Sidebar on the end side
|
|
5
|
+
*/
|
|
6
|
+
sidebarEndIcon?: CanvasSidebarEndIcon;
|
|
7
|
+
/**
|
|
8
|
+
* Open Sidebar on the end side
|
|
9
|
+
*/
|
|
3
10
|
sidebarEndOpen?: boolean;
|
|
4
11
|
/**
|
|
5
|
-
*
|
|
12
|
+
* The icon to toggle the Sidebar on the start side
|
|
6
13
|
*/
|
|
7
|
-
|
|
14
|
+
sidebarStartIcon?: CanvasSidebarStartIcon;
|
|
8
15
|
/**
|
|
9
16
|
* Open Sidebar on the start side
|
|
10
17
|
*/
|
|
11
18
|
sidebarStartOpen?: boolean;
|
|
12
19
|
/**
|
|
13
|
-
*
|
|
20
|
+
* Adapts the color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
14
21
|
*/
|
|
15
|
-
|
|
22
|
+
theme?: Theme;
|
|
16
23
|
};
|
|
17
24
|
declare function __VLS_template(): {
|
|
18
25
|
default?(_: {}): any;
|
|
19
26
|
};
|
|
20
27
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PCanvasProps>, {
|
|
28
|
+
sidebarEndIcon: string;
|
|
29
|
+
sidebarEndOpen: boolean;
|
|
30
|
+
sidebarStartIcon: string;
|
|
31
|
+
sidebarStartOpen: boolean;
|
|
32
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PCanvasProps>, {
|
|
33
|
+
sidebarEndIcon: string;
|
|
21
34
|
sidebarEndOpen: boolean;
|
|
22
|
-
|
|
35
|
+
sidebarStartIcon: string;
|
|
23
36
|
sidebarStartOpen: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
}>>>, {
|
|
38
|
+
sidebarEndIcon: CanvasSidebarEndIcon;
|
|
26
39
|
sidebarEndOpen: boolean;
|
|
27
|
-
|
|
40
|
+
sidebarStartIcon: CanvasSidebarStartIcon;
|
|
28
41
|
sidebarStartOpen: boolean;
|
|
29
|
-
sidebarStartWidth: CanvasSidebarStartWidth;
|
|
30
42
|
}, {}>;
|
|
31
43
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
32
44
|
export default _default;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePrefix as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, ref as f, inject as d, onMounted as m, onUpdated as l, watch as i, openBlock as u, createBlock as h, resolveDynamicComponent as y, unref as C, withCtx as _, renderSlot as b } from "vue";
|
|
2
|
+
import { usePrefix as v, themeInjectionKey as B, syncProperties as r } from "../../utils.mjs";
|
|
3
|
+
const I = /* @__PURE__ */ c({
|
|
4
4
|
__name: "CanvasWrapper",
|
|
5
5
|
props: {
|
|
6
|
+
sidebarEndIcon: { default: "configurate" },
|
|
6
7
|
sidebarEndOpen: { type: Boolean, default: !1 },
|
|
7
|
-
|
|
8
|
+
sidebarStartIcon: { default: "menu-lines" },
|
|
8
9
|
sidebarStartOpen: { type: Boolean, default: !1 },
|
|
9
|
-
|
|
10
|
+
theme: {}
|
|
10
11
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}), l(n), (i, h) => (c(), u(b(S(a)), {
|
|
12
|
+
setup(s) {
|
|
13
|
+
const p = v("p-canvas"), e = s, t = f(), o = d(B), a = () => r(t, { ...e, theme: e.theme || o.value });
|
|
14
|
+
return m(a), l(a), i(o, (n) => {
|
|
15
|
+
r(t, { theme: e.theme || n });
|
|
16
|
+
}), (n, k) => (u(), h(y(C(p)), {
|
|
17
17
|
ref_key: "pdsComponentRef",
|
|
18
|
-
ref:
|
|
18
|
+
ref: t
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
20
|
+
default: _(() => [
|
|
21
|
+
b(n.$slots, "default")
|
|
22
22
|
]),
|
|
23
23
|
_: 3
|
|
24
24
|
}, 512));
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
I as default
|
|
29
29
|
};
|
package/esm/lib/types.d.ts
CHANGED
|
@@ -684,13 +684,8 @@ export type ButtonTileSize = TileSize;
|
|
|
684
684
|
export type ButtonTileBackground = TileBackground;
|
|
685
685
|
export type ButtonTileWeight = TileWeight;
|
|
686
686
|
export type ButtonTileAlign = TileAlign;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
"large"
|
|
690
|
-
];
|
|
691
|
-
export type CanvasSidebarWidth = (typeof CANVAS_SIDEBAR_WIDTHS)[number];
|
|
692
|
-
export type CanvasSidebarStartWidth = CanvasSidebarWidth;
|
|
693
|
-
export type CanvasSidebarEndWidth = CanvasSidebarWidth;
|
|
687
|
+
export type CanvasSidebarStartIcon = IconName;
|
|
688
|
+
export type CanvasSidebarEndIcon = IconName;
|
|
694
689
|
declare const CAROUSEL_WIDTHS: readonly [
|
|
695
690
|
"basic",
|
|
696
691
|
"extended"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.19.0-rc.
|
|
3
|
+
"version": "3.19.0-rc.1",
|
|
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.19.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.19.0-rc.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": ">=3.0.0 <4.0.0"
|