From b606d45ea271e6e6acdd9cb38edf77640942d5ec Mon Sep 17 00:00:00 2001
From: Umanskiy Aleksey
Date: Mon, 4 Nov 2024 15:18:17 +0200
Subject: [PATCH 1/2] refactor(accordion): introducing signals signals
---
.../src/lib/demos/animated/animated.ts | 6 ++-
.../accordion/src/lib/demos/basic/basic.html | 2 +-
.../lib/demos/custom-html/custom-html.html | 2 +-
.../src/lib/demos/disabled/disabled.html | 2 +-
.../src/lib/demos/dymanic/dynamic.html | 2 +-
.../lib/demos/dynamic-body/dynamic-body.html | 2 +-
.../demos/manual-toggle/manual-toggle.html | 2 +-
.../src/lib/demos/open-event/open-event.html | 2 +-
.../src/lib/demos/opened/opened.html | 2 +-
.../src/lib/demos/styling/styling.html | 2 +-
src/accordion/accordion-group.component.html | 12 +++---
src/accordion/accordion-group.component.ts | 42 ++++++++-----------
src/accordion/accordion.component.ts | 30 +++++++++----
13 files changed, 59 insertions(+), 49 deletions(-)
diff --git a/libs/doc-pages/accordion/src/lib/demos/animated/animated.ts b/libs/doc-pages/accordion/src/lib/demos/animated/animated.ts
index 6af8cdcb03..0096afaca1 100644
--- a/libs/doc-pages/accordion/src/lib/demos/animated/animated.ts
+++ b/libs/doc-pages/accordion/src/lib/demos/animated/animated.ts
@@ -1,8 +1,10 @@
-import { Component } from '@angular/core';
+import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-animation',
- templateUrl: './animated.html'
+ templateUrl: './animated.html',
+ changeDetection: ChangeDetectionStrategy.OnPush
})
export class DemoAccordionAnimatedComponent {}
+
diff --git a/libs/doc-pages/accordion/src/lib/demos/basic/basic.html b/libs/doc-pages/accordion/src/lib/demos/basic/basic.html
index 21a2759b8b..02ff0a98da 100644
--- a/libs/doc-pages/accordion/src/lib/demos/basic/basic.html
+++ b/libs/doc-pages/accordion/src/lib/demos/basic/basic.html
@@ -1,4 +1,4 @@
-
+
This content is straight in the template.
diff --git a/libs/doc-pages/accordion/src/lib/demos/custom-html/custom-html.html b/libs/doc-pages/accordion/src/lib/demos/custom-html/custom-html.html
index 281f0598c7..905de847e5 100644
--- a/libs/doc-pages/accordion/src/lib/demos/custom-html/custom-html.html
+++ b/libs/doc-pages/accordion/src/lib/demos/custom-html/custom-html.html
@@ -1,4 +1,4 @@
-
+
-
+
This content is straight in the template.
diff --git a/libs/doc-pages/accordion/src/lib/demos/dymanic/dynamic.html b/libs/doc-pages/accordion/src/lib/demos/dymanic/dynamic.html
index b04c0223f8..0a07c22de8 100644
--- a/libs/doc-pages/accordion/src/lib/demos/dymanic/dynamic.html
+++ b/libs/doc-pages/accordion/src/lib/demos/dymanic/dynamic.html
@@ -4,7 +4,7 @@
-
+
{{ group?.content }}
diff --git a/libs/doc-pages/accordion/src/lib/demos/dynamic-body/dynamic-body.html b/libs/doc-pages/accordion/src/lib/demos/dynamic-body/dynamic-body.html
index e122e3ba74..30510a373d 100644
--- a/libs/doc-pages/accordion/src/lib/demos/dynamic-body/dynamic-body.html
+++ b/libs/doc-pages/accordion/src/lib/demos/dynamic-body/dynamic-body.html
@@ -1,4 +1,4 @@
-
+
The body of the accordion group grows to fit the contents
-
+
accordion 1
diff --git a/libs/doc-pages/accordion/src/lib/demos/open-event/open-event.html b/libs/doc-pages/accordion/src/lib/demos/open-event/open-event.html
index 03e913c4b7..8d7a3eeb58 100644
--- a/libs/doc-pages/accordion/src/lib/demos/open-event/open-event.html
+++ b/libs/doc-pages/accordion/src/lib/demos/open-event/open-event.html
@@ -1,4 +1,4 @@
-
+
Some content
diff --git a/libs/doc-pages/accordion/src/lib/demos/opened/opened.html b/libs/doc-pages/accordion/src/lib/demos/opened/opened.html
index 64561b29a2..05503cb57a 100644
--- a/libs/doc-pages/accordion/src/lib/demos/opened/opened.html
+++ b/libs/doc-pages/accordion/src/lib/demos/opened/opened.html
@@ -1,4 +1,4 @@
-
+
accordion 1
diff --git a/libs/doc-pages/accordion/src/lib/demos/styling/styling.html b/libs/doc-pages/accordion/src/lib/demos/styling/styling.html
index 1a78a356e3..7332ee96cb 100644
--- a/libs/doc-pages/accordion/src/lib/demos/styling/styling.html
+++ b/libs/doc-pages/accordion/src/lib/demos/styling/styling.html
@@ -1,4 +1,4 @@
-
+
diff --git a/src/accordion/accordion-group.component.html b/src/accordion/accordion-group.component.html
index 84b2c126de..a03d8e743d 100644
--- a/src/accordion/accordion-group.component.html
+++ b/src/accordion/accordion-group.component.html
@@ -1,20 +1,20 @@
-