@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.
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +1 -1
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +3 -3
- package/esm2022/lib/components/commands/command/command.component.mjs +1 -1
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +1 -1
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
- package/esm2022/lib/directives/command.directive.mjs +17 -26
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +1 -1
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +59 -68
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/directives/command.directive.d.ts +8 -10
- package/package.json +1 -1
|
@@ -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 {
|
|
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.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
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
|
-
|
|
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; }
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDirective<any>, "[pectinCommand]", never, { "pectinCommand": { "alias": "pectinCommand"; "required": false; }; "commandParameter": { "alias": "commandParameter"; "required": false; }; "preventDefault": { "alias": "preventDefault"; "required": false; };
|
|
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
|
}
|