@porsche-design-system/components-vue 3.20.0-rc.0 → 3.20.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,11 +14,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.20.0-rc.1] - 2024-10-24
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- React: better tree-shaking for `@porsche-design-system/components-react`
|
|
22
|
+
([#3554](https://github.com/porsche-design-system/porsche-design-system/pull/3554))
|
|
23
|
+
- `Icon`: `sidebar`
|
|
24
|
+
([#3556](https://github.com/porsche-design-system/porsche-design-system/pull/3556))
|
|
25
|
+
|
|
26
|
+
#### Changed
|
|
27
|
+
|
|
28
|
+
- `Canvas`: Improve UI and UX behaviour in Safari
|
|
29
|
+
([#3556](https://github.com/porsche-design-system/porsche-design-system/pull/3556))
|
|
30
|
+
|
|
31
|
+
#### Fixed
|
|
32
|
+
|
|
33
|
+
- `Flyout`: transition animation in Chrome Browser if `Flyout` has scrollable content
|
|
34
|
+
([#3550](https://github.com/porsche-design-system/porsche-design-system/pull/3550))
|
|
35
|
+
|
|
17
36
|
### [3.20.0-rc.0] - 2024-10-18
|
|
18
37
|
|
|
19
38
|
#### Added
|
|
20
39
|
|
|
21
40
|
- `Icon`: `attachment`, `dislike`, `dislike-filled`, `like`, `like-filled`, `new-chat`
|
|
41
|
+
([#3515](https://github.com/porsche-design-system/porsche-design-system/pull/3515))
|
|
22
42
|
|
|
23
43
|
#### Changed
|
|
24
44
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../../utils.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../../utils.cjs"),m=e.defineComponent({__name:"CanvasWrapper",props:{sidebarEndOpen:{type:Boolean,default:!1},sidebarStartOpen:{type:Boolean,default:!1},theme:{}},emits:["sidebarEndDismiss","sidebarStartUpdate"],setup(p,{emit:d}){const c=t.usePrefix("p-canvas"),s=p,n=e.ref(),r=d,a=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(n,{...s,theme:s.theme||a.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(n,"sidebarEndDismiss",r),t.addEventListenerToElementRef(n,"sidebarStartUpdate",r)}),e.onUpdated(i),e.watch(a,o=>{t.syncProperties(n,{theme:s.theme||o})}),(o,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},512))}});module.exports=m;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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 the sidebar on the end side
|
|
9
|
-
*/
|
|
10
3
|
sidebarEndOpen?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The icon to toggle the sidebar on the start side
|
|
13
|
-
*/
|
|
14
|
-
sidebarStartIcon?: CanvasSidebarStartIcon;
|
|
15
4
|
/**
|
|
16
5
|
* Open the sidebar on the start side
|
|
17
6
|
*/
|
|
@@ -25,19 +14,10 @@ declare function __VLS_template(): {
|
|
|
25
14
|
default?(_: {}): any;
|
|
26
15
|
};
|
|
27
16
|
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;
|
|
34
17
|
sidebarEndOpen: boolean;
|
|
35
|
-
sidebarStartIcon: string;
|
|
36
18
|
sidebarStartOpen: boolean;
|
|
37
|
-
}
|
|
38
|
-
sidebarEndIcon: CanvasSidebarEndIcon;
|
|
19
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
39
20
|
sidebarEndOpen: boolean;
|
|
40
|
-
sidebarStartIcon: CanvasSidebarStartIcon;
|
|
41
21
|
sidebarStartOpen: boolean;
|
|
42
22
|
}, {}>;
|
|
43
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineComponent as c, ref as f, inject as
|
|
2
|
-
import { usePrefix as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, ref as f, inject as l, onMounted as u, onUpdated as h, watch as b, openBlock as y, createBlock as C, resolveDynamicComponent as _, unref as v, withCtx as E, renderSlot as B } from "vue";
|
|
2
|
+
import { usePrefix as R, themeInjectionKey as S, addEventListenerToElementRef as r, syncProperties as p } from "../../utils.mjs";
|
|
3
|
+
const D = /* @__PURE__ */ c({
|
|
4
4
|
__name: "CanvasWrapper",
|
|
5
5
|
props: {
|
|
6
|
-
sidebarEndIcon: { default: "menu-lines" },
|
|
7
6
|
sidebarEndOpen: { type: Boolean, default: !1 },
|
|
8
|
-
sidebarStartIcon: { default: "menu-lines" },
|
|
9
7
|
sidebarStartOpen: { type: Boolean, default: !1 },
|
|
10
8
|
theme: {}
|
|
11
9
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
emits: ["sidebarEndDismiss", "sidebarStartUpdate"],
|
|
11
|
+
setup(d, { emit: m }) {
|
|
12
|
+
const i = R("p-canvas"), t = d, e = f(), o = m, s = l(S), a = () => p(e, { ...t, theme: t.theme || s.value });
|
|
13
|
+
return u(() => {
|
|
14
|
+
a(), r(e, "sidebarEndDismiss", o), r(e, "sidebarStartUpdate", o);
|
|
15
|
+
}), h(a), b(s, (n) => {
|
|
16
|
+
p(e, { theme: t.theme || n });
|
|
17
|
+
}), (n, k) => (y(), C(_(v(i)), {
|
|
17
18
|
ref_key: "pdsComponentRef",
|
|
18
|
-
ref:
|
|
19
|
+
ref: e
|
|
19
20
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
21
|
+
default: E(() => [
|
|
22
|
+
B(n.$slots, "default")
|
|
22
23
|
]),
|
|
23
24
|
_: 3
|
|
24
25
|
}, 512));
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
D as default
|
|
29
30
|
};
|
package/esm/lib/types.d.ts
CHANGED
|
@@ -386,6 +386,7 @@ declare const ICON_NAMES: readonly [
|
|
|
386
386
|
"shopping-bag-filled",
|
|
387
387
|
"shopping-cart",
|
|
388
388
|
"shopping-cart-filled",
|
|
389
|
+
"sidebar",
|
|
389
390
|
"sidelights",
|
|
390
391
|
"snowflake",
|
|
391
392
|
"sort",
|
|
@@ -691,8 +692,9 @@ export type ButtonTileSize = TileSize;
|
|
|
691
692
|
export type ButtonTileBackground = TileBackground;
|
|
692
693
|
export type ButtonTileWeight = TileWeight;
|
|
693
694
|
export type ButtonTileAlign = TileAlign;
|
|
694
|
-
export type
|
|
695
|
-
|
|
695
|
+
export type CanvasSidebarStartUpdateEventDetail = {
|
|
696
|
+
open: boolean;
|
|
697
|
+
};
|
|
696
698
|
declare const CAROUSEL_WIDTHS: readonly [
|
|
697
699
|
"basic",
|
|
698
700
|
"extended"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.20.0-rc.
|
|
3
|
+
"version": "3.20.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.20.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.20.0-rc.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"ag-grid-enterprise": ">= 32.0.0 <33.0.0",
|