From 6265d08fe12b0865abc2dea42a0acebbf8d6f80f Mon Sep 17 00:00:00 2001 From: Alexey Zezin Date: Tue, 3 Dec 2024 11:15:09 +0300 Subject: [PATCH] fix(cdk): revert TuiValueChangesException removal --- projects/cdk/exceptions/index.ts | 1 + projects/cdk/exceptions/value-changes.exception.ts | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 projects/cdk/exceptions/value-changes.exception.ts diff --git a/projects/cdk/exceptions/index.ts b/projects/cdk/exceptions/index.ts index cd4ca67cd36e..351a0361651f 100644 --- a/projects/cdk/exceptions/index.ts +++ b/projects/cdk/exceptions/index.ts @@ -8,5 +8,6 @@ export * from './owner-document.exception'; export * from './pure.exception'; export * from './table-sort-key.exception'; export * from './ts-parser.exception'; +export * from './value-changes.exception'; export * from './value-present.exception'; export * from './xml-parsing.exception'; diff --git a/projects/cdk/exceptions/value-changes.exception.ts b/projects/cdk/exceptions/value-changes.exception.ts new file mode 100644 index 000000000000..f8bc2e4b6728 --- /dev/null +++ b/projects/cdk/exceptions/value-changes.exception.ts @@ -0,0 +1,5 @@ +export class TuiValueChangesException extends Error { + constructor() { + super(ngDevMode ? 'Control does not have valueChanges' : ''); + } +}