@porsche-design-system/components-vue 3.19.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,6 +14,39 @@ 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
|
+
|
|
36
|
+
### [3.20.0-rc.0] - 2024-10-18
|
|
37
|
+
|
|
38
|
+
#### Added
|
|
39
|
+
|
|
40
|
+
- `Icon`: `attachment`, `dislike`, `dislike-filled`, `like`, `like-filled`, `new-chat`
|
|
41
|
+
([#3515](https://github.com/porsche-design-system/porsche-design-system/pull/3515))
|
|
42
|
+
|
|
43
|
+
#### Changed
|
|
44
|
+
|
|
45
|
+
- `Canvas`: Improve UI and UX behaviour
|
|
46
|
+
([#3515](https://github.com/porsche-design-system/porsche-design-system/pull/3515))
|
|
47
|
+
- `Flyout`, `Modal`: Removed default styling for slotted anchors
|
|
48
|
+
([#3515](https://github.com/porsche-design-system/porsche-design-system/pull/3515))
|
|
49
|
+
|
|
17
50
|
### [3.19.0] - 2024-10-14
|
|
18
51
|
|
|
19
52
|
### [3.19.0-rc.4] - 2024-10-14
|
|
@@ -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,23 +1,12 @@
|
|
|
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 Sidebar on the end side
|
|
9
|
-
*/
|
|
10
3
|
sidebarEndOpen?: boolean;
|
|
11
4
|
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
sidebarStartIcon?: CanvasSidebarStartIcon;
|
|
15
|
-
/**
|
|
16
|
-
* Open Sidebar on the start side
|
|
5
|
+
* Open the sidebar on the start side
|
|
17
6
|
*/
|
|
18
7
|
sidebarStartOpen?: boolean;
|
|
19
8
|
/**
|
|
20
|
-
* Adapts the color depending on the theme.
|
|
9
|
+
* Adapts the color depending on the theme.
|
|
21
10
|
*/
|
|
22
11
|
theme?: Theme;
|
|
23
12
|
};
|
|
@@ -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: "configurate" },
|
|
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
|
@@ -233,6 +233,7 @@ declare const ICON_NAMES: readonly [
|
|
|
233
233
|
"arrow-left",
|
|
234
234
|
"arrow-right",
|
|
235
235
|
"arrow-up",
|
|
236
|
+
"attachment",
|
|
236
237
|
"augmented-reality",
|
|
237
238
|
"battery-empty",
|
|
238
239
|
"battery-empty-co2",
|
|
@@ -269,6 +270,8 @@ declare const ICON_NAMES: readonly [
|
|
|
269
270
|
"cubic-capacity",
|
|
270
271
|
"delete",
|
|
271
272
|
"disable",
|
|
273
|
+
"dislike",
|
|
274
|
+
"dislike-filled",
|
|
272
275
|
"document",
|
|
273
276
|
"download",
|
|
274
277
|
"duration",
|
|
@@ -298,6 +301,8 @@ declare const ICON_NAMES: readonly [
|
|
|
298
301
|
"leaf",
|
|
299
302
|
"leather",
|
|
300
303
|
"light",
|
|
304
|
+
"like",
|
|
305
|
+
"like-filled",
|
|
301
306
|
"list",
|
|
302
307
|
"locate",
|
|
303
308
|
"lock",
|
|
@@ -346,6 +351,7 @@ declare const ICON_NAMES: readonly [
|
|
|
346
351
|
"minus",
|
|
347
352
|
"mobile",
|
|
348
353
|
"moon",
|
|
354
|
+
"new-chat",
|
|
349
355
|
"oil-can",
|
|
350
356
|
"parking-brake",
|
|
351
357
|
"parking-light",
|
|
@@ -380,6 +386,7 @@ declare const ICON_NAMES: readonly [
|
|
|
380
386
|
"shopping-bag-filled",
|
|
381
387
|
"shopping-cart",
|
|
382
388
|
"shopping-cart-filled",
|
|
389
|
+
"sidebar",
|
|
383
390
|
"sidelights",
|
|
384
391
|
"snowflake",
|
|
385
392
|
"sort",
|
|
@@ -685,8 +692,9 @@ export type ButtonTileSize = TileSize;
|
|
|
685
692
|
export type ButtonTileBackground = TileBackground;
|
|
686
693
|
export type ButtonTileWeight = TileWeight;
|
|
687
694
|
export type ButtonTileAlign = TileAlign;
|
|
688
|
-
export type
|
|
689
|
-
|
|
695
|
+
export type CanvasSidebarStartUpdateEventDetail = {
|
|
696
|
+
open: boolean;
|
|
697
|
+
};
|
|
690
698
|
declare const CAROUSEL_WIDTHS: readonly [
|
|
691
699
|
"basic",
|
|
692
700
|
"extended"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.
|
|
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
|
+
"@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",
|