@porsche-design-system/components-vue 3.12.0 → 3.13.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
CHANGED
|
@@ -14,14 +14,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.13.0-rc.0] - 2024-02-19
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- `Link Tile Product`: Prop `price-original` to be able to visualize sale and original price
|
|
22
|
+
([#3040](https://github.com/porsche-design-system/porsche-design-system/pull/3040))
|
|
23
|
+
|
|
24
|
+
#### Changed
|
|
25
|
+
|
|
26
|
+
- Validation of `getInitialStyles()` partial is temporarily disabled
|
|
27
|
+
([#3049](https://github.com/porsche-design-system/porsche-design-system/pull/3049))
|
|
28
|
+
|
|
17
29
|
### [3.12.0] - 2024-02-12
|
|
18
30
|
|
|
19
31
|
### [3.12.0-rc.1] - 2024-02-08
|
|
20
32
|
|
|
21
33
|
#### Fixed
|
|
22
34
|
|
|
23
|
-
- `Checkbox Wrapper`, `Radio Button Wrapper`: Safari visually reflects input status (checked/unchecked) when
|
|
24
|
-
|
|
35
|
+
- `Checkbox Wrapper`, `Radio Button Wrapper`: Safari visually reflects input status (checked/unchecked) when used in
|
|
36
|
+
another Shadow DOM or changed programmatically
|
|
37
|
+
([#3028](https://github.com/porsche-design-system/porsche-design-system/pull/3028))
|
|
25
38
|
|
|
26
39
|
### [3.12.0-rc.0] - 2024-02-05
|
|
27
40
|
|
|
@@ -33,8 +46,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
33
46
|
#### Changed
|
|
34
47
|
|
|
35
48
|
- `Icon`: Visual appearance of `information-filled`, `information`, `success-filled`, `success`, `bookmark`, `compare`,
|
|
36
|
-
`configurate`, `heart-filled`, `heart`, `menu-lines`, `success`, `search`, `locate`, `star`, `shopping-bag-filled`,
|
|
37
|
-
`shopping-bag`, `user-filled` and `user`
|
|
49
|
+
`configurate`, `heart-filled`, `heart`, `menu-lines`, `success`, `search`, `locate`, `star`, `shopping-bag-filled`,
|
|
50
|
+
`shopping-bag`, `user-filled` and `user`
|
|
51
|
+
([#3025](https://github.com/porsche-design-system/porsche-design-system/pull/3025))
|
|
38
52
|
- All components (expect some form elements) have improved focus styling based on `:focus-visible`
|
|
39
53
|
([#3011](https://github.com/porsche-design-system/porsche-design-system/pull/3011))
|
|
40
54
|
- Several components are using CSS property `inset|inset-inline|inset-block` instead of `top|bottom|left|right` for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"LinkTileProductWrapper",props:{aspectRatio:{default:"3:4"},description:{},heading:{},href:{},likeButton:{type:Boolean,default:!0},liked:{type:Boolean,default:!1},price:{},rel:{},target:{default:"_self"},theme:{}},emits:["like"],setup(c,{emit:p}){const l=t.usePrefix("p-link-tile-product"),o=c,n=e.ref(),a=p,s=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(n,{...o,theme:o.theme||s.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(n,"like",a)}),e.onUpdated(i),e.watch(s,r=>{t.syncProperties(n,{theme:o.theme||r})}),(r,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=u;
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"LinkTileProductWrapper",props:{aspectRatio:{default:"3:4"},description:{},heading:{},href:{},likeButton:{type:Boolean,default:!0},liked:{type:Boolean,default:!1},price:{},priceOriginal:{},rel:{},target:{default:"_self"},theme:{}},emits:["like"],setup(c,{emit:p}){const l=t.usePrefix("p-link-tile-product"),o=c,n=e.ref(),a=p,s=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(n,{...o,theme:o.theme||s.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(n,"like",a)}),e.onUpdated(i),e.watch(s,r=>{t.syncProperties(n,{theme:o.theme||r})}),(r,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=u;
|
|
@@ -5,11 +5,11 @@ type PLinkTileProductProps = {
|
|
|
5
5
|
*/
|
|
6
6
|
aspectRatio?: BreakpointCustomizable<LinkTileProductAspectRatio>;
|
|
7
7
|
/**
|
|
8
|
-
* Additional product description
|
|
8
|
+
* Additional product description.
|
|
9
9
|
*/
|
|
10
10
|
description?: string;
|
|
11
11
|
/**
|
|
12
|
-
* Product heading
|
|
12
|
+
* Product heading.
|
|
13
13
|
*/
|
|
14
14
|
heading: string;
|
|
15
15
|
/**
|
|
@@ -25,9 +25,13 @@ type PLinkTileProductProps = {
|
|
|
25
25
|
*/
|
|
26
26
|
liked?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
* Product price
|
|
28
|
+
* Product retail price (with or without discount).
|
|
29
29
|
*/
|
|
30
30
|
price: string;
|
|
31
|
+
/**
|
|
32
|
+
* Shows original price (recommended retail price) with line-through. Needs prop "price" to be defined, otherwise this prop has no effect.
|
|
33
|
+
*/
|
|
34
|
+
priceOriginal?: string;
|
|
31
35
|
/**
|
|
32
36
|
* Specifies the relationship of the target object to the link object.
|
|
33
37
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as f, inject as m, onMounted as d, onUpdated as u, watch as h, openBlock as k, createBlock as _, resolveDynamicComponent as y, unref as C, withCtx as B, renderSlot as R } from "vue";
|
|
2
|
-
import { usePrefix as
|
|
2
|
+
import { usePrefix as g, themeInjectionKey as P, addEventListenerToElementRef as v, syncProperties as i } from "../../utils.mjs";
|
|
3
3
|
const j = /* @__PURE__ */ c({
|
|
4
4
|
__name: "LinkTileProductWrapper",
|
|
5
5
|
props: {
|
|
@@ -10,17 +10,18 @@ const j = /* @__PURE__ */ c({
|
|
|
10
10
|
likeButton: { type: Boolean, default: !0 },
|
|
11
11
|
liked: { type: Boolean, default: !1 },
|
|
12
12
|
price: {},
|
|
13
|
+
priceOriginal: {},
|
|
13
14
|
rel: {},
|
|
14
15
|
target: { default: "_self" },
|
|
15
16
|
theme: {}
|
|
16
17
|
},
|
|
17
18
|
emits: ["like"],
|
|
18
|
-
setup(
|
|
19
|
-
const a =
|
|
19
|
+
setup(p, { emit: s }) {
|
|
20
|
+
const a = g("p-link-tile-product"), t = p, e = f(), l = s, n = m(P), r = () => i(e, { ...t, theme: t.theme || n.value });
|
|
20
21
|
return d(() => {
|
|
21
22
|
r(), v(e, "like", l);
|
|
22
23
|
}), u(r), h(n, (o) => {
|
|
23
|
-
|
|
24
|
+
i(e, { theme: t.theme || o });
|
|
24
25
|
}), (o, w) => (k(), _(y(C(a)), {
|
|
25
26
|
ref_key: "pdsComponentRef",
|
|
26
27
|
ref: e
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.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.13.0-rc.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": ">=3.0.0 <4.0.0"
|