ps-helix 6.2.1 → 6.2.3

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": "ps-helix",
3
- "version": "6.2.1",
3
+ "version": "6.2.3",
4
4
  "description": "Helix Design System - A comprehensive Angular component library",
5
5
  "author": "Fabrice PEREZ - Design Engineer at PACK Solutions",
6
6
  "license": "MIT",
@@ -675,9 +675,11 @@ interface CheckboxConfig {
675
675
  }
676
676
 
677
677
  declare const CHECKBOX_CONFIG: InjectionToken<Partial<CheckboxConfig>>;
678
- declare class PshCheckboxComponent implements ControlValueAccessor, FormCheckboxControl {
678
+ declare class PshCheckboxComponent implements ControlValueAccessor, FormCheckboxControl, AfterViewInit {
679
679
  private readonly config;
680
680
  private readonly checkboxInput;
681
+ /** Holds the `label` input or the projected content — whichever provides the visible label. */
682
+ private readonly labelSlot;
681
683
  protected readonly uniqueId: string;
682
684
  private onChange;
683
685
  private onTouched;
@@ -696,7 +698,7 @@ declare class PshCheckboxComponent implements ControlValueAccessor, FormCheckbox
696
698
  computedAriaLabel: _angular_core.Signal<string | undefined>;
697
699
  ariaDescribedBy: _angular_core.Signal<string | undefined>;
698
700
  state: _angular_core.Signal<"success" | "disabled" | "indeterminate" | "error" | "checked" | "unchecked">;
699
- constructor();
701
+ ngAfterViewInit(): void;
700
702
  protected toggle(): void;
701
703
  protected handleKeydown(event: KeyboardEvent): void;
702
704
  writeValue(value: unknown): void;
@@ -1639,10 +1641,12 @@ interface RadioConfig {
1639
1641
 
1640
1642
  declare const RADIO_CONFIG: InjectionToken<Partial<RadioConfig>>;
1641
1643
  declare const RADIO_STYLES: InjectionToken<Record<string, string>[]>;
1642
- declare class PshRadioComponent {
1644
+ declare class PshRadioComponent implements AfterViewInit {
1643
1645
  private config;
1644
1646
  private styles;
1645
1647
  private uniqueId;
1648
+ /** Holds the `label` input or the projected content — whichever provides the visible label. */
1649
+ private labelSlot;
1646
1650
  checked: _angular_core.WritableSignal<boolean>;
1647
1651
  set checkedInput(v: boolean);
1648
1652
  disabled: _angular_core.WritableSignal<boolean>;
@@ -1666,8 +1670,13 @@ declare class PshRadioComponent {
1666
1670
  errorMessageId: _angular_core.Signal<string | undefined>;
1667
1671
  successMessageId: _angular_core.Signal<string | undefined>;
1668
1672
  ariaDescribedBy: _angular_core.Signal<string | undefined>;
1669
- constructor();
1673
+ ngAfterViewInit(): void;
1670
1674
  private getState;
1675
+ /**
1676
+ * Declares whether a label is projected. No longer required — projected content is now
1677
+ * detected from the rendered label slot. Kept for backwards compatibility: calling it
1678
+ * with `true` still suppresses the dev-only accessibility warning.
1679
+ */
1671
1680
  updateProjectedContent(hasContent: boolean): void;
1672
1681
  handleChange(): void;
1673
1682
  protected handleKeydown(event: KeyboardEvent): void;