From 3deda703700edc9da462cb57cb415796648aef4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Mon, 22 Apr 2024 12:34:25 +0300 Subject: [PATCH] #15328 - For checkbox --- src/app/components/checkbox/checkbox.ts | 2 +- src/app/components/table/table.ts | 4 +- src/app/components/tree/tree.ts | 7 +++- src/app/components/treeselect/treeselect.ts | 4 +- src/app/components/treetable/treetable.ts | 13 +++++- .../tristatecheckbox/tristatecheckbox.ts | 2 +- .../components/themes/arya-blue/theme.css | 41 +++++++++++++++---- .../components/themes/arya-green/theme.css | 41 +++++++++++++++---- .../components/themes/arya-orange/theme.css | 41 +++++++++++++++---- .../components/themes/arya-purple/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-amber/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-blue/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-cyan/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-green/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-indigo/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-lime/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-noir/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-pink/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-purple/theme.css | 41 +++++++++++++++---- .../themes/aura-dark-teal/theme.css | 41 +++++++++++++++---- .../themes/aura-light-amber/theme.css | 41 +++++++++++++++---- .../themes/aura-light-blue/theme.css | 41 +++++++++++++++---- .../themes/aura-light-cyan/theme.css | 41 +++++++++++++++---- .../themes/aura-light-green/theme.css | 41 +++++++++++++++---- .../themes/aura-light-indigo/theme.css | 41 +++++++++++++++---- .../themes/aura-light-lime/theme.css | 41 +++++++++++++++---- .../themes/aura-light-noir/theme.css | 41 +++++++++++++++---- .../themes/aura-light-pink/theme.css | 41 +++++++++++++++---- .../themes/aura-light-purple/theme.css | 41 +++++++++++++++---- .../themes/aura-light-teal/theme.css | 41 +++++++++++++++---- .../themes/bootstrap4-dark-blue/theme.css | 41 +++++++++++++++---- .../themes/bootstrap4-dark-purple/theme.css | 41 +++++++++++++++---- .../themes/bootstrap4-light-blue/theme.css | 41 +++++++++++++++---- .../themes/bootstrap4-light-purple/theme.css | 41 +++++++++++++++---- .../components/themes/fluent-light/theme.css | 41 +++++++++++++++---- .../themes/lara-dark-blue/theme.css | 41 +++++++++++++++---- .../themes/lara-dark-indigo/theme.css | 41 +++++++++++++++---- .../themes/lara-dark-purple/theme.css | 41 +++++++++++++++---- .../themes/lara-dark-teal/theme.css | 41 +++++++++++++++---- .../themes/lara-light-blue/theme.css | 41 +++++++++++++++---- .../themes/lara-light-indigo/theme.css | 41 +++++++++++++++---- .../themes/lara-light-purple/theme.css | 41 +++++++++++++++---- .../themes/lara-light-teal/theme.css | 41 +++++++++++++++---- .../components/themes/luna-amber/theme.css | 41 +++++++++++++++---- .../components/themes/luna-blue/theme.css | 41 +++++++++++++++---- .../components/themes/luna-green/theme.css | 41 +++++++++++++++---- .../components/themes/luna-pink/theme.css | 41 +++++++++++++++---- .../themes/md-dark-deeppurple/theme.css | 41 +++++++++++++++---- .../themes/md-dark-indigo/theme.css | 41 +++++++++++++++---- .../themes/md-light-deeppurple/theme.css | 41 +++++++++++++++---- .../themes/md-light-indigo/theme.css | 41 +++++++++++++++---- .../themes/mdc-dark-deeppurple/theme.css | 41 +++++++++++++++---- .../themes/mdc-dark-indigo/theme.css | 41 +++++++++++++++---- .../themes/mdc-light-deeppurple/theme.css | 41 +++++++++++++++---- .../themes/mdc-light-indigo/theme.css | 41 +++++++++++++++---- src/assets/components/themes/mira/theme.css | 41 +++++++++++++++---- src/assets/components/themes/nano/theme.css | 41 +++++++++++++++---- .../components/themes/nova-accent/theme.css | 41 +++++++++++++++---- .../components/themes/nova-alt/theme.css | 41 +++++++++++++++---- src/assets/components/themes/nova/theme.css | 41 +++++++++++++++---- src/assets/components/themes/rhea/theme.css | 41 +++++++++++++++---- .../components/themes/saga-blue/theme.css | 41 +++++++++++++++---- .../components/themes/saga-green/theme.css | 41 +++++++++++++++---- .../components/themes/saga-orange/theme.css | 41 +++++++++++++++---- .../components/themes/saga-purple/theme.css | 41 +++++++++++++++---- .../components/themes/soho-dark/theme.css | 41 +++++++++++++++---- .../components/themes/soho-light/theme.css | 41 +++++++++++++++---- .../themes/tailwind-light/theme.css | 41 +++++++++++++++---- .../components/themes/vela-blue/theme.css | 41 +++++++++++++++---- .../components/themes/vela-green/theme.css | 41 +++++++++++++++---- .../components/themes/vela-orange/theme.css | 41 +++++++++++++++---- .../components/themes/vela-purple/theme.css | 41 +++++++++++++++---- .../components/themes/viva-dark/theme.css | 41 +++++++++++++++---- .../components/themes/viva-light/theme.css | 41 +++++++++++++++---- 74 files changed, 2199 insertions(+), 621 deletions(-) diff --git a/src/app/components/checkbox/checkbox.ts b/src/app/components/checkbox/checkbox.ts index 103ef5779ad..5b54ce95dd2 100755 --- a/src/app/components/checkbox/checkbox.ts +++ b/src/app/components/checkbox/checkbox.ts @@ -43,7 +43,7 @@ export const CHECKBOX_VALUE_ACCESSOR: any = { 'p-checkbox-checked': checked(), 'p-checkbox-disabled': disabled, 'p-checkbox-focused': focused, - 'p-variant-filled': variant ? variant === 'filled' : config.inputStyle === 'filled' + 'p-variant-filled': variant === 'filled' || config.inputStyle() === 'filled' }" [class]="styleClass" [attr.data-pc-name]="'checkbox'" diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 1e426e5fb25..bcf1dd96205 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4609,7 +4609,7 @@ export class TableRadioButton { @Component({ selector: 'p-tableCheckbox', template: ` -
+
+
diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 79418928018..214ac06a6f4 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -112,7 +112,12 @@ import { -