@coolon/angular-ui-powerups 3.7.0-alpha.6 → 3.7.0-alpha.8
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 +322 -631
- 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/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +15 -12
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/flex.component.js +2 -9
- package/esm2015/lib/components/commands/flex.component.js.map +1 -1
- package/esm2015/lib/components/commands/flex.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/command-container.js +21 -0
- package/esm2015/lib/components/commands/group/command-container.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.js +23 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-aware.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-container.js +3 -0
- package/esm2015/lib/components/commands/group/popup-container.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js +67 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.js +47 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js +90 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js +42 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +12 -15
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/separator.component.js +24 -14
- package/esm2015/lib/components/commands/separator.component.js.map +1 -1
- package/esm2015/lib/components/commands/separator.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +6 -11
- 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 +7 -9
- package/esm2015/lib/components/exports.js.map +1 -1
- package/esm2015/lib/components/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +304 -562
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +7 -6
- package/lib/components/commands/flex.component.d.ts +1 -3
- package/lib/components/commands/group/command-container.d.ts +16 -0
- package/lib/components/commands/group/popup-aware.component.d.ts +11 -0
- package/lib/components/commands/group/popup-container.d.ts +6 -0
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +24 -0
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +12 -0
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +33 -0
- package/lib/components/commands/group/{popup-menu.component.d.ts → popup-menu/popup-menu.component.d.ts} +4 -3
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +4 -5
- package/lib/components/commands/separator.component.d.ts +7 -7
- package/lib/components/exports.d.ts +7 -9
- package/package.json +1 -1
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js +0 -50
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +0 -44
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +0 -57
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +0 -52
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.js +0 -105
- package/esm2015/lib/components/commands/group/command-group.js.map +0 -1
- package/esm2015/lib/components/commands/group/command-group.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.js +0 -46
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.js +0 -41
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.js +0 -58
- package/esm2015/lib/components/commands/group/registration.js.map +0 -1
- package/esm2015/lib/components/commands/group/registration.metadata.json +0 -1
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.js +0 -113
- package/esm2015/lib/components/commands/group/view-data.js.map +0 -1
- package/esm2015/lib/components/commands/group/view-data.metadata.json +0 -1
- package/lib/components/commands/group/abstract-popup-menu.component.d.ts +0 -16
- package/lib/components/commands/group/command-group/command-group.component.d.ts +0 -12
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +0 -24
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +0 -18
- package/lib/components/commands/group/command-group.d.ts +0 -42
- package/lib/components/commands/group/more-menu.component.d.ts +0 -10
- package/lib/components/commands/group/registration.d.ts +0 -32
- package/lib/components/commands/group/view-data.d.ts +0 -41
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { Command, ListModelChain, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
4
3
|
import { CommandFace } from '../command-face';
|
|
5
|
-
import {
|
|
4
|
+
import { PopupAwareComponent } from '../group/popup-aware.component';
|
|
5
|
+
import { PopupContainer } from '../group/popup-container';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export declare class CommandComponent extends
|
|
10
|
-
readonly parent?: CommandGroup;
|
|
9
|
+
export declare class CommandComponent extends PopupAwareComponent implements OnInit, AfterViewInit {
|
|
11
10
|
command: Command<unknown>;
|
|
12
11
|
faceModel: ValueModel<CommandFace>;
|
|
13
12
|
face: CommandFace;
|
|
@@ -18,7 +17,9 @@ export declare class CommandComponent extends DisposableComponent implements OnI
|
|
|
18
17
|
readonly buttonStyle: ValueModelChain<string>;
|
|
19
18
|
readonly colorModel: ValueModelChain<'primary' | 'accent' | 'warn' | undefined>;
|
|
20
19
|
private activeFace;
|
|
21
|
-
constructor(parent?:
|
|
20
|
+
constructor(element: ElementRef, parent?: PopupContainer);
|
|
22
21
|
isActive(face: CommandFace): boolean;
|
|
23
22
|
ngOnInit(): void;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
getFace(): CommandFace | undefined;
|
|
24
25
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { DisposableComponent } from '../disposable-component';
|
|
3
|
-
import { CommandGroup } from './group/command-group';
|
|
4
3
|
/**
|
|
5
4
|
*
|
|
6
5
|
*/
|
|
7
6
|
export declare class FlexComponent extends DisposableComponent implements OnInit {
|
|
8
|
-
|
|
9
|
-
constructor(parent?: CommandGroup);
|
|
7
|
+
constructor();
|
|
10
8
|
ngOnInit(): void;
|
|
11
9
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GarbageCollector } from '@coolon/pectin';
|
|
2
|
+
import { Enum } from 'typescript-string-enums';
|
|
3
|
+
export declare class CommandContainer extends GarbageCollector {
|
|
4
|
+
protected readonly parent?: CommandContainer;
|
|
5
|
+
constructor(parent?: CommandContainer);
|
|
6
|
+
get depth(): number;
|
|
7
|
+
private hasParent;
|
|
8
|
+
get orientation(): CommandContainer.Orientation;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace CommandContainer {
|
|
11
|
+
const Orientation: {
|
|
12
|
+
HORIZONTAL: "horizontal";
|
|
13
|
+
VERTICAL: "vertical";
|
|
14
|
+
};
|
|
15
|
+
type Orientation = Enum<typeof Orientation>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
3
|
+
import { CommandFace } from '../command-face';
|
|
4
|
+
import { PopupContainer } from './popup-container';
|
|
5
|
+
export declare abstract class PopupAwareComponent extends DisposableComponent {
|
|
6
|
+
readonly element: ElementRef;
|
|
7
|
+
readonly parent?: PopupContainer;
|
|
8
|
+
constructor(element: ElementRef, parent?: PopupContainer);
|
|
9
|
+
get componentIndex(): number;
|
|
10
|
+
getFace(): CommandFace | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef, QueryList } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { DelegatingValueModel, Disposable, ListModelChain } from '@coolon/pectin';
|
|
4
|
+
import { CommandFace } from '../../command-face';
|
|
5
|
+
import { PopupAwareComponent } from '../popup-aware.component';
|
|
6
|
+
import { PopupContainer } from '../popup-container';
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class AbstractPopupMenuComponent extends PopupAwareComponent implements PopupContainer {
|
|
11
|
+
private _unorderedChildren;
|
|
12
|
+
protected readonly faceModelDelegate: DelegatingValueModel<CommandFace>;
|
|
13
|
+
private faceAdapterModel;
|
|
14
|
+
xPosition: 'before' | 'after';
|
|
15
|
+
yPosition: 'above' | 'below';
|
|
16
|
+
triggers: QueryList<MatMenuTrigger>;
|
|
17
|
+
readonly children: ListModelChain<PopupAwareComponent>;
|
|
18
|
+
constructor(element: ElementRef, parent?: PopupContainer);
|
|
19
|
+
get faceAdapter(): CommandFace.Adapter;
|
|
20
|
+
isRoot(): boolean;
|
|
21
|
+
register(component: PopupAwareComponent): Disposable;
|
|
22
|
+
onCommandFired(): void;
|
|
23
|
+
getFace(): CommandFace | undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { PopupContainer } from '../popup-container';
|
|
3
|
+
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
8
|
+
private tooltipModel;
|
|
9
|
+
tooltip: string;
|
|
10
|
+
constructor(element: ElementRef, parent?: PopupContainer);
|
|
11
|
+
get face(): import("../../command-face").CommandFace;
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { Command, ValueModel } from '@coolon/pectin';
|
|
4
|
+
import { DisposableComponent } from '../../../../disposable-component';
|
|
5
|
+
import { TrackBy } from '../../../../track-by';
|
|
6
|
+
import { CommandFace } from '../../../command-face';
|
|
7
|
+
import { CommandComponent } from '../../../command/command.component';
|
|
8
|
+
import { SeparatorComponent } from '../../../separator.component';
|
|
9
|
+
import { PopupAwareComponent } from '../../popup-aware.component';
|
|
10
|
+
import { AbstractPopupMenuComponent } from '../abstract-popup-menu.component';
|
|
11
|
+
import { PopupMenuComponent } from '../popup-menu.component';
|
|
12
|
+
export declare class PopupMenuRendererComponent extends DisposableComponent {
|
|
13
|
+
private _parentComponent;
|
|
14
|
+
private _childList;
|
|
15
|
+
get parent(): PopupMenuComponent;
|
|
16
|
+
set parent(comp: PopupMenuComponent);
|
|
17
|
+
menuComponent: MatMenu;
|
|
18
|
+
commandFired: EventEmitter<any>;
|
|
19
|
+
triggers: QueryList<MatMenuTrigger>;
|
|
20
|
+
readonly hasMixedIcons: ValueModel<boolean>;
|
|
21
|
+
readonly commandProxy: Command<unknown>;
|
|
22
|
+
TrackBy: typeof TrackBy;
|
|
23
|
+
constructor();
|
|
24
|
+
get children(): PopupAwareComponent[];
|
|
25
|
+
executeCommand(data: PopupAwareComponent): void;
|
|
26
|
+
isEnabled(data: PopupAwareComponent): boolean;
|
|
27
|
+
onCommandFired(): void;
|
|
28
|
+
isCommand(child: any): child is CommandComponent;
|
|
29
|
+
isPopupMenu(child: any): child is AbstractPopupMenuComponent;
|
|
30
|
+
isSeparator(child: any): child is SeparatorComponent;
|
|
31
|
+
getTooltip(child: any): string;
|
|
32
|
+
getFaces(child: PopupAwareComponent): CommandFace[];
|
|
33
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { ValueModel } from '@coolon/pectin';
|
|
2
|
-
import { CommandFace } from '
|
|
3
|
+
import { CommandFace } from '../../command-face';
|
|
4
|
+
import { PopupContainer } from '../popup-container';
|
|
3
5
|
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
4
|
-
import { CommandGroup } from './command-group';
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
*/
|
|
8
9
|
export declare class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
9
10
|
faceModel: ValueModel<CommandFace>;
|
|
10
11
|
face: CommandFace;
|
|
11
|
-
constructor(
|
|
12
|
+
constructor(element: ElementRef, parent?: PopupContainer);
|
|
12
13
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { CommandGroup } from '../command-group';
|
|
2
|
+
import { CommandContainer } from '../command-container';
|
|
4
3
|
/**
|
|
5
4
|
*
|
|
6
5
|
*/
|
|
7
|
-
export declare class ToolBarComponent extends
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export declare class ToolBarComponent extends CommandContainer implements OnInit, AfterContentInit, AfterViewInit {
|
|
7
|
+
constructor();
|
|
8
|
+
get orientation(): CommandContainer.Orientation;
|
|
10
9
|
ngOnInit(): void;
|
|
11
10
|
ngAfterContentInit(): void;
|
|
12
11
|
ngAfterViewInit(): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { CommandContainer } from './group/command-container';
|
|
3
|
+
import { PopupAwareComponent } from './group/popup-aware.component';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
export declare class SeparatorComponent extends
|
|
8
|
-
readonly
|
|
9
|
-
constructor(
|
|
10
|
-
|
|
7
|
+
export declare class SeparatorComponent extends PopupAwareComponent implements OnInit {
|
|
8
|
+
private readonly containerParent?;
|
|
9
|
+
constructor(element: ElementRef, containerParent?: CommandContainer);
|
|
10
|
+
isHorizontalContainer(): boolean;
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
}
|
|
@@ -12,15 +12,13 @@ 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/
|
|
16
|
-
export * from "./commands/group/
|
|
17
|
-
export * from "./commands/group/
|
|
18
|
-
export * from "./commands/group/popup-menu.component";
|
|
19
|
-
export * from "./commands/group/
|
|
20
|
-
export * from "./commands/group/
|
|
21
|
-
export * from "./commands/group/
|
|
22
|
-
export * from "./commands/group/command-group-menu-renderer/command-group-menu-renderer.component";
|
|
23
|
-
export * from "./commands/group/command-group-renderer/command-group-renderer.component";
|
|
15
|
+
export * from "./commands/group/command-container";
|
|
16
|
+
export * from "./commands/group/popup-aware.component";
|
|
17
|
+
export * from "./commands/group/popup-container";
|
|
18
|
+
export * from "./commands/group/popup-menu/abstract-popup-menu.component";
|
|
19
|
+
export * from "./commands/group/popup-menu/more-menu.component";
|
|
20
|
+
export * from "./commands/group/popup-menu/popup-menu.component";
|
|
21
|
+
export * from "./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component";
|
|
24
22
|
export * from "./commands/group/tool-bar/tool-bar.component";
|
|
25
23
|
export * from "./focus-container/focus-container.component";
|
|
26
24
|
export * from "./forms/abstract-input.component";
|
package/package.json
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, Input, QueryList, ViewChildren } from '@angular/core';
|
|
2
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
4
|
-
import { CommandGroup } from './command-group';
|
|
5
|
-
export class AbstractPopupMenuComponent extends DisposableComponent {
|
|
6
|
-
constructor(group) {
|
|
7
|
-
super();
|
|
8
|
-
this.group = group;
|
|
9
|
-
}
|
|
10
|
-
get xPosition() {
|
|
11
|
-
return this.group.xPosition;
|
|
12
|
-
}
|
|
13
|
-
set xPosition(position) {
|
|
14
|
-
this.group.xPosition = position;
|
|
15
|
-
}
|
|
16
|
-
get yPosition() {
|
|
17
|
-
return this.group.yPosition;
|
|
18
|
-
}
|
|
19
|
-
set yPosition(position) {
|
|
20
|
-
this.group.yPosition = position;
|
|
21
|
-
}
|
|
22
|
-
ngAfterContentInit() {
|
|
23
|
-
this.group.initialise();
|
|
24
|
-
}
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
}
|
|
27
|
-
// @Trace()
|
|
28
|
-
closeMenu() {
|
|
29
|
-
this.triggers.forEach(trigger => {
|
|
30
|
-
if (trigger.menuOpen) {
|
|
31
|
-
trigger.closeMenu();
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
AbstractPopupMenuComponent.decorators = [
|
|
37
|
-
{ type: Component, args: [{
|
|
38
|
-
selector: 'aup-abstract-popup-menu-component',
|
|
39
|
-
template: ''
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
AbstractPopupMenuComponent.ctorParameters = () => [
|
|
43
|
-
{ type: CommandGroup }
|
|
44
|
-
];
|
|
45
|
-
AbstractPopupMenuComponent.propDecorators = {
|
|
46
|
-
xPosition: [{ type: Input }],
|
|
47
|
-
yPosition: [{ type: Input }],
|
|
48
|
-
triggers: [{ type: ViewChildren, args: [MatMenuTrigger,] }]
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=abstract-popup-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-popup-menu.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/abstract-popup-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,KAAK,EAAU,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C,MAAM,OAAO,0BAA2B,SAAQ,mBAAmB;IAsBjE,YAAqB,KAAmB;QACtC,KAAK,EAAE,CAAC;QADW,UAAK,GAAL,KAAK,CAAc;IAExC,CAAC;IAtBD,IACI,SAAS;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;IAC9B,CAAC;IACD,IAAI,SAAS,CAAC,QAAQ;QACpB,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IAClC,CAAC;IAED,IACI,SAAS;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;IAC9B,CAAC;IACD,IAAI,SAAS,CAAC,QAAQ;QACpB,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IAClC,CAAC;IAUD,kBAAkB;QAChB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAC1B,CAAC;IAED,QAAQ;IACR,CAAC;IAED,WAAW;IACX,SAAS;QACP,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC9B,IAAI,OAAO,CAAC,QAAQ,EAAE;gBACpB,OAAO,CAAC,SAAS,EAAE,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;;YA5CF,SAAS,SAAC;gBACT,QAAQ,EAAE,mCAAmC;gBAC7C,QAAQ,EAAC,EAAE;aACZ;;;YALQ,YAAY;;;wBAQlB,KAAK;wBAQL,KAAK;uBASL,YAAY,SAAC,cAAc","sourcesContent":["import { AfterContentInit, Component, Input, OnInit, QueryList, ViewChildren } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\nimport { Trace } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandGroup } from './command-group';\n\n@Component({\n selector: 'aup-abstract-popup-menu-component',\n template:''\n})\nexport class AbstractPopupMenuComponent extends DisposableComponent implements OnInit, AfterContentInit {\n\n @Input()\n get xPosition(): 'before' | 'after' {\n return this.group.xPosition;\n }\n set xPosition(position) {\n this.group.xPosition = position;\n }\n\n @Input()\n get yPosition(): 'above' | 'below' {\n return this.group.yPosition;\n }\n set yPosition(position) {\n this.group.yPosition = position;\n }\n\n\n @ViewChildren(MatMenuTrigger)\n triggers: QueryList<MatMenuTrigger>;\n\n constructor(readonly group: CommandGroup) {\n super();\n }\n\n ngAfterContentInit(): void {\n this.group.initialise();\n }\n\n ngOnInit(): void {\n }\n\n // @Trace()\n closeMenu() {\n this.triggers.forEach(trigger => {\n if (trigger.menuOpen) {\n trigger.closeMenu();\n }\n });\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AbstractPopupMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../disposable-component","name":"DisposableComponent","line":10,"character":48},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"aup-abstract-popup-menu-component","template":""}]}],"members":{"xPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"yPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":29,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuTrigger","line":29,"character":16}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./command-group","name":"CommandGroup","line":32,"character":30}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"closeMenu":[{"__symbolic":"method"}]}}}}]
|
package/esm2015/lib/components/commands/group/abstract-popup-menu.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-popup-menu.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/abstract-popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input, SkipSelf } from '@angular/core';
|
|
3
|
-
import { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
4
|
-
import { CommandFace } from '../../command-face';
|
|
5
|
-
import { CommandGroup } from '../command-group';
|
|
6
|
-
export class CommandGroupComponent extends CommandGroup {
|
|
7
|
-
constructor(parent) {
|
|
8
|
-
super(parent);
|
|
9
|
-
this.parent = parent;
|
|
10
|
-
this.xPosition = 'after';
|
|
11
|
-
this.yPosition = 'below';
|
|
12
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
13
|
-
this.faceListModel = chain(this.faceModel).mapToList(v => [v]);
|
|
14
|
-
this.parent.registerGroup(this, this.faceListModel);
|
|
15
|
-
when(this.faceListModel).changes(() => this.notifyChanged());
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
CommandGroupComponent.decorators = [
|
|
19
|
-
{ type: Component, args: [{
|
|
20
|
-
selector: 'aup-command-group',
|
|
21
|
-
template: '',
|
|
22
|
-
providers: [
|
|
23
|
-
{ provide: CommandGroup, useExisting: CommandGroupComponent }
|
|
24
|
-
]
|
|
25
|
-
},] }
|
|
26
|
-
];
|
|
27
|
-
CommandGroupComponent.ctorParameters = () => [
|
|
28
|
-
{ type: CommandGroup, decorators: [{ type: SkipSelf }] }
|
|
29
|
-
];
|
|
30
|
-
CommandGroupComponent.propDecorators = {
|
|
31
|
-
faceModel: [{ type: Input }],
|
|
32
|
-
face: [{ type: Input }],
|
|
33
|
-
xPosition: [{ type: Input }],
|
|
34
|
-
yPosition: [{ type: Input }]
|
|
35
|
-
};
|
|
36
|
-
__decorate([
|
|
37
|
-
TrackExternal(),
|
|
38
|
-
__metadata("design:type", ValueModel)
|
|
39
|
-
], CommandGroupComponent.prototype, "faceModel", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
StoreInValueModel('faceModel'),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], CommandGroupComponent.prototype, "face", void 0);
|
|
44
|
-
//# sourceMappingURL=command-group.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group/command-group.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAa,iBAAiB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUhD,MAAM,OAAO,qBAAsB,SAAQ,YAAY;IAgBrD,YAAiC,MAAoB;QACnD,KAAK,CAAC,MAAM,CAAC,CAAC;QADiB,WAAM,GAAN,MAAM,CAAc;QALrD,cAAS,GAAuB,OAAO,CAAC;QAGxC,cAAS,GAAsB,OAAO,CAAC;QAIrC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACzF,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;IAC/D,CAAC;;;YA7BF,SAAS,SAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,QAAQ,EAAE,EAAE;gBACZ,SAAS,EAAE;oBACT,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,qBAAqB,EAAE;iBAC9D;aACF;;;YATQ,YAAY,uBA0BN,QAAQ;;;wBAdpB,KAAK;mBAKL,KAAK;wBAGL,KAAK;wBAGL,KAAK;;AAVN;IADU,aAAa,EAAE;8BACd,UAAU;wDAAc;AAKnC;IADU,iBAAiB,CAAC,WAAW,CAAC;;mDACtB","sourcesContent":["import { Component, Input, SkipSelf } from '@angular/core';\nimport { Dsl, ListModel, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { CommandFace } from '../../command-face';\nimport { CommandGroup } from '../command-group';\n\n\n@Component({\n selector: 'aup-command-group',\n template: '',\n providers: [\n { provide: CommandGroup, useExisting: CommandGroupComponent }\n ]\n})\nexport class CommandGroupComponent extends CommandGroup {\n\n @Input() @TrackExternal()\n faceModel: ValueModel<CommandFace>;\n\n readonly faceListModel: ListModel<CommandFace>;\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n @Input()\n xPosition: 'before' | 'after' = 'after';\n\n @Input()\n yPosition: 'above' | 'below' = 'below';\n\n constructor(@SkipSelf() readonly parent: CommandGroup) {\n super(parent);\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.faceListModel = chain(this.faceModel).mapToList(v => [v]);\n this.parent.registerGroup(this, this.faceListModel);\n when(this.faceListModel).changes(() => this.notifyChanged());\n }\n}\n\n\n"]}
|
package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroupComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../command-group","name":"CommandGroup","line":13,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"aup-command-group","template":"","providers":[{"provide":{"__symbolic":"reference","module":"../command-group","name":"CommandGroup","line":10,"character":15},"useExisting":{"__symbolic":"reference","name":"CommandGroupComponent"}}]}]}],"members":{"faceModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":15,"character":12}}]}],"face":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":20,"character":12},"arguments":["faceModel"]}]}],"xPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"yPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":29,"character":15}}]],"parameters":[{"__symbolic":"reference","module":"../command-group","name":"CommandGroup","line":29,"character":43}]}]}}}}]
|
package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group/command-group.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, EventEmitter, Input, Optional, Output, QueryList, SkipSelf, ViewChild, ViewChildren } from '@angular/core';
|
|
3
|
-
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
5
|
-
import { DisposableComponent } from '../../../disposable-component';
|
|
6
|
-
import { TrackBy } from '../../../track-by';
|
|
7
|
-
import { ViewData } from '../view-data';
|
|
8
|
-
export class CommandGroupMenuRendererComponent extends DisposableComponent {
|
|
9
|
-
constructor(parent) {
|
|
10
|
-
super();
|
|
11
|
-
this.parent = parent;
|
|
12
|
-
this.groupViewDataModel = new MutableValueModel();
|
|
13
|
-
this.commandFired = new EventEmitter();
|
|
14
|
-
this.ViewData = ViewData;
|
|
15
|
-
this.TrackBy = TrackBy;
|
|
16
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
17
|
-
this.children = chain(this.groupViewDataModel).pluckList('children');
|
|
18
|
-
this.hasMixedIcons = chain(this.groupViewDataModel).pluck('hasMixedIcons');
|
|
19
|
-
}
|
|
20
|
-
executeCommand(data) {
|
|
21
|
-
ViewData.getCommand(data).execute().finally(() => {
|
|
22
|
-
this.commandFired.emit();
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
isEnabled(data) {
|
|
26
|
-
return ViewData.getCommand(data).enabled.value;
|
|
27
|
-
}
|
|
28
|
-
// @Trace()
|
|
29
|
-
onCommandFired() {
|
|
30
|
-
this.commandFired.emit();
|
|
31
|
-
this.triggers.forEach(trigger => {
|
|
32
|
-
if (trigger.menuOpen) {
|
|
33
|
-
trigger.closeMenu();
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
CommandGroupMenuRendererComponent.decorators = [
|
|
39
|
-
{ type: Component, args: [{
|
|
40
|
-
selector: 'aup-command-group-menu',
|
|
41
|
-
template: "<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n (click)=\"executeCommand(data)\"\n [disabled]=\"!isEnabled(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n matMenuTrigger\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"
|
|
42
|
-
},] }
|
|
43
|
-
];
|
|
44
|
-
CommandGroupMenuRendererComponent.ctorParameters = () => [
|
|
45
|
-
{ type: CommandGroupMenuRendererComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
|
|
46
|
-
];
|
|
47
|
-
CommandGroupMenuRendererComponent.propDecorators = {
|
|
48
|
-
menuComponent: [{ type: ViewChild, args: ['menu', { static: true },] }],
|
|
49
|
-
groupViewData: [{ type: Input }],
|
|
50
|
-
commandFired: [{ type: Output }],
|
|
51
|
-
triggers: [{ type: ViewChildren, args: [MatMenuTrigger,] }]
|
|
52
|
-
};
|
|
53
|
-
__decorate([
|
|
54
|
-
StoreInValueModel('groupViewDataModel'),
|
|
55
|
-
__metadata("design:type", ViewData.GroupData)
|
|
56
|
-
], CommandGroupMenuRendererComponent.prototype, "groupViewData", void 0);
|
|
57
|
-
//# sourceMappingURL=command-group-menu-renderer.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-menu-renderer.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAEL,GAAG,EAEH,iBAAiB,EACjB,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAMxC,MAAM,OAAO,iCAAkC,SAAQ,mBAAmB;IAyBxE,YAA6C,MAA0C;QACrF,KAAK,EAAE,CAAC;QADmC,WAAM,GAAN,MAAM,CAAoC;QApBtE,uBAAkB,GAAG,IAAI,iBAAiB,EAAsB,CAAC;QAMlF,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;QASzB,aAAQ,GAAG,QAAQ,CAAC;QAG7B,YAAO,GAAG,OAAO,CAAC;QAIhB,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACzF,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACrE,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7E,CAAC;IAED,cAAc,CAAC,IAAkB;QAC/B,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;YAC/C,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,SAAS,CAAC,IAAkB;QAC1B,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACjD,CAAC;IAED,WAAW;IACX,cAAc;QACZ,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC9B,IAAI,OAAO,CAAC,QAAQ,EAAE;gBACpB,OAAO,CAAC,SAAS,EAAE,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;;YAtDF,SAAS,SAAC;gBACT,QAAQ,EAAE,wBAAwB;gBAClC,8wCAA2D;aAC5D;;;YA0BuD,iCAAiC,uBAA1E,QAAQ,YAAI,QAAQ;;;4BAvBhC,SAAS,SAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;4BAKlC,KAAK;2BAGL,MAAM;uBAGN,YAAY,SAAC,cAAc;;AAL5B;IADU,iBAAiB,CAAC,oBAAoB,CAAC;8BAClC,QAAQ,CAAC,SAAS;wEAAC","sourcesContent":["import {\n Component,\n EventEmitter,\n Input,\n Optional,\n Output,\n QueryList,\n SkipSelf,\n ViewChild,\n ViewChildren\n} from '@angular/core';\nimport { MatMenu, MatMenuTrigger } from '@angular/material/menu';\nimport {\n Command,\n Dsl,\n ListModelChain,\n MutableValueModel,\n StoreInValueModel,\n Trace,\n ValueModelChain\n} from '@coolon/pectin';\nimport { DisposableComponent } from '../../../disposable-component';\nimport { TrackBy } from '../../../track-by';\nimport { Registration } from '../registration';\nimport { ViewData } from '../view-data';\n\n@Component({\n selector: 'aup-command-group-menu',\n templateUrl: './command-group-menu-renderer.component.html'\n})\nexport class CommandGroupMenuRendererComponent extends DisposableComponent {\n\n @ViewChild('menu', { static: true })\n menuComponent: MatMenu;\n\n private readonly groupViewDataModel = new MutableValueModel<ViewData.GroupData>();\n\n @Input() @StoreInValueModel('groupViewDataModel')\n groupViewData: ViewData.GroupData;\n\n @Output()\n commandFired = new EventEmitter();\n\n @ViewChildren(MatMenuTrigger)\n triggers: QueryList<MatMenuTrigger>;\n\n readonly children: ListModelChain<Registration>;\n\n readonly hasMixedIcons: ValueModelChain<boolean>;\n\n readonly ViewData = ViewData;\n readonly commandProxy: Command<unknown>;\n\n TrackBy = TrackBy;\n\n constructor(@Optional() @SkipSelf() readonly parent?: CommandGroupMenuRendererComponent) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.children = chain(this.groupViewDataModel).pluckList('children');\n this.hasMixedIcons = chain(this.groupViewDataModel).pluck('hasMixedIcons');\n }\n\n executeCommand(data: Registration) {\n ViewData.getCommand(data).execute().finally(() => {\n this.commandFired.emit();\n });\n }\n\n isEnabled(data: Registration) {\n return ViewData.getCommand(data).enabled.value;\n }\n\n // @Trace()\n onCommandFired() {\n this.commandFired.emit();\n this.triggers.forEach(trigger => {\n if (trigger.menuOpen) {\n trigger.closeMenu();\n }\n });\n }\n}\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroupMenuRendererComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../disposable-component","name":"DisposableComponent","line":30,"character":55},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":26,"character":1},"arguments":[{"selector":"aup-command-group-menu","template":"<mat-menu #menu [xPosition]=\"groupViewData.xPosition\" [yPosition]=\"groupViewData.yPosition\">\n <ng-container *ngFor=\"let data of children.value; trackBy: TrackBy.byIndex\" >\n <button *ngIf=\"ViewData.isCommand(data)\"\n (click)=\"executeCommand(data)\"\n [disabled]=\"!isEnabled(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n mat-menu-item>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n\n <ng-container *ngIf=\"ViewData.isGroup(data)\">\n <button mat-menu-item\n matMenuTrigger\n [matMenuTriggerFor]=\"innerPanel.menuComponent\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"\n [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n <aup-command-group-menu #innerPanel\n [groupViewData]=\"ViewData.asGroup(data)\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\"></mat-divider>\n\n </ng-container>\n</mat-menu>\n"}]}],"members":{"menuComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":32,"character":3},"arguments":["menu",{"static":true}]}]}],"groupViewData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":37,"character":12},"arguments":["groupViewDataModel"]}]}],"commandFired":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":43,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuTrigger","line":43,"character":16}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":55,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":55,"character":27}}]],"parameters":[{"__symbolic":"reference","name":"CommandGroupMenuRendererComponent"}]}],"executeCommand":[{"__symbolic":"method"}],"isEnabled":[{"__symbolic":"method"}],"onCommandFired":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-menu-renderer.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, EventEmitter, HostBinding, Input, Output, QueryList, ViewChildren } from '@angular/core';
|
|
3
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
|
|
5
|
-
import { DisposableComponent } from '../../../disposable-component';
|
|
6
|
-
import { ViewData } from '../view-data';
|
|
7
|
-
import { TrackBy } from '../../../track-by';
|
|
8
|
-
export class CommandGroupRendererComponent extends DisposableComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.renderRootNode = true;
|
|
12
|
-
this.commandFired = new EventEmitter();
|
|
13
|
-
this.ViewData = ViewData;
|
|
14
|
-
this.TrackBy = TrackBy;
|
|
15
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
16
|
-
this.childViewDataModels = chain(this.groupViewDataModel)
|
|
17
|
-
.pluckList('children');
|
|
18
|
-
}
|
|
19
|
-
// @Trace()
|
|
20
|
-
onCommandFired() {
|
|
21
|
-
this.commandFired.emit();
|
|
22
|
-
this.triggers.forEach(trigger => {
|
|
23
|
-
if (trigger.menuOpen) {
|
|
24
|
-
trigger.closeMenu();
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
CommandGroupRendererComponent.decorators = [
|
|
30
|
-
{ type: Component, args: [{
|
|
31
|
-
selector: 'aup-command-group-renderer',
|
|
32
|
-
template: "<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button matMenuTrigger\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button matMenuTrigger\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button matMenuTrigger\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button matMenuTrigger\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n",
|
|
33
|
-
styles: [":host{align-items:center;display:inline-flex;flex-direction:row}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]
|
|
34
|
-
},] }
|
|
35
|
-
];
|
|
36
|
-
CommandGroupRendererComponent.ctorParameters = () => [];
|
|
37
|
-
CommandGroupRendererComponent.propDecorators = {
|
|
38
|
-
groupViewDataModel: [{ type: Input }],
|
|
39
|
-
groupViewData: [{ type: Input }],
|
|
40
|
-
renderRootNode: [{ type: Input }, { type: HostBinding, args: ['class.render-root',] }],
|
|
41
|
-
commandFired: [{ type: Output }],
|
|
42
|
-
triggers: [{ type: ViewChildren, args: [MatMenuTrigger,] }]
|
|
43
|
-
};
|
|
44
|
-
__decorate([
|
|
45
|
-
TrackExternal(),
|
|
46
|
-
__metadata("design:type", ValueModel)
|
|
47
|
-
], CommandGroupRendererComponent.prototype, "groupViewDataModel", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
StoreInValueModel('groupViewDataModel'),
|
|
50
|
-
__metadata("design:type", ViewData.GroupData)
|
|
51
|
-
], CommandGroupRendererComponent.prototype, "groupViewData", void 0);
|
|
52
|
-
//# sourceMappingURL=command-group-renderer.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-renderer.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,GAAG,EAAkB,iBAAiB,EAAS,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,OAAO,6BAA8B,SAAQ,mBAAmB;IAyBpE;QACE,KAAK,EAAE,CAAC;QAhBV,mBAAc,GAAG,IAAI,CAAC;QAGtB,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;QAEzB,aAAQ,GAAG,QAAQ,CAAC;QAI7B,YAAO,GAAG,OAAO,CAAA;QAQf,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACzF,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;aACtD,SAAS,CAAC,UAAU,CAAC,CAAA;IAC1B,CAAC;IAED,WAAW;IACX,cAAc;QACZ,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC9B,IAAI,OAAO,CAAC,QAAQ,EAAE;gBACpB,OAAO,CAAC,SAAS,EAAE,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;;YA7CF,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,qxJAAsD;;aAEvD;;;;iCAGE,KAAK;4BAGL,KAAK;6BAGL,KAAK,YACL,WAAW,SAAC,mBAAmB;2BAG/B,MAAM;uBASN,YAAY,SAAC,cAAc;;AAlB5B;IADU,aAAa,EAAE;8BACL,UAAU;yEAAqB;AAGnD;IADU,iBAAiB,CAAC,oBAAoB,CAAC;8BAClC,QAAQ,CAAC,SAAS;oEAAC","sourcesContent":["import { Component, EventEmitter, HostBinding, Input, Output, QueryList, ViewChildren } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\nimport { Dsl, ListModelChain, StoreInValueModel, Trace, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../disposable-component';\nimport { ViewData } from '../view-data';\nimport { TrackBy } from '../../../track-by';\n\n@Component({\n selector: 'aup-command-group-renderer',\n templateUrl: './command-group-renderer.component.html',\n styleUrls: ['./command-group-renderer.component.scss']\n})\nexport class CommandGroupRendererComponent extends DisposableComponent {\n\n @Input() @TrackExternal()\n groupViewDataModel: ValueModel<ViewData.GroupData>;\n\n @Input() @StoreInValueModel('groupViewDataModel')\n groupViewData: ViewData.GroupData;\n\n @Input()\n @HostBinding('class.render-root')\n renderRootNode = true;\n\n @Output()\n commandFired = new EventEmitter();\n\n readonly ViewData = ViewData;\n\n readonly childViewDataModels: ListModelChain<ViewData>;\n\n TrackBy = TrackBy\n\n @ViewChildren(MatMenuTrigger)\n triggers: QueryList<MatMenuTrigger>;\n\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.childViewDataModels = chain(this.groupViewDataModel)\n .pluckList('children')\n }\n\n // @Trace()\n onCommandFired() {\n this.commandFired.emit();\n this.triggers.forEach(trigger => {\n if (trigger.menuOpen) {\n trigger.closeMenu();\n }\n });\n }\n\n}\n\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"CommandGroupRendererComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../disposable-component","name":"DisposableComponent","line":12,"character":51},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"aup-command-group-renderer","template":"<ng-template #groupTemplate let-group>\n\n <ng-container *ngIf=\"ViewData.hasText(group)\" [ngSwitch]=\"ViewData.getStyle(group)\">\n <ng-container *ngSwitchCase=\"'stroked'\">\n <button matMenuTrigger\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'raised'\">\n <button matMenuTrigger\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button matMenuTrigger\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf=\"!ViewData.hasText(group)\">\n <button matMenuTrigger\n mat-icon-button\n [matMenuTriggerFor]=\"subMenu.menuComponent\"\n [matTooltip]=\"ViewData.getTooltip(group)\"\n [color]=\"ViewData.getColor(group)\"\n >\n <aup-command-face [faces]=\"ViewData.getFaces(group)\"></aup-command-face>\n </button>\n <aup-command-group-menu #subMenu\n [groupViewData]=\"group\"\n (commandFired)=\"onCommandFired()\"></aup-command-group-menu>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #commandTemplate let-data>\n\n <ng-container *ngIf=\"ViewData.hasText(data)\" [ngSwitch]=\"ViewData.getStyle(data)\">\n <button *ngSwitchCase=\"'raised'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-raised-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchCase=\"'stroked'\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-stroked-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n <button *ngSwitchDefault\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n </ng-container>\n\n <button *ngIf=\"!ViewData.hasText(data)\"\n [pectinCommand]=\"ViewData.getCommand(data)\"\n [matTooltip]=\"ViewData.getTooltip(data)\"\n [color]=\"ViewData.getColor(data)\"\n mat-icon-button>\n <aup-command-face [faces]=\"ViewData.getFaces(data)\"></aup-command-face>\n </button>\n\n</ng-template>\n\n\n<ng-template *ngIf=\"renderRootNode\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: groupViewDataModel.value }\">\n</ng-template>\n\n<ng-container *ngIf=\"!renderRootNode\">\n <ng-container *ngFor=\"let data of this.childViewDataModels.value; trackBy: TrackBy.byIndex\">\n <ng-template *ngIf=\"ViewData.isGroup(data)\"\n [ngTemplateOutlet]=\"groupTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n <ng-template *ngIf=\"ViewData.isCommand(data)\"\n [ngTemplateOutlet]=\"commandTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\">\n </ng-template>\n\n <mat-divider *ngIf=\"ViewData.isSeparator(data)\" [vertical]=\"true\"></mat-divider>\n </ng-container>\n\n</ng-container>\n","styles":[":host{align-items:center;display:inline-flex;flex-direction:row}:host:not(.render-root) mat-divider{-ms-grid-row-align:stretch;align-self:stretch;margin:4px 0}:host:not(.render-root)>*+*{margin-left:8px}:host span.flex{flex:1}"]}]}],"members":{"groupViewDataModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":14,"character":12}}]}],"groupViewData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":17,"character":12},"arguments":["groupViewDataModel"]}]}],"renderRootNode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":21,"character":3},"arguments":["class.render-root"]}]}],"commandFired":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":24,"character":3}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":33,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuTrigger","line":33,"character":16}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"onCommandFired":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-renderer.component.ngfactory.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-group-renderer.component.scss.shim.ngstyle.js","sourceRoot":"","sources":["../../../../../../../../../libs/angular-ui-powerups/src/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|