@coolon/angular-ui-powerups 3.7.0-alpha.4 → 3.7.0-alpha.6
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/CHANGELOG.md +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +177 -109
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js +50 -0
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +17 -6
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +16 -3
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/command-group.js +2 -0
- package/esm2015/lib/components/commands/group/command-group.js.map +1 -1
- package/esm2015/lib/components/commands/group/more-menu.component.js +4 -11
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.js +4 -15
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +3 -1
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/exports.js +1 -0
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +160 -105
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/group/abstract-popup-menu.component.d.ts +16 -0
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +5 -2
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +5 -0
- package/lib/components/commands/group/more-menu.component.d.ts +2 -6
- package/lib/components/commands/group/popup-menu.component.d.ts +2 -7
- package/lib/components/exports.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AfterContentInit, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
4
|
+
import { CommandGroup } from './command-group';
|
|
5
|
+
export declare class AbstractPopupMenuComponent extends DisposableComponent implements OnInit, AfterContentInit {
|
|
6
|
+
readonly group: CommandGroup;
|
|
7
|
+
get xPosition(): 'before' | 'after';
|
|
8
|
+
set xPosition(position: 'before' | 'after');
|
|
9
|
+
get yPosition(): 'above' | 'below';
|
|
10
|
+
set yPosition(position: 'above' | 'below');
|
|
11
|
+
triggers: QueryList<MatMenuTrigger>;
|
|
12
|
+
constructor(group: CommandGroup);
|
|
13
|
+
ngAfterContentInit(): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
closeMenu(): void;
|
|
16
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
2
|
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
-
import { ListModelChain, ValueModelChain } from '@coolon/pectin';
|
|
3
|
+
import { Command, ListModelChain, ValueModelChain } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../../../disposable-component';
|
|
5
5
|
import { TrackBy } from '../../../track-by';
|
|
6
6
|
import { Registration } from '../registration';
|
|
@@ -15,7 +15,10 @@ export declare class CommandGroupMenuRendererComponent extends DisposableCompone
|
|
|
15
15
|
readonly children: ListModelChain<Registration>;
|
|
16
16
|
readonly hasMixedIcons: ValueModelChain<boolean>;
|
|
17
17
|
readonly ViewData: typeof ViewData;
|
|
18
|
+
readonly commandProxy: Command<unknown>;
|
|
18
19
|
TrackBy: typeof TrackBy;
|
|
19
20
|
constructor(parent?: CommandGroupMenuRendererComponent);
|
|
20
|
-
|
|
21
|
+
executeCommand(data: Registration): void;
|
|
22
|
+
isEnabled(data: Registration): boolean;
|
|
23
|
+
onCommandFired(): void;
|
|
21
24
|
}
|
package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
1
3
|
import { ListModelChain, ValueModel } from '@coolon/pectin';
|
|
2
4
|
import { DisposableComponent } from '../../../disposable-component';
|
|
3
5
|
import { ViewData } from '../view-data';
|
|
@@ -6,8 +8,11 @@ export declare class CommandGroupRendererComponent extends DisposableComponent {
|
|
|
6
8
|
groupViewDataModel: ValueModel<ViewData.GroupData>;
|
|
7
9
|
groupViewData: ViewData.GroupData;
|
|
8
10
|
renderRootNode: boolean;
|
|
11
|
+
commandFired: EventEmitter<any>;
|
|
9
12
|
readonly ViewData: typeof ViewData;
|
|
10
13
|
readonly childViewDataModels: ListModelChain<ViewData>;
|
|
11
14
|
TrackBy: typeof TrackBy;
|
|
15
|
+
triggers: QueryList<MatMenuTrigger>;
|
|
12
16
|
constructor();
|
|
17
|
+
onCommandFired(): void;
|
|
13
18
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
1
|
+
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
3
2
|
import { CommandGroup } from './command-group';
|
|
4
3
|
/**
|
|
5
4
|
*
|
|
6
5
|
*/
|
|
7
|
-
export declare class MoreMenuComponent extends
|
|
8
|
-
readonly group: CommandGroup;
|
|
6
|
+
export declare class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
9
7
|
private tooltipModel;
|
|
10
8
|
tooltip: string;
|
|
11
9
|
constructor(group: CommandGroup);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngAfterContentInit(): void;
|
|
14
10
|
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { AfterContentInit, AfterViewInit, OnInit } from '@angular/core';
|
|
2
1
|
import { ValueModel } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
4
2
|
import { CommandFace } from '../command-face';
|
|
3
|
+
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
5
4
|
import { CommandGroup } from './command-group';
|
|
6
5
|
/**
|
|
7
6
|
*
|
|
8
7
|
*/
|
|
9
|
-
export declare class PopupMenuComponent extends
|
|
10
|
-
readonly group: CommandGroup;
|
|
8
|
+
export declare class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
11
9
|
faceModel: ValueModel<CommandFace>;
|
|
12
10
|
face: CommandFace;
|
|
13
11
|
constructor(group: CommandGroup);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
ngAfterContentInit(): void;
|
|
16
|
-
ngAfterViewInit(): void;
|
|
17
12
|
}
|
|
@@ -12,6 +12,7 @@ export * from "./commands/flex.component";
|
|
|
12
12
|
export * from "./commands/separator.component";
|
|
13
13
|
export * from "./commands/command/command.component";
|
|
14
14
|
export * from "./commands/command-face/command-face.component";
|
|
15
|
+
export * from "./commands/group/abstract-popup-menu.component";
|
|
15
16
|
export * from "./commands/group/command-group";
|
|
16
17
|
export * from "./commands/group/more-menu.component";
|
|
17
18
|
export * from "./commands/group/popup-menu.component";
|