@coolon/angular-ui-powerups 16.1.0-alpha.323 → 16.1.0-alpha.324

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.
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatButton } from '@angular/material/button';
3
- import { MatMenu, MatMenuItem } from '@angular/material/menu';
3
+ import { MatMenuItem } from '@angular/material/menu';
4
4
  import { Command, GarbageCollector, UnaryCommand } from '@coolon/pectin';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
@@ -9,9 +9,10 @@ import * as i0 from "@angular/core";
9
9
  * 1. A click runs the command, with [commandParameter] for a UnaryCommand.
10
10
  * 2. The element is disabled while the command is, Material buttons and menu items included.
11
11
  * 3. The element is hidden while the command is invisible, as `aup-command` hides itself, so a
12
- * `visibleWhile` gate hides the element without an `*ngIf` of its own. [hideWhenInvisible] false
13
- * keeps it shown.
14
- * 4. A click is kept from the element's ancestors, except a menu item's, whose menu closes on it.
12
+ * `visibleWhile` gate hides the element without an `*ngIf` of its own. It is disabled while hidden
13
+ * too, so the keyboard cannot reach it either: Material's menu moves the arrow keys and type-ahead
14
+ * past disabled items, but not past hidden ones.
15
+ * 4. A click is kept from the element's ancestors, except inside a menu, which closes on it.
15
16
  */
16
17
  export declare class CommandDirective<P = any> extends GarbageCollector implements OnInit, OnDestroy, AfterViewInit {
17
18
  private elementRef;
@@ -22,7 +23,6 @@ export declare class CommandDirective<P = any> extends GarbageCollector implemen
22
23
  /** The element's own inline display, put back when the command shows again. */
23
24
  private displayWhenVisible?;
24
25
  private matControl;
25
- private isInPopupMenu;
26
26
  set pectinCommand(command: Command<any> | UnaryCommand<P>);
27
27
  get pectinCommand(): Command<any> | UnaryCommand<P>;
28
28
  private _commandParameter;
@@ -30,9 +30,7 @@ export declare class CommandDirective<P = any> extends GarbageCollector implemen
30
30
  set commandParameter(value: P);
31
31
  get commandParameter(): P;
32
32
  preventDefault: boolean;
33
- /** False to keep the element shown, though disabled, while its command is invisible. */
34
- hideWhenInvisible: boolean;
35
- constructor(elementRef: ElementRef, changeDetector: ChangeDetectorRef, matButton: MatButton, matMenuItem: MatMenuItem, matMenu?: MatMenu);
33
+ constructor(elementRef: ElementRef, changeDetector: ChangeDetectorRef, matButton: MatButton, matMenuItem: MatMenuItem);
36
34
  ngOnInit(): void;
37
35
  /**
38
36
  * Hides the element with an inline `display: none`, which a component's own `display` rule cannot
@@ -43,6 +41,6 @@ export declare class CommandDirective<P = any> extends GarbageCollector implemen
43
41
  updateEnabledState(enabled: boolean): void;
44
42
  ngOnDestroy(): void;
45
43
  notifyClick($event: Event): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective<any>, [null, null, { optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }]>;
47
- static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDirective<any>, "[pectinCommand]", never, { "pectinCommand": { "alias": "pectinCommand"; "required": false; }; "commandParameter": { "alias": "commandParameter"; "required": false; }; "preventDefault": { "alias": "preventDefault"; "required": false; }; "hideWhenInvisible": { "alias": "hideWhenInvisible"; "required": false; }; }, {}, never, never, false, never>;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective<any>, [null, null, { optional: true; host: true; }, { optional: true; host: true; }]>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDirective<any>, "[pectinCommand]", never, { "pectinCommand": { "alias": "pectinCommand"; "required": false; }; "commandParameter": { "alias": "commandParameter"; "required": false; }; "preventDefault": { "alias": "preventDefault"; "required": false; }; }, {}, never, never, false, never>;
48
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.323",
3
+ "version": "16.1.0-alpha.324",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",