@porsche-design-system/components-vue 3.19.0-rc.2 → 3.19.0-rc.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../../utils.cjs"),c=e.defineComponent({__name:"CheckboxWrapper",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{},hideLabel:{default:!1},indeterminate:{type:Boolean,default:!1},label:{default:""},loading:{type:Boolean,default:!1},message:{default:""},name:{default:""},required:{type:Boolean,default:!1},state:{default:"none"},theme:{},value:{default:"on"}},emits:["blur","update"],setup(d,{emit:f}){const u=t.usePrefix("p-checkbox"),o=d,n=e.ref(),
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../../utils.cjs"),c=e.defineComponent({__name:"CheckboxWrapper",props:{checked:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{},hideLabel:{default:!1},indeterminate:{type:Boolean,default:!1},label:{default:""},loading:{type:Boolean,default:!1},message:{default:""},name:{default:""},required:{type:Boolean,default:!1},state:{default:"none"},theme:{},value:{default:"on"}},emits:["blur","update"],setup(d,{emit:f}){const u=t.usePrefix("p-checkbox"),o=d,n=e.ref(),l=f,s=e.inject(t.themeInjectionKey),r=()=>t.syncProperties(n,{...o,theme:o.theme||s.value});return e.onMounted(()=>{r(),t.addEventListenerToElementRef(n,"blur",l),t.addEventListenerToElementRef(n,"update",l)}),e.onUpdated(r),e.watch(s,a=>{t.syncProperties(n,{theme:o.theme||a})}),(a,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(u)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},512))}});module.exports=c;
|
|
@@ -4,6 +4,10 @@ type PCheckboxProps = {
|
|
|
4
4
|
* Reflects the checkbox current checked state and allows setting the initial checked state.
|
|
5
5
|
*/
|
|
6
6
|
checked?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Displays as compact version.
|
|
9
|
+
*/
|
|
10
|
+
compact?: boolean;
|
|
7
11
|
/**
|
|
8
12
|
* Marks the checkbox as disabled.
|
|
9
13
|
*/
|
|
@@ -58,6 +62,7 @@ declare function __VLS_template(): {
|
|
|
58
62
|
};
|
|
59
63
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PCheckboxProps>, {
|
|
60
64
|
checked: boolean;
|
|
65
|
+
compact: boolean;
|
|
61
66
|
disabled: boolean;
|
|
62
67
|
hideLabel: boolean;
|
|
63
68
|
indeterminate: boolean;
|
|
@@ -73,6 +78,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
73
78
|
update: (value: CheckboxUpdateEventDetail) => void;
|
|
74
79
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PCheckboxProps>, {
|
|
75
80
|
checked: boolean;
|
|
81
|
+
compact: boolean;
|
|
76
82
|
disabled: boolean;
|
|
77
83
|
hideLabel: boolean;
|
|
78
84
|
indeterminate: boolean;
|
|
@@ -88,6 +94,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
88
94
|
onBlur?: ((value: Event) => any) | undefined;
|
|
89
95
|
}, {
|
|
90
96
|
label: string;
|
|
97
|
+
compact: boolean;
|
|
91
98
|
state: CheckboxState;
|
|
92
99
|
required: boolean;
|
|
93
100
|
disabled: boolean;
|
|
@@ -4,6 +4,7 @@ const j = /* @__PURE__ */ m({
|
|
|
4
4
|
__name: "CheckboxWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
checked: { type: Boolean, default: !1 },
|
|
7
|
+
compact: { type: Boolean, default: !1 },
|
|
7
8
|
disabled: { type: Boolean, default: !1 },
|
|
8
9
|
form: {},
|
|
9
10
|
hideLabel: { default: !1 },
|
|
@@ -19,10 +20,10 @@ const j = /* @__PURE__ */ m({
|
|
|
19
20
|
},
|
|
20
21
|
emits: ["blur", "update"],
|
|
21
22
|
setup(d, { emit: r }) {
|
|
22
|
-
const p = v("p-checkbox"), t = d, e = u(),
|
|
23
|
+
const p = v("p-checkbox"), t = d, e = u(), a = r, n = c(R), l = () => s(e, { ...t, theme: t.theme || n.value });
|
|
23
24
|
return i(() => {
|
|
24
|
-
l(), f(e, "blur",
|
|
25
|
-
}), h(l), y(
|
|
25
|
+
l(), f(e, "blur", a), f(e, "update", a);
|
|
26
|
+
}), h(l), y(n, (o) => {
|
|
26
27
|
s(e, { theme: t.theme || o });
|
|
27
28
|
}), (o, g) => (b(), B(C(_(p)), {
|
|
28
29
|
ref_key: "pdsComponentRef",
|
package/esm/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.19.0-rc.
|
|
3
|
+
"version": "3.19.0-rc.4",
|
|
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,9 +17,11 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.19.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.19.0-rc.4"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
+
"ag-grid-enterprise": ">= 32.0.0 <33.0.0",
|
|
24
|
+
"ag-grid-vue3": ">= 32.0.0 <33.0.0",
|
|
23
25
|
"vue": ">=3.0.0 <4.0.0"
|
|
24
26
|
},
|
|
25
27
|
"main": "cjs/public-api.cjs",
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"import": "./styles/esm/index.mjs",
|
|
48
50
|
"default": "./styles/cjs/index.cjs"
|
|
49
51
|
},
|
|
52
|
+
"./ag-grid/*.css": "./ag-grid/*.css",
|
|
50
53
|
"./testing": {
|
|
51
54
|
"types": "./testing/index.d.ts",
|
|
52
55
|
"default": "./testing/index.cjs"
|