@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.
Files changed (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +177 -109
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js +50 -0
  8. package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js.map +1 -0
  9. package/esm2015/lib/components/commands/group/abstract-popup-menu.component.metadata.json +1 -0
  10. package/esm2015/lib/components/commands/group/abstract-popup-menu.component.ngfactory.js.map +1 -0
  11. package/esm2015/lib/components/commands/group/command-group/command-group.component.js +1 -0
  12. package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -1
  13. package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -1
  14. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +17 -6
  15. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -1
  16. package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -1
  17. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +16 -3
  18. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -1
  19. package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -1
  20. package/esm2015/lib/components/commands/group/command-group.js +2 -0
  21. package/esm2015/lib/components/commands/group/command-group.js.map +1 -1
  22. package/esm2015/lib/components/commands/group/more-menu.component.js +4 -11
  23. package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -1
  24. package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -1
  25. package/esm2015/lib/components/commands/group/popup-menu.component.js +4 -15
  26. package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -1
  27. package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -1
  28. package/esm2015/lib/components/components.module.js +3 -1
  29. package/esm2015/lib/components/components.module.js.map +1 -1
  30. package/esm2015/lib/components/components.module.metadata.json +1 -1
  31. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  32. package/esm2015/lib/components/exports.js +1 -0
  33. package/esm2015/lib/components/exports.js.map +1 -1
  34. package/esm2015/lib/components/exports.metadata.json +1 -1
  35. package/fesm2015/coolon-angular-ui-powerups.js +160 -105
  36. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  37. package/lib/components/commands/group/abstract-popup-menu.component.d.ts +16 -0
  38. package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +5 -2
  39. package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +5 -0
  40. package/lib/components/commands/group/more-menu.component.d.ts +2 -6
  41. package/lib/components/commands/group/popup-menu.component.d.ts +2 -7
  42. package/lib/components/exports.d.ts +1 -0
  43. 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
- getCommand(data: ViewData): import("@coolon/pectin").Command<unknown>;
21
+ executeCommand(data: Registration): void;
22
+ isEnabled(data: Registration): boolean;
23
+ onCommandFired(): void;
21
24
  }
@@ -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 { AfterContentInit, OnInit } from '@angular/core';
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 DisposableComponent implements OnInit, AfterContentInit {
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 DisposableComponent implements OnInit, AfterContentInit, AfterViewInit {
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "3.7.0-alpha.4",
3
+ "version": "3.7.0-alpha.6",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",