@coolon/angular-ui-powerups 16.1.0-alpha.298 → 16.1.0-alpha.300
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/assets/commands.scss +18 -0
- package/assets/styles.scss +1 -0
- package/esm2022/lib/directives/command.directive.mjs +16 -5
- package/fesm2022/coolon-angular-ui-powerups.mjs +14 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/directives/command.directive.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatButton } from '@angular/material/button';
|
|
3
3
|
import { MatMenu, MatMenuItem } from '@angular/material/menu';
|
|
4
4
|
import { Command, GarbageCollector, UnaryCommand } from '@coolon/pectin';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CommandDirective<P = any> extends GarbageCollector implements OnInit, OnDestroy, AfterViewInit {
|
|
7
7
|
private elementRef;
|
|
8
|
+
private readonly changeDetector;
|
|
8
9
|
private _command;
|
|
9
10
|
private _commandEnabled;
|
|
10
11
|
private matControl;
|
|
@@ -16,12 +17,12 @@ export declare class CommandDirective<P = any> extends GarbageCollector implemen
|
|
|
16
17
|
set commandParameter(value: P);
|
|
17
18
|
get commandParameter(): P;
|
|
18
19
|
preventDefault: boolean;
|
|
19
|
-
constructor(elementRef: ElementRef, matButton: MatButton, matMenuItem: MatMenuItem, matMenu?: MatMenu);
|
|
20
|
+
constructor(elementRef: ElementRef, changeDetector: ChangeDetectorRef, matButton: MatButton, matMenuItem: MatMenuItem, matMenu?: MatMenu);
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngAfterViewInit(): void;
|
|
22
23
|
updateEnabledState(enabled: boolean): void;
|
|
23
24
|
ngOnDestroy(): void;
|
|
24
25
|
notifyClick($event: Event): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective<any>, [null, { optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }]>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective<any>, [null, null, { optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }]>;
|
|
26
27
|
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>;
|
|
27
28
|
}
|