@coolon/angular-ui-powerups 16.1.0-alpha.249 → 16.1.0-alpha.252

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.
@@ -26,6 +26,7 @@ export declare class CommandComponent extends PopupAwareComponent {
26
26
  readonly visible$: ValueModelChain<boolean>;
27
27
  constructor();
28
28
  get cssDisplayProperty(): string;
29
+ getVisibility(): ValueModel<boolean>;
29
30
  isActive(face: CommandFace): boolean;
30
31
  requestFocus(): void;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<CommandComponent, never>;
@@ -1,5 +1,6 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { MatMenu } from "@angular/material/menu";
3
+ import type { ValueModel } from '@coolon/pectin';
3
4
  import { DisposableComponent } from '../../disposable-component';
4
5
  import type { CommandFace } from '../command-face';
5
6
  import * as i0 from "@angular/core";
@@ -12,6 +13,11 @@ export declare abstract class PopupAwareComponent extends DisposableComponent {
12
13
  get componentIndex(): number;
13
14
  private computeComponentIndex;
14
15
  getFace(): CommandFace | undefined;
16
+ /** The reactive visibility of this popup child, when it can be gated (a command's `visibleWhile`).
17
+ * Nil for children that always render (submenus, downloads, separators). The owning popup menu
18
+ * depends on the union of these so a live `visible$` flip re-gates its trigger even when change
19
+ * detection is detached (e.g. inside an aup-table cell). */
20
+ getVisibility(): ValueModel<boolean | undefined> | undefined;
15
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PopupAwareComponent, never>;
16
22
  static ɵcmp: i0.ɵɵComponentDeclaration<PopupAwareComponent, "aup-popup-aware", never, {}, {}, never, never, false, never>;
17
23
  }
@@ -19,7 +19,9 @@ export declare class AbstractPopupMenuComponent extends PopupAwareComponent impl
19
19
  accessor enabled: boolean;
20
20
  readonly children: ListModelChain<PopupAwareComponent>;
21
21
  readonly faces$: ListModelChain<CommandFace>;
22
+ private childVisibilityScope;
22
23
  constructor();
24
+ private watchChildVisibility;
23
25
  ngAfterContentChecked(): void;
24
26
  get faceAdapter(): CommandFace.Adapter;
25
27
  isRoot(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.249",
3
+ "version": "16.1.0-alpha.252",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",