@porsche-design-system/components-vue 3.15.1 → 3.16.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,6 +14,47 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.16.0-rc.0] - 2024-06-05
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- `Flyout`:
|
|
22
|
+
- CSS variable `--p-flyout-sticky-top` (experimental)
|
|
23
|
+
([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
24
|
+
- Prop `disableBackdropClick` ([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
25
|
+
- `Modal`:
|
|
26
|
+
- CSS variable `--p-modal-width` (experimental)
|
|
27
|
+
([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
28
|
+
- Named slot `header` ([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
29
|
+
|
|
30
|
+
#### Changed
|
|
31
|
+
|
|
32
|
+
- `Modal`, `Flyout`:
|
|
33
|
+
- Sticky dismiss button ([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
34
|
+
- Aligned layout, spacing and UX behaviour
|
|
35
|
+
([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
36
|
+
- Renders fully on `#top-layer`, stacking behaviour has changed and follows W3C standards now, see
|
|
37
|
+
https://developer.mozilla.org/en-US/docs/Glossary/Top_layer and
|
|
38
|
+
https://developer.chrome.com/blog/what-is-the-top-layer
|
|
39
|
+
([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
40
|
+
- `Modal`: `heading` prop and `slot="heading"` are deprecated. Use `slot="header"` instead.
|
|
41
|
+
|
|
42
|
+
#### Fixed
|
|
43
|
+
|
|
44
|
+
- Types: Fixed incorrectly allowed type `string` in types `BreakpointCustomizable`, `SelectedAriaAttributes`,
|
|
45
|
+
`CarouselInternationalization`, `PaginationInternationalization` and `ScrollToPosition`
|
|
46
|
+
- `Modal`, `Flyout`: Dynamically react to adding/removing named slots
|
|
47
|
+
([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
48
|
+
- `Modal`: Uses native `<dialog />` element to resolve focus issues, focus trap
|
|
49
|
+
([#3191](https://github.com/porsche-design-system/porsche-design-system/pull/3191))
|
|
50
|
+
|
|
51
|
+
### [3.15.2] - 2024-05-29
|
|
52
|
+
|
|
53
|
+
#### Fixed
|
|
54
|
+
|
|
55
|
+
- `aria`: Refactor `parseJSONAttribute` to support Safari < 16.4
|
|
56
|
+
([#3314](https://github.com/porsche-design-system/porsche-design-system/pull/3314))
|
|
57
|
+
|
|
17
58
|
### [3.15.1] - 2024-05-23
|
|
18
59
|
|
|
19
60
|
#### Fixed
|
|
@@ -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:"FlyoutWrapper",props:{aria:{},disableBackdropClick:{type:Boolean,default:!1},open:{type:Boolean,default:!1},position:{default:"end"},theme:{}},emits:["dismiss"],setup(p,{emit:c}){const a=t.usePrefix("p-flyout"),n=p,o=e.ref(),l=c,r=e.inject(t.themeInjectionKey),i=()=>t.syncProperties(o,{...n,theme:n.theme||r.value});return e.onMounted(()=>{i(),t.addEventListenerToElementRef(o,"dismiss",l)}),e.onUpdated(i),e.watch(r,s=>{t.syncProperties(o,{theme:n.theme||s})}),(s,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},512))}});module.exports=m;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as f, ref as c, inject as
|
|
2
|
-
import { usePrefix as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as c, inject as l, onMounted as d, onUpdated as u, watch as h, openBlock as y, createBlock as C, resolveDynamicComponent as _, unref as k, withCtx as B, renderSlot as R } from "vue";
|
|
2
|
+
import { usePrefix as v, themeInjectionKey as w, addEventListenerToElementRef as x, syncProperties as r } from "../../utils.mjs";
|
|
3
|
+
const E = /* @__PURE__ */ f({
|
|
4
4
|
__name: "FlyoutWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: {},
|
|
7
|
+
disableBackdropClick: { type: Boolean, default: !1 },
|
|
7
8
|
open: { type: Boolean, default: !1 },
|
|
8
9
|
position: { default: "end" },
|
|
9
10
|
theme: {}
|
|
10
11
|
},
|
|
11
12
|
emits: ["dismiss"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
s(),
|
|
13
|
+
setup(p, { emit: a }) {
|
|
14
|
+
const m = v("p-flyout"), t = p, e = c(), i = a, n = l(w), s = () => r(e, { ...t, theme: t.theme || n.value });
|
|
15
|
+
return d(() => {
|
|
16
|
+
s(), x(e, "dismiss", i);
|
|
16
17
|
}), u(s), h(n, (o) => {
|
|
17
18
|
r(e, { theme: t.theme || o });
|
|
18
|
-
}), (o, P) => (y(), _(
|
|
19
|
+
}), (o, P) => (y(), C(_(k(m)), {
|
|
19
20
|
ref_key: "pdsComponentRef",
|
|
20
21
|
ref: e
|
|
21
22
|
}, {
|
|
22
|
-
default:
|
|
23
|
-
|
|
23
|
+
default: B(() => [
|
|
24
|
+
R(o.$slots, "default")
|
|
24
25
|
]),
|
|
25
26
|
_: 3
|
|
26
27
|
}, 512));
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
E as default
|
|
31
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.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.16.0-rc.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": ">=3.0.0 <4.0.0"
|