@frame-kit/ui-ng 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frame-kit/ui-ng",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Style-agnostic, token-driven Angular UI component library for FrameKit.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { InjectionToken, TemplateRef, Type, OnInit, ElementRef } from '@angular/core';
2
+ import { InjectionToken, AfterContentInit, TemplateRef, Type, OnInit, ElementRef } from '@angular/core';
3
3
  import { NgControl, AsyncValidatorFn, ValidatorFn, AbstractControl, FormArray, FormGroup, FormControl, ControlValueAccessor } from '@angular/forms';
4
4
  import { IconSize, IconColor } from '@frame-kit/ui-ng/core/icon';
5
5
 
@@ -185,7 +185,7 @@ declare class FkSuffixDirective {
185
185
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FkSuffixDirective, "[fkSuffix]", never, {}, {}, never, never, true, never>;
186
186
  }
187
187
 
188
- declare class FormFieldComponent {
188
+ declare class FormFieldComponent implements AfterContentInit {
189
189
  readonly className: _angular_core.InputSignal<string>;
190
190
  /** Text label rendered above the field; forwarded to the projected fk-label when present. */
191
191
  readonly label: _angular_core.InputSignal<string | null>;
@@ -218,6 +218,21 @@ declare class FormFieldComponent {
218
218
  readonly suffixRef: _angular_core.Signal<FkSuffixDirective | undefined>;
219
219
  private readonly globalErrorMessages;
220
220
  private readonly cdr;
221
+ private readonly host;
222
+ /**
223
+ * `fkPrefix` and `fkSuffix` project only when their directive resolves, and
224
+ * it only resolves when the consumer imports it. Forget the import and the
225
+ * attribute stays inert markup: Angular does not warn about an unknown
226
+ * attribute on a known element, the content query returns undefined, the
227
+ * wrapper is never rendered, and the icon simply is not there. Nothing fails
228
+ * — which is what makes it slow to diagnose.
229
+ *
230
+ * Content queries have resolved by this point, and the element is still in
231
+ * the DOM either way, so an element carrying the attribute with no resolved
232
+ * directive is an unambiguous signal.
233
+ */
234
+ ngAfterContentInit(): void;
235
+ private warnOnUnresolvedProjection;
221
236
  get hostClass(): string;
222
237
  readonly fieldId: string;
223
238
  readonly labelId: string;