From 8417cea2345548c88f8cc1912c9c255b439e1117 Mon Sep 17 00:00:00 2001 From: "Shivprasad Kounsalye (Remote Angular Dev)" Date: Thu, 3 Oct 2024 23:52:20 +0530 Subject: [PATCH] =?UTF-8?q?chore(demo):=20correct=20templateRef=20option?= =?UTF-8?q?=20in=20icon=20dropdown=20for=20inputCardG=E2=80=A6=20(#9124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alex Inkin --- .../addon-doc/components/documentation/pipes/inspect.pipe.ts | 4 ++-- .../demo/src/modules/components/input-card-group/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts b/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts index ec7bf48f92ef..dc002324bdc9 100644 --- a/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts @@ -1,5 +1,5 @@ import type {PipeTransform} from '@angular/core'; -import {inject, Pipe} from '@angular/core'; +import {inject, Pipe, TemplateRef} from '@angular/core'; import {tuiInspectAny} from '@taiga-ui/addon-doc/utils'; import {TUI_IS_E2E} from '@taiga-ui/cdk/tokens'; @@ -22,6 +22,6 @@ export class TuiInspectPipe implements PipeTransform { return 'λ(x) => y'; } - return tuiInspectAny(value, depth); + return value instanceof TemplateRef ? 'TemplateRef' : tuiInspectAny(value, depth); } } diff --git a/projects/demo/src/modules/components/input-card-group/index.ts b/projects/demo/src/modules/components/input-card-group/index.ts index 0bdf6683cf5c..e29e4e6ae0f6 100644 --- a/projects/demo/src/modules/components/input-card-group/index.ts +++ b/projects/demo/src/modules/components/input-card-group/index.ts @@ -34,7 +34,7 @@ export default class PageComponent extends AbstractExampleTuiInteractive { 'Custom labels', ]; - protected readonly cards: Record = { + protected readonly cards: Record = { common: 'https://ng-web-apis.github.io/dist/assets/images/common.svg', universal: 'https://ng-web-apis.github.io/dist/assets/images/universal.svg', mutation: