From 197715f1022e160e4f67c67f57a07c06d84d1c8d Mon Sep 17 00:00:00 2001 From: Michael Meier Date: Fri, 21 Jun 2024 08:41:31 +0200 Subject: [PATCH 1/2] feat(Checkbox): add indeterminate state to icon slot scope This adds the indeterminate state to the icon slot of the component so user will be able to customize the indeterminate icon. --- packages/primevue/src/checkbox/Checkbox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/checkbox/Checkbox.vue b/packages/primevue/src/checkbox/Checkbox.vue index 199d149e8..94b68d76e 100755 --- a/packages/primevue/src/checkbox/Checkbox.vue +++ b/packages/primevue/src/checkbox/Checkbox.vue @@ -22,7 +22,7 @@ v-bind="getPTOptions('input')" />
- + From 606831c1c7e10031d8e03e4a2c96f307a3cfcef4 Mon Sep 17 00:00:00 2001 From: Michael Meier Date: Fri, 21 Jun 2024 08:44:39 +0200 Subject: [PATCH 2/2] feat(Checkbox): add indeterminate state to the checkbox definition --- packages/primevue/src/checkbox/Checkbox.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/primevue/src/checkbox/Checkbox.d.ts b/packages/primevue/src/checkbox/Checkbox.d.ts index 676358503..325d0692b 100755 --- a/packages/primevue/src/checkbox/Checkbox.d.ts +++ b/packages/primevue/src/checkbox/Checkbox.d.ts @@ -225,6 +225,10 @@ export interface CheckboxSlots { * State of the checkbox. */ checked: boolean; + /** + * Indeterminate state of the checkbox. + */ + indeterminate?: boolean | undefined; /** * Style class of the icon. */