@kouji-ui/core 0.6.1 → 0.6.2

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": "@kouji-ui/core",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Headless Angular 21 UI primitives — directives over CDK with WCAG 2.1 AAA semantics and zero CSS.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -6890,6 +6890,12 @@ interface KjConfirmPopupContext {
6890
6890
  readonly messageId: string;
6891
6891
  /** Resolve the confirmation: `true` confirms, `false` cancels. */
6892
6892
  close(result: boolean): void;
6893
+ /**
6894
+ * @internal Register the overlay controller owned by a nested
6895
+ * `[kjConfirmPopupTrigger]`. Optional so third-party context
6896
+ * implementations stay source-compatible.
6897
+ */
6898
+ _registerController?(controller: KjOverlayController): void;
6893
6899
  }
6894
6900
  /** Injection token for the confirm popup context. */
6895
6901
  declare const KJ_CONFIRM_POPUP: InjectionToken<KjConfirmPopupContext>;
@@ -6911,8 +6917,18 @@ declare const KJ_CONFIRM_POPUP: InjectionToken<KjConfirmPopupContext>;
6911
6917
  * @doc-category Core/Overlay
6912
6918
  */
6913
6919
  declare class KjConfirmPopup implements KjConfirmPopupContext {
6914
- /** The overlay controller provided by the trigger directive on the same element. */
6915
- private readonly controller;
6920
+ /** The overlay controller, when the trigger sits on this very element. */
6921
+ private readonly selfController;
6922
+ /**
6923
+ * The controller of a nested `[kjConfirmPopupTrigger]`. The documented
6924
+ * composition puts the trigger on a CHILD of `[kjConfirmPopup]` (see every
6925
+ * example), so the controller is NOT in this element's injector — without
6926
+ * this registration `close()` bailed out and `(kjConfirmed)` never fired.
6927
+ */
6928
+ private readonly registered;
6929
+ /** @internal — called by a nested `[kjConfirmPopupTrigger]`. */
6930
+ _registerController(c: KjOverlayController): void;
6931
+ private controllerOf;
6916
6932
  /** When `true`, the confirm action renders with destructive intent. */
6917
6933
  readonly kjDestructive: _angular_core.InputSignalWithTransform<boolean, unknown>;
6918
6934
  /** Where to place initial focus. Default `'cancel'`. */
@@ -6951,6 +6967,7 @@ declare class KjConfirmPopup implements KjConfirmPopupContext {
6951
6967
  */
6952
6968
  declare class KjConfirmPopupTrigger {
6953
6969
  private readonly _overlayTrigger;
6970
+ constructor();
6954
6971
  /** Forwarded controller for sibling `[kjFor]` panels. */
6955
6972
  get controller(): KjOverlayController;
6956
6973
  attachPanel(panel: KjOverlayPanel): void;