From 2af0369a883ff2581ee9dc0bb786b311fb89e569 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 14:14:53 +0200 Subject: [PATCH 01/13] =?UTF-8?q?=F0=9F=92=84=20Adding=20the=20style=20of?= =?UTF-8?q?=20the=20primevue=20accordion=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/primevue-style/accordion.css | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/assets/style/primevue-style/accordion.css diff --git a/src/assets/style/primevue-style/accordion.css b/src/assets/style/primevue-style/accordion.css new file mode 100644 index 0000000..10b3659 --- /dev/null +++ b/src/assets/style/primevue-style/accordion.css @@ -0,0 +1,42 @@ +:root{ + /* panel */ + --p-accordion-transition-duration: 0.2s; + --p-accordion-panel-border-width: 0px; + --p-accordion-panel-border-color: none; + /* header */ + --p-accordion-header-color: var(--text-action-high-blue-france); + --p-accordion-header-hover-color: var(--text-action-high-blue-france); + --p-accordion-header-active-color: var(--text-action-high-blue-france); + --p-accordion-header-active-hover-color: var(--text-action-high-blue-france); + --p-accordion-header-padding: 0.75rem 1rem; + --p-accordion-header-font-weight: var(--text-body-MD-standard-text-Medium-weight); + --p-accordion-header-border-radius: 0px; + --p-accordion-header-border-width: 1px; + --p-accordion-header-border-color: var(--border-default-grey); + --p-accordion-header-background: var(--background-transparent); + --p-accordion-header-hover-background: var(--background-transparent-hover); + --p-accordion-header-active-background: var(--background-open-blue-france); + --p-accordion-header-active-hover-background: var(--background-open-blue-france-hover); + /* header first top border */ + --p-accordion-header-first-top-border-radius: 0px; + --p-accordion-header-first-border-width: 1px; + /* header last bottom border */ + --p-accordion-header-last-bottom-border-radius: 0px; + --p-accordion-header-last-active-bottom-border-radius: 0px; + /* focus */ + --p-accordion-header-focus-ring-width: var(--focus-width); + --p-accordion-header-focus-ring-style: var(--focus-style); + --p-accordion-header-focus-ring-color: var(--focus-color); + --p-accordion-header-focus-ring-offset: var(--focus-offset); + /* icon */ + --p-accordion-header-toggle-icon-color: var(--text-action-high-blue-france); + --p-accordion-header-toggle-icon-hover-color: var(--text-action-high-blue-france); + --p-accordion-header-toggle-icon-active-color: var(--text-action-high-blue-france); + --p-accordion-header-toggle-icon-active-hover-color: var(--text-action-high-blue-france); + /* content */ + --p-accordion-content-border-width: 0px; + --p-accordion-content-border-color: none; + --p-accordion-content-background: var(--background-contrast-grey); + --p-accordion-content-color: var(--text-default-grey); + --p-accordion-content-padding: 1rem; +} From d6abeb26c003b93c8d07ea6105abdf7b7efcc50a Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 14:27:45 +0200 Subject: [PATCH 02/13] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=20Added=20accord?= =?UTF-8?q?ion=20interface=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accordion/IVAccordion.type.ts | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/components/accordion/IVAccordion.type.ts diff --git a/src/components/accordion/IVAccordion.type.ts b/src/components/accordion/IVAccordion.type.ts new file mode 100644 index 0000000..1b61e80 --- /dev/null +++ b/src/components/accordion/IVAccordion.type.ts @@ -0,0 +1,28 @@ +/** + * Interface representing the configuration and state of an Accordion component. + */ +export default interface IVAccordion { + /** + * Optional unique identifier for the accordion instance. + */ + id?: string; + + /** + * Indicates whether the accordion is disabled. + * When true, user interaction is prevented. + */ + disabled?: boolean; + + /** + * The current value(s) of the accordion. + * Can be a single value or an array of values, depending on the selection mode. + * Accepts string, number, or null. + */ + value?: null | string | number | string[] | number[]; + + /** + * The value associated with a specific panel within the accordion. + * Useful for identifying or controlling individual panels. + */ + panelValue?: undefined | string | number; +} From 454fc8e1345e8866ad3d3ce0deb39ed272b509c9 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 14:33:41 +0200 Subject: [PATCH 03/13] =?UTF-8?q?=E2=9C=A8=20feateure:=20added=20the=20com?= =?UTF-8?q?ponent=20that=20contains=20the=20accordion=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accordion/VAccordionChild.vue | 57 ++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/components/accordion/VAccordionChild.vue diff --git a/src/components/accordion/VAccordionChild.vue b/src/components/accordion/VAccordionChild.vue new file mode 100644 index 0000000..a214ba0 --- /dev/null +++ b/src/components/accordion/VAccordionChild.vue @@ -0,0 +1,57 @@ + + + + + From 1b01779237c06a231ac5cdadb54f48dd999e0097 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 14:42:41 +0200 Subject: [PATCH 04/13] =?UTF-8?q?=E2=9C=A8=20feateure:=20added=20accordion?= =?UTF-8?q?=20compoenent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accordion/VAccordion.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/components/accordion/VAccordion.vue diff --git a/src/components/accordion/VAccordion.vue b/src/components/accordion/VAccordion.vue new file mode 100644 index 0000000..1951812 --- /dev/null +++ b/src/components/accordion/VAccordion.vue @@ -0,0 +1,17 @@ + + + From 7f40462903ca41c19256fe0fa1dc64ec43005b7c Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 15:24:06 +0200 Subject: [PATCH 05/13] =?UTF-8?q?=F0=9F=92=84=20Updating=20the=20style=20o?= =?UTF-8?q?f=20the=20primevue=20accordion=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/primevue-style/accordion.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/style/primevue-style/accordion.css b/src/assets/style/primevue-style/accordion.css index 10b3659..ffca950 100644 --- a/src/assets/style/primevue-style/accordion.css +++ b/src/assets/style/primevue-style/accordion.css @@ -36,7 +36,7 @@ /* content */ --p-accordion-content-border-width: 0px; --p-accordion-content-border-color: none; - --p-accordion-content-background: var(--background-contrast-grey); + --p-accordion-content-background: var(--background-transparent); --p-accordion-content-color: var(--text-default-grey); - --p-accordion-content-padding: 1rem; + --p-accordion-content-padding: 0px; } From b17fc6e8d34a3b76f187e18ad521257f10abbad4 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 15:25:24 +0200 Subject: [PATCH 06/13] =?UTF-8?q?=F0=9F=92=84=20Update=20the=20primevue=20?= =?UTF-8?q?configuration=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/primevue-configuration.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assets/style/primevue-configuration.css b/src/assets/style/primevue-configuration.css index c080610..3736d1a 100644 --- a/src/assets/style/primevue-configuration.css +++ b/src/assets/style/primevue-configuration.css @@ -1 +1,2 @@ @import './primevue-style/button.css'; +@import './primevue-style/accordion.css'; From a8d052894e0c327c2d84b2313617ca2fab2a925e Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 15:27:04 +0200 Subject: [PATCH 07/13] =?UTF-8?q?=E2=9C=A8=20feateure:=20updated=20the=20c?= =?UTF-8?q?omponent=20that=20contains=20the=20accordion=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accordion/VAccordionChild.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/accordion/VAccordionChild.vue b/src/components/accordion/VAccordionChild.vue index a214ba0..0235bfc 100644 --- a/src/components/accordion/VAccordionChild.vue +++ b/src/components/accordion/VAccordionChild.vue @@ -13,7 +13,7 @@ const props = withDefaults(defineProps(), {