@porsche-design-system/components-vue 3.15.0-rc.1 → 3.15.0-rc.2

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,36 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
14
14
 
15
15
  ### [Unreleased]
16
16
 
17
+ ### [3.15.0-rc.2] - 2024-04-22
18
+
19
+ #### Added
20
+
21
+ - `Accordion`: Add experimental property `sticky` for a fixed heading
22
+ ([#3181](https://github.com/porsche-design-system/porsche-design-system/pull/3181))
23
+ - `Inline Notification`, `Banner`: heading hierarchy can now be customized with `headingTag` prop
24
+ ([#3168](https://github.com/porsche-design-system/porsche-design-system/pull/3168))
25
+
26
+ #### Changed
27
+
28
+ - `Accordion`: `tag` property is deprecated. Use `headingTag` property instead to specify heading hierarchy level.
29
+ ([#3168](https://github.com/porsche-design-system/porsche-design-system/pull/3168))
30
+
31
+ ```diff
32
+ - <p-accordion tag="h3"></p-accordion>
33
+ + <p-accordion heading-tag="h3"></p-accordion>
34
+ ```
35
+
36
+ #### Fixed
37
+
38
+ - `Pin Code`: Input is entered twice in iOS
39
+ ([#3192](https://github.com/porsche-design-system/porsche-design-system/pull/3192))
40
+
17
41
  ### [3.15.0-rc.1] - 2024-04-17
18
42
 
19
- #### Added
43
+ #### Added
20
44
 
21
- - Partials: `getMetaTagsAndIconLinks`, `getComponentChunkLinks`, `getIconLinks` and `getFontLinks` support new format option `js`
22
- ([#3179](https://github.com/porsche-design-system/porsche-design-system/pull/3179))
45
+ - Partials: `getMetaTagsAndIconLinks`, `getComponentChunkLinks`, `getIconLinks` and `getFontLinks` support new format
46
+ option `js` ([#3179](https://github.com/porsche-design-system/porsche-design-system/pull/3179))
23
47
 
24
48
  ### [3.15.0-rc.0] - 2024-04-05
25
49
 
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),m=e.defineComponent({__name:"AccordionWrapper",props:{compact:{type:Boolean},heading:{},open:{type:Boolean},size:{default:"small"},tag:{default:"h2"},theme:{}},emits:["accordionChange","update"],setup(p,{emit:i}){const d=t.usePrefix("p-accordion"),o=p,n=e.ref(),s=i,c=e.inject(t.themeInjectionKey),a=()=>t.syncProperties(n,{...o,theme:o.theme||c.value});return e.onMounted(()=>{a(),t.addEventListenerToElementRef(n,"accordionChange",s),t.addEventListenerToElementRef(n,"update",s)}),e.onUpdated(a),e.watch(c,r=>{t.syncProperties(n,{theme:o.theme||r})}),(r,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=m;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),m=e.defineComponent({__name:"AccordionWrapper",props:{compact:{type:Boolean},heading:{},headingTag:{default:"h2"},open:{type:Boolean},size:{default:"small"},sticky:{type:Boolean},tag:{},theme:{}},emits:["accordionChange","update"],setup(p,{emit:i}){const d=t.usePrefix("p-accordion"),o=p,n=e.ref(),c=i,r=e.inject(t.themeInjectionKey),a=()=>t.syncProperties(n,{...o,theme:o.theme||r.value});return e.onMounted(()=>{a(),t.addEventListenerToElementRef(n,"accordionChange",c),t.addEventListenerToElementRef(n,"update",c)}),e.onUpdated(a),e.watch(r,s=>{t.syncProperties(n,{theme:o.theme||s})}),(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},512))}});module.exports=m;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),m=e.defineComponent({__name:"BannerWrapper",props:{description:{default:""},dismissButton:{type:Boolean,default:!0},heading:{default:""},open:{type:Boolean,default:!1},persistent:{type:Boolean},state:{default:"info"},theme:{},width:{}},emits:["dismiss"],setup(p,{emit:a}){const c=t.usePrefix("p-banner"),o=p,n=e.ref(),d=a,r=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(n,{...o,theme:o.theme||r.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(n,"dismiss",d)}),e.onUpdated(i),e.watch(r,s=>{t.syncProperties(n,{theme:o.theme||s})}),(s,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},512))}});module.exports=m;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),m=e.defineComponent({__name:"BannerWrapper",props:{description:{default:""},dismissButton:{type:Boolean,default:!0},heading:{default:""},headingTag:{default:"h5"},open:{type:Boolean,default:!1},persistent:{type:Boolean},state:{default:"info"},theme:{},width:{}},emits:["dismiss"],setup(a,{emit:p}){const c=t.usePrefix("p-banner"),o=a,n=e.ref(),d=p,r=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(n,{...o,theme:o.theme||r.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(n,"dismiss",d)}),e.onUpdated(i),e.watch(r,s=>{t.syncProperties(n,{theme:o.theme||s})}),(s,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},512))}});module.exports=m;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),f=e.defineComponent({__name:"InlineNotificationWrapper",props:{actionIcon:{default:"arrow-right"},actionLabel:{},actionLoading:{type:Boolean,default:!1},description:{default:""},dismissButton:{type:Boolean,default:!0},heading:{default:""},persistent:{type:Boolean},state:{default:"info"},theme:{}},emits:["action","dismiss"],setup(c,{emit:p}){const d=t.usePrefix("p-inline-notification"),o=c,n=e.ref(),i=p,a=e.inject(t.themeInjectionKey),r=()=>t.syncProperties(n,{...o,theme:o.theme||a.value});return e.onMounted(()=>{r(),t.addEventListenerToElementRef(n,"action",i),t.addEventListenerToElementRef(n,"dismiss",i)}),e.onUpdated(r),e.watch(a,s=>{t.syncProperties(n,{theme:o.theme||s})}),(s,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},512))}});module.exports=f;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),f=e.defineComponent({__name:"InlineNotificationWrapper",props:{actionIcon:{default:"arrow-right"},actionLabel:{},actionLoading:{type:Boolean,default:!1},description:{default:""},dismissButton:{type:Boolean,default:!0},heading:{default:""},headingTag:{default:"h5"},persistent:{type:Boolean},state:{default:"info"},theme:{}},emits:["action","dismiss"],setup(c,{emit:d}){const p=t.usePrefix("p-inline-notification"),o=c,n=e.ref(),s=d,a=e.inject(t.themeInjectionKey),r=()=>t.syncProperties(n,{...o,theme:o.theme||a.value});return e.onMounted(()=>{r(),t.addEventListenerToElementRef(n,"action",s),t.addEventListenerToElementRef(n,"dismiss",s)}),e.onUpdated(r),e.watch(a,i=>{t.syncProperties(n,{theme:o.theme||i})}),(i,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},512))}});module.exports=f;
@@ -1,33 +1,35 @@
1
- import { defineComponent as i, ref as f, inject as l, onMounted as h, onUpdated as u, watch as C, openBlock as y, createBlock as _, resolveDynamicComponent as g, unref as B, withCtx as R, renderSlot as k } from "vue";
2
- import { usePrefix as v, themeInjectionKey as w, addEventListenerToElementRef as c, syncProperties as p } from "../../utils.mjs";
3
- const E = /* @__PURE__ */ i({
1
+ import { defineComponent as i, ref as f, inject as l, onMounted as h, onUpdated as u, watch as y, openBlock as C, createBlock as g, resolveDynamicComponent as _, unref as B, withCtx as k, renderSlot as R } from "vue";
2
+ import { usePrefix as v, themeInjectionKey as w, addEventListenerToElementRef as r, syncProperties as p } from "../../utils.mjs";
3
+ const j = /* @__PURE__ */ i({
4
4
  __name: "AccordionWrapper",
5
5
  props: {
6
6
  compact: { type: Boolean },
7
7
  heading: {},
8
+ headingTag: { default: "h2" },
8
9
  open: { type: Boolean },
9
10
  size: { default: "small" },
10
- tag: { default: "h2" },
11
+ sticky: { type: Boolean },
12
+ tag: {},
11
13
  theme: {}
12
14
  },
13
15
  emits: ["accordionChange", "update"],
14
16
  setup(s, { emit: m }) {
15
- const d = v("p-accordion"), t = s, e = f(), n = m, a = l(w), r = () => p(e, { ...t, theme: t.theme || a.value });
17
+ const d = v("p-accordion"), t = s, e = f(), n = m, a = l(w), c = () => p(e, { ...t, theme: t.theme || a.value });
16
18
  return h(() => {
17
- r(), c(e, "accordionChange", n), c(e, "update", n);
18
- }), u(r), C(a, (o) => {
19
+ c(), r(e, "accordionChange", n), r(e, "update", n);
20
+ }), u(c), y(a, (o) => {
19
21
  p(e, { theme: t.theme || o });
20
- }), (o, x) => (y(), _(g(B(d)), {
22
+ }), (o, x) => (C(), g(_(B(d)), {
21
23
  ref_key: "pdsComponentRef",
22
24
  ref: e
23
25
  }, {
24
- default: R(() => [
25
- k(o.$slots, "default")
26
+ default: k(() => [
27
+ R(o.$slots, "default")
26
28
  ]),
27
29
  _: 3
28
30
  }, 512));
29
31
  }
30
32
  });
31
33
  export {
32
- E as default
34
+ j as default
33
35
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as d, ref as f, inject as c, onMounted as l, onUpdated as u, watch as h, openBlock as y, createBlock as B, resolveDynamicComponent as _, unref as C, withCtx as w, renderSlot as R } from "vue";
2
- import { usePrefix as k, themeInjectionKey as v, addEventListenerToElementRef as x, syncProperties as r } from "../../utils.mjs";
3
- const j = /* @__PURE__ */ d({
1
+ import { defineComponent as d, ref as f, inject as c, onMounted as l, onUpdated as u, watch as h, openBlock as y, createBlock as B, resolveDynamicComponent as _, unref as C, withCtx as g, renderSlot as w } from "vue";
2
+ import { usePrefix as R, themeInjectionKey as k, addEventListenerToElementRef as v, syncProperties as a } from "../../utils.mjs";
3
+ const b = /* @__PURE__ */ d({
4
4
  __name: "BannerWrapper",
5
5
  props: {
6
6
  description: { default: "" },
7
7
  dismissButton: { type: Boolean, default: !0 },
8
8
  heading: { default: "" },
9
+ headingTag: { default: "h5" },
9
10
  open: { type: Boolean, default: !1 },
10
11
  persistent: { type: Boolean },
11
12
  state: { default: "info" },
@@ -13,23 +14,23 @@ const j = /* @__PURE__ */ d({
13
14
  width: {}
14
15
  },
15
16
  emits: ["dismiss"],
16
- setup(a, { emit: p }) {
17
- const i = k("p-banner"), t = a, e = f(), m = p, o = c(v), s = () => r(e, { ...t, theme: t.theme || o.value });
17
+ setup(r, { emit: p }) {
18
+ const i = R("p-banner"), t = r, e = f(), m = p, o = c(k), s = () => a(e, { ...t, theme: t.theme || o.value });
18
19
  return l(() => {
19
- s(), x(e, "dismiss", m);
20
+ s(), v(e, "dismiss", m);
20
21
  }), u(s), h(o, (n) => {
21
- r(e, { theme: t.theme || n });
22
- }), (n, P) => (y(), B(_(C(i)), {
22
+ a(e, { theme: t.theme || n });
23
+ }), (n, x) => (y(), B(_(C(i)), {
23
24
  ref_key: "pdsComponentRef",
24
25
  ref: e
25
26
  }, {
26
- default: w(() => [
27
- R(n.$slots, "default")
27
+ default: g(() => [
28
+ w(n.$slots, "default")
28
29
  ]),
29
30
  _: 3
30
31
  }, 512));
31
32
  }
32
33
  });
33
34
  export {
34
- j as default
35
+ b as default
35
36
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as m, ref as d, inject as l, onMounted as u, onUpdated as h, watch as y, openBlock as _, createBlock as B, resolveDynamicComponent as C, unref as g, withCtx as w, renderSlot as R } from "vue";
2
- import { usePrefix as k, themeInjectionKey as v, addEventListenerToElementRef as a, syncProperties as r } from "../../utils.mjs";
3
- const P = /* @__PURE__ */ m({
1
+ import { defineComponent as d, ref as m, inject as l, onMounted as u, onUpdated as h, watch as y, openBlock as _, createBlock as g, resolveDynamicComponent as B, unref as C, withCtx as w, renderSlot as R } from "vue";
2
+ import { usePrefix as k, themeInjectionKey as v, addEventListenerToElementRef as s, syncProperties as r } from "../../utils.mjs";
3
+ const P = /* @__PURE__ */ d({
4
4
  __name: "InlineNotificationWrapper",
5
5
  props: {
6
6
  actionIcon: { default: "arrow-right" },
@@ -9,18 +9,19 @@ const P = /* @__PURE__ */ m({
9
9
  description: { default: "" },
10
10
  dismissButton: { type: Boolean, default: !0 },
11
11
  heading: { default: "" },
12
+ headingTag: { default: "h5" },
12
13
  persistent: { type: Boolean },
13
14
  state: { default: "info" },
14
15
  theme: {}
15
16
  },
16
17
  emits: ["action", "dismiss"],
17
- setup(c, { emit: p }) {
18
- const f = k("p-inline-notification"), t = c, e = d(), o = p, i = l(v), s = () => r(e, { ...t, theme: t.theme || i.value });
18
+ setup(c, { emit: f }) {
19
+ const p = k("p-inline-notification"), t = c, e = m(), o = f, i = l(v), a = () => r(e, { ...t, theme: t.theme || i.value });
19
20
  return u(() => {
20
- s(), a(e, "action", o), a(e, "dismiss", o);
21
- }), h(s), y(i, (n) => {
21
+ a(), s(e, "action", o), s(e, "dismiss", o);
22
+ }), h(a), y(i, (n) => {
22
23
  r(e, { theme: t.theme || n });
23
- }), (n, x) => (_(), B(C(g(f)), {
24
+ }), (n, x) => (_(), g(B(C(p)), {
24
25
  ref_key: "pdsComponentRef",
25
26
  ref: e
26
27
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.15.0-rc.1",
3
+ "version": "3.15.0-rc.2",
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.15.0-rc.1"
20
+ "@porsche-design-system/components-js": "3.15.0-rc.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"