@porsche-design-system/components-vue 3.14.0-rc.0 → 3.15.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,23 @@ 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.0] - 2024-04-05
18
+
19
+ #### Changed
20
+
21
+ - `Model Signature`: Enabling the use of hex colors, CSS gradients, CSS image and video masks. In addition, the size was
22
+ slightly adjusted. ([#3153](https://github.com/porsche-design-system/porsche-design-system/pull/3153))
23
+
24
+ ### Fixed
25
+
26
+ - `Select`: Hydration error in Next.js when using slotted `img`
27
+ ([#3162](https://github.com/porsche-design-system/porsche-design-system/pull/3162))
28
+ - `Text Field Wrapper`, `Textarea Wrapper`: Dynamic changes of `showCounter` and `maxLength` are reflected. The counter
29
+ element dynamically adjusts to changes in the input value accurately.
30
+ ([#3084](https://github.com/porsche-design-system/porsche-design-system/pull/3084))
31
+
32
+ ### [3.14.0] - 2024-03-25
33
+
17
34
  ### [3.14.0-rc.0] - 2024-03-25
18
35
 
19
36
  #### Added
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"ModelSignatureWrapper",props:{color:{default:"primary"},model:{default:"911"},size:{default:"small"},theme:{}},setup(p){const m=t.usePrefix("p-model-signature"),n=p,o=e.ref(),r=e.inject(t.themeInjectionKey),s=()=>t.syncProperties(o,{...n,theme:n.theme||r.value});return e.onMounted(s),e.onUpdated(s),e.watch(r,c=>{t.syncProperties(o,{theme:n.theme||c})}),(c,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m)),{ref_key:"pdsComponentRef",ref:o},null,512))}});module.exports=u;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),p=e.defineComponent({__name:"ModelSignatureWrapper",props:{color:{default:"primary"},fetchPriority:{default:"auto"},lazy:{type:Boolean,default:!1},model:{default:"911"},safeZone:{type:Boolean,default:!0},size:{default:"small"},theme:{}},setup(l){const c=t.usePrefix("p-model-signature"),o=l,n=e.ref(),s=e.inject(t.themeInjectionKey),a=()=>t.syncProperties(n,{...o,theme:o.theme||s.value});return e.onMounted(a),e.onUpdated(a),e.watch(s,r=>{t.syncProperties(n,{theme:o.theme||r})}),(r,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=p;
@@ -1,15 +1,27 @@
1
- import type { ModelSignatureColor, ModelSignatureModel, ModelSignatureSize, Theme } from '../types';
1
+ import type { ModelSignatureColor, ModelSignatureFetchPriority, ModelSignatureModel, ModelSignatureSize, Theme } from '../types';
2
2
  type PModelSignatureProps = {
3
3
  /**
4
4
  * Adapts the color of the component.
5
5
  */
6
6
  color?: ModelSignatureColor;
7
+ /**
8
+ * Defines the fetch priority of the model signature. In the end it is just a recommendation to the browser, but it defines the priority on its own.
9
+ */
10
+ fetchPriority?: ModelSignatureFetchPriority;
11
+ /**
12
+ * Defines whether the model signature is always loaded or only loaded when it is in the viewport (this feature may not work reliably).
13
+ */
14
+ lazy?: boolean;
7
15
  /**
8
16
  * Adapts the model of the component.
9
17
  */
10
18
  model?: ModelSignatureModel;
11
19
  /**
12
- * Adapts the size of the component.
20
+ * When set to `true`, then all model signatures are visually aligned with each other. When set to `false` the model signature comes without any safe zone.
21
+ */
22
+ safeZone?: boolean;
23
+ /**
24
+ * Adapts the size of the component. When set to `inherit` a CSS `width` or `height` needs to be defined on the host but not both.
13
25
  */
14
26
  size?: ModelSignatureSize;
15
27
  /**
@@ -17,19 +29,30 @@ type PModelSignatureProps = {
17
29
  */
18
30
  theme?: Theme;
19
31
  };
20
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PModelSignatureProps>, {
32
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PModelSignatureProps>, {
21
33
  color: string;
34
+ fetchPriority: string;
35
+ lazy: boolean;
22
36
  model: string;
37
+ safeZone: boolean;
23
38
  size: string;
24
39
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PModelSignatureProps>, {
25
40
  color: string;
41
+ fetchPriority: string;
42
+ lazy: boolean;
26
43
  model: string;
44
+ safeZone: boolean;
27
45
  size: string;
28
46
  }>>>, {
29
47
  size: "inherit" | "small";
30
48
  color: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high";
49
+ lazy: boolean;
31
50
  model: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo";
32
- }, {}>;
51
+ fetchPriority: "auto" | "low" | "high";
52
+ safeZone: boolean;
53
+ }, {}>, {
54
+ default?(_: {}): any;
55
+ }>;
33
56
  export default _default;
34
57
  type __VLS_WithDefaults<P, D> = {
35
58
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -39,6 +62,11 @@ type __VLS_WithDefaults<P, D> = {
39
62
  type __VLS_Prettify<T> = {
40
63
  [K in keyof T]: T[K];
41
64
  } & {};
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
42
70
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
71
  type __VLS_TypePropsToOption<T> = {
44
72
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,21 +1,29 @@
1
- import { defineComponent as c, ref as a, inject as f, onMounted as l, onUpdated as u, watch as d, openBlock as i, createBlock as h, resolveDynamicComponent as _, unref as y } from "vue";
2
- import { usePrefix as C, themeInjectionKey as g, syncProperties as m } from "../../utils.mjs";
3
- const R = /* @__PURE__ */ c({
1
+ import { defineComponent as p, ref as f, inject as m, onMounted as c, onUpdated as u, watch as d, openBlock as i, createBlock as h, resolveDynamicComponent as y, unref as _, withCtx as C, renderSlot as B } from "vue";
2
+ import { usePrefix as P, themeInjectionKey as g, syncProperties as a } from "../../utils.mjs";
3
+ const R = /* @__PURE__ */ p({
4
4
  __name: "ModelSignatureWrapper",
5
5
  props: {
6
6
  color: { default: "primary" },
7
+ fetchPriority: { default: "auto" },
8
+ lazy: { type: Boolean, default: !1 },
7
9
  model: { default: "911" },
10
+ safeZone: { type: Boolean, default: !0 },
8
11
  size: { default: "small" },
9
12
  theme: {}
10
13
  },
11
- setup(p) {
12
- const s = C("p-model-signature"), e = p, o = a(), t = f(g), n = () => m(o, { ...e, theme: e.theme || t.value });
13
- return l(n), u(n), d(t, (r) => {
14
- m(o, { theme: e.theme || r });
15
- }), (r, k) => (i(), h(_(y(s)), {
14
+ setup(s) {
15
+ const l = P("p-model-signature"), e = s, t = f(), n = m(g), r = () => a(t, { ...e, theme: e.theme || n.value });
16
+ return c(r), u(r), d(n, (o) => {
17
+ a(t, { theme: e.theme || o });
18
+ }), (o, k) => (i(), h(y(_(l)), {
16
19
  ref_key: "pdsComponentRef",
17
- ref: o
18
- }, null, 512));
20
+ ref: t
21
+ }, {
22
+ default: C(() => [
23
+ B(o.$slots, "default")
24
+ ]),
25
+ _: 3
26
+ }, 512));
19
27
  }
20
28
  });
21
29
  export {
@@ -1025,16 +1025,56 @@ declare const TILE_PRODUCT_ASPECT_RATIOS: readonly [
1025
1025
  ];
1026
1026
  export type LinkTileProductAspectRatio = Extract<TileAspectRatio, (typeof TILE_PRODUCT_ASPECT_RATIOS)[number]>;
1027
1027
  declare const MODEL_SIGNATURES_MANIFEST: {
1028
- "718": string;
1029
- "911": string;
1030
- boxster: string;
1031
- cayenne: string;
1032
- cayman: string;
1033
- macan: string;
1034
- panamera: string;
1035
- taycan: string;
1036
- "turbo-s": string;
1037
- turbo: string;
1028
+ "718": {
1029
+ src: string;
1030
+ width: number;
1031
+ height: number;
1032
+ };
1033
+ "911": {
1034
+ src: string;
1035
+ width: number;
1036
+ height: number;
1037
+ };
1038
+ boxster: {
1039
+ src: string;
1040
+ width: number;
1041
+ height: number;
1042
+ };
1043
+ cayenne: {
1044
+ src: string;
1045
+ width: number;
1046
+ height: number;
1047
+ };
1048
+ cayman: {
1049
+ src: string;
1050
+ width: number;
1051
+ height: number;
1052
+ };
1053
+ macan: {
1054
+ src: string;
1055
+ width: number;
1056
+ height: number;
1057
+ };
1058
+ panamera: {
1059
+ src: string;
1060
+ width: number;
1061
+ height: number;
1062
+ };
1063
+ taycan: {
1064
+ src: string;
1065
+ width: number;
1066
+ height: number;
1067
+ };
1068
+ "turbo-s": {
1069
+ src: string;
1070
+ width: number;
1071
+ height: number;
1072
+ };
1073
+ turbo: {
1074
+ src: string;
1075
+ width: number;
1076
+ height: number;
1077
+ };
1038
1078
  };
1039
1079
  declare const MARQUE_VARIANTS: readonly [
1040
1080
  "75-years",
@@ -1059,6 +1099,12 @@ declare const MODAL_ARIA_ATTRIBUTES: readonly [
1059
1099
  ];
1060
1100
  export type ModalAriaAttribute = (typeof MODAL_ARIA_ATTRIBUTES)[number];
1061
1101
  export type ModalBackdrop = Backdrop;
1102
+ declare const MODEL_SIGNATURE_FETCH_PRIORITY: readonly [
1103
+ "low",
1104
+ "high",
1105
+ "auto"
1106
+ ];
1107
+ export type ModelSignatureFetchPriority = (typeof MODEL_SIGNATURE_FETCH_PRIORITY)[number];
1062
1108
  declare const MODEL_SIGNATURE_SIZES: readonly [
1063
1109
  "small",
1064
1110
  "inherit"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.14.0-rc.0",
3
+ "version": "3.15.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.14.0-rc.0"
20
+ "@porsche-design-system/components-js": "3.15.0-rc.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"