From bdc2fd8358909712c9fafe50c995c0253528b704 Mon Sep 17 00:00:00 2001 From: Tim Sielemann Date: Mon, 30 Sep 2024 15:15:10 +0200 Subject: [PATCH] fix(core): add required marker to checkbox formly element (#577) Co-authored-by: Tim Sielemann --- .../lib/formly/formly-checkbox/formly-checkbox.component.ts | 1 + core/src/components.d.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/angular/projects/catalyst-formly/src/lib/formly/formly-checkbox/formly-checkbox.component.ts b/angular/projects/catalyst-formly/src/lib/formly/formly-checkbox/formly-checkbox.component.ts index 2adfdfeed..4b21cb891 100644 --- a/angular/projects/catalyst-formly/src/lib/formly/formly-checkbox/formly-checkbox.component.ts +++ b/angular/projects/catalyst-formly/src/lib/formly/formly-checkbox/formly-checkbox.component.ts @@ -15,6 +15,7 @@ import { FieldType, FieldTypeConfig } from '@ngx-formly/core'; [hint]="props.hint" [labelLeft]="props.labelLeft" [nativeAttributes]="props.nativeAttributes" + [requiredMarker]="props.requiredMarker" > ` diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 6d2cc8279..d5a29e326 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -12,7 +12,8 @@ import { CatDatepickerMode } from "./components/cat-datepicker/cat-datepicker.mo import { BaseOptions } from "flatpickr/dist/types/options"; import { InputType } from "./components/cat-input/input-type"; import { CleaveOptions } from "cleave.js/options"; -import { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue } from "./components/cat-select/cat-select"; +import { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select"; +import { Observable } from "rxjs"; import { TooltipPlacement } from "./components/cat-tooltip/cat-tooltip"; export { Breakpoint } from "./utils/breakpoints"; export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";