From dcf1cb4ee99d76b10daeefe5848fecd585609ded Mon Sep 17 00:00:00 2001 From: shiv9604 Date: Fri, 27 Dec 2024 16:53:30 +0530 Subject: [PATCH] chore(demo): migrate accordian api docs to new api --- .../modules/components/accordion/index.html | 142 +++++++++--------- .../src/modules/components/accordion/index.ts | 3 +- 2 files changed, 77 insertions(+), 68 deletions(-) diff --git a/projects/demo/src/modules/components/accordion/index.html b/projects/demo/src/modules/components/accordion/index.html index de99bb97cb6a..053d7334c84c 100644 --- a/projects/demo/src/modules/components/accordion/index.html +++ b/projects/demo/src/modules/components/accordion/index.html @@ -91,100 +91,108 @@ TuiAccordionDirective - - + Other sections are closed when user opens one - - + + Rounded accordion style - - + + TuiAccordionItemComponent - - + Waits for a custom event TUI_EXPAND_LOADED before opening. Content is initialized when opening starts - - + + Borders variants - - + + Disabled state for an item - - + + Removes default paddings - - + + Disabled header hover state - - + + Open / close state of section - - + + Size of an accordion item - - + + Show / hide an arrow - - + + diff --git a/projects/demo/src/modules/components/accordion/index.ts b/projects/demo/src/modules/components/accordion/index.ts index 3b120746aaf5..604a00434d99 100644 --- a/projects/demo/src/modules/components/accordion/index.ts +++ b/projects/demo/src/modules/components/accordion/index.ts @@ -3,6 +3,7 @@ import {Component, DestroyRef, inject, ViewChild} from '@angular/core'; import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; +import {TuiDocAPI, TuiDocAPIItem} from '@taiga-ui/addon-doc'; import type {TuiSizeS} from '@taiga-ui/core'; import {TUI_EXPAND_LOADED} from '@taiga-ui/core'; import {TuiAccordion} from '@taiga-ui/kit'; @@ -10,7 +11,7 @@ import {timer} from 'rxjs'; @Component({ standalone: true, - imports: [TuiAccordion, TuiDemo], + imports: [TuiAccordion, TuiDemo, TuiDocAPI, TuiDocAPIItem], templateUrl: './index.html', changeDetection, })