@coolon/angular-ui-powerups 2.0.0-alpha.34 → 2.0.0-alpha.36
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/assets/commands.scss +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +808 -313
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +45 -42
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +43 -40
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +48 -0
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -0
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js +21 -20
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face.js +39 -5
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/commands/flex.component.js +30 -0
- package/esm2015/lib/components/commands/flex.component.js.map +1 -0
- package/esm2015/lib/components/commands/flex.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/flex.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js +47 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +55 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +39 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group.js +112 -0
- package/esm2015/lib/components/commands/group/command-group.js.map +1 -0
- package/esm2015/lib/components/commands/group/command-group.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/more-menu.component.js +55 -0
- package/esm2015/lib/components/commands/group/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.js +65 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/registration.js +58 -0
- package/esm2015/lib/components/commands/group/registration.js.map +1 -0
- package/esm2015/lib/components/commands/group/registration.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js +55 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/group/view-data.js +104 -0
- package/esm2015/lib/components/commands/group/view-data.js.map +1 -0
- package/esm2015/lib/components/commands/group/view-data.metadata.json +1 -0
- package/esm2015/lib/components/commands/separator.component.js +35 -0
- package/esm2015/lib/components/commands/separator.component.js.map +1 -0
- package/esm2015/lib/components/commands/separator.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/separator.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/components.module.js +25 -29
- 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/index.js +13 -7
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +4 -2
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +12 -21
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
- package/esm2015/lib/components/track-by.js +5 -0
- package/esm2015/lib/components/track-by.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +4 -3
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/place.module.js +3 -3
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +43 -40
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +1 -1
- package/esm5/lib/components/commands/command/command.component.js +51 -0
- package/esm5/lib/components/commands/command/command.component.js.map +1 -0
- package/esm5/lib/components/commands/command/command.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js +21 -20
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -1
- package/esm5/lib/components/commands/command-face.js +43 -5
- package/esm5/lib/components/commands/command-face.js.map +1 -1
- package/esm5/lib/components/commands/flex.component.js +33 -0
- package/esm5/lib/components/commands/flex.component.js.map +1 -0
- package/esm5/lib/components/commands/flex.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group/command-group.component.js +51 -0
- package/esm5/lib/components/commands/group/command-group/command-group.component.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group/command-group.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js +59 -0
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js +42 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group-renderer/command-group-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/group/command-group.js +134 -0
- package/esm5/lib/components/commands/group/command-group.js.map +1 -0
- package/esm5/lib/components/commands/group/more-menu.component.js +58 -0
- package/esm5/lib/components/commands/group/more-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/group/more-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/popup-menu.component.js +68 -0
- package/esm5/lib/components/commands/group/popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/group/popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/registration.js +80 -0
- package/esm5/lib/components/commands/group/registration.js.map +1 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js +58 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.js.map +1 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/group/tool-bar/tool-bar.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/group/view-data.js +131 -0
- package/esm5/lib/components/commands/group/view-data.js.map +1 -0
- package/esm5/lib/components/commands/separator.component.js +37 -0
- package/esm5/lib/components/commands/separator.component.js.map +1 -0
- package/esm5/lib/components/commands/separator.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/components.module.js +25 -29
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/index.js +13 -7
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +4 -2
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +5 -8
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm5/lib/components/track-by.js +5 -0
- package/esm5/lib/components/track-by.js.map +1 -0
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +4 -3
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js +2 -2
- package/esm5/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/place.module.js +3 -3
- package/esm5/lib/place/place.module.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +660 -281
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +748 -257
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +18 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +11 -6
- package/lib/components/commands/command-face.d.ts +17 -2
- package/lib/components/commands/flex.component.d.ts +11 -0
- package/lib/components/commands/group/command-group/command-group.component.d.ts +11 -0
- package/lib/components/commands/group/command-group-menu-renderer/command-group-menu-renderer.component.d.ts +21 -0
- package/lib/components/commands/group/command-group-renderer/command-group-renderer.component.d.ts +13 -0
- package/lib/components/commands/group/command-group.d.ts +44 -0
- package/lib/components/commands/group/more-menu.component.d.ts +14 -0
- package/lib/components/commands/group/popup-menu.component.d.ts +17 -0
- package/lib/components/commands/group/registration.d.ts +32 -0
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +13 -0
- package/lib/components/commands/group/view-data.d.ts +40 -0
- package/lib/components/commands/separator.component.d.ts +12 -0
- package/lib/components/index.d.ts +13 -7
- package/lib/components/table/table-model.d.ts +1 -1
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +2 -1
- package/lib/components/track-by.d.ts +3 -0
- package/lib/place/components/abstract-place-navigation.component.d.ts +2 -2
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/components/commands/command-bar.component.js +0 -51
- package/esm2015/lib/components/commands/command-bar.component.js.map +0 -1
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/command-container.js +0 -20
- package/esm2015/lib/components/commands/command-container.js.map +0 -1
- package/esm2015/lib/components/commands/command-container.metadata.json +0 -1
- package/esm2015/lib/components/commands/command.component.js +0 -38
- package/esm2015/lib/components/commands/command.component.js.map +0 -1
- package/esm2015/lib/components/commands/command.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/command.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -57
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +0 -40
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +0 -49
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -62
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/esm5/lib/components/commands/command-bar.component.js +0 -31
- package/esm5/lib/components/commands/command-bar.component.js.map +0 -1
- package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/command-container.js +0 -30
- package/esm5/lib/components/commands/command-container.js.map +0 -1
- package/esm5/lib/components/commands/command.component.js +0 -41
- package/esm5/lib/components/commands/command.component.js.map +0 -1
- package/esm5/lib/components/commands/command.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +0 -64
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js +0 -35
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +0 -45
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +0 -66
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +0 -1
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +0 -1
- package/lib/components/commands/command-bar.component.d.ts +0 -10
- package/lib/components/commands/command-container.d.ts +0 -15
- package/lib/components/commands/command.component.d.ts +0 -15
- package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +0 -18
- package/lib/components/commands/popup-menu/more-menu.component.d.ts +0 -9
- package/lib/components/commands/popup-menu/popup-menu.component.d.ts +0 -14
- package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -21
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core';
|
|
3
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { CommandContainer } from '../command-container';
|
|
5
|
-
import { PopupMenuRendererComponent } from '../popup-menu-renderer/popup-menu-renderer.component';
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
let AbstractPopupMenuComponent = class AbstractPopupMenuComponent extends CommandContainer {
|
|
10
|
-
constructor(cdr) {
|
|
11
|
-
super();
|
|
12
|
-
this.cdr = cdr;
|
|
13
|
-
this.xPosition = 'after';
|
|
14
|
-
this.yPosition = 'below';
|
|
15
|
-
}
|
|
16
|
-
ngAfterViewInit() {
|
|
17
|
-
this.cdr.detectChanges();
|
|
18
|
-
}
|
|
19
|
-
get matMenuComponent() {
|
|
20
|
-
var _a;
|
|
21
|
-
return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
|
|
22
|
-
}
|
|
23
|
-
closeMenu() {
|
|
24
|
-
this.menuTrigger.closeMenu();
|
|
25
|
-
}
|
|
26
|
-
getButtonColor(registration) {
|
|
27
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
AbstractPopupMenuComponent.ctorParameters = () => [
|
|
31
|
-
{ type: ChangeDetectorRef }
|
|
32
|
-
];
|
|
33
|
-
__decorate([
|
|
34
|
-
Input(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Input(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
ViewChild(PopupMenuRendererComponent),
|
|
43
|
-
__metadata("design:type", PopupMenuRendererComponent)
|
|
44
|
-
], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
ViewChild(MatMenuTrigger),
|
|
47
|
-
__metadata("design:type", MatMenuTrigger)
|
|
48
|
-
], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
|
|
49
|
-
AbstractPopupMenuComponent = __decorate([
|
|
50
|
-
Component({
|
|
51
|
-
selector: 'aup-abstract-popup-menu',
|
|
52
|
-
template: ''
|
|
53
|
-
}),
|
|
54
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
55
|
-
], AbstractPopupMenuComponent);
|
|
56
|
-
export { AbstractPopupMenuComponent };
|
|
57
|
-
//# sourceMappingURL=abstract-popup-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-popup-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/abstract-popup-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAW,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAElG;;GAEG;AAKH,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,gBAAgB;IAc9D,YAA6B,GAAsB;QACjD,KAAK,EAAE,CAAC;QADmB,QAAG,GAAH,GAAG,CAAmB;QAXnD,cAAS,GAAuB,OAAO,CAAC;QAGxC,cAAS,GAAsB,OAAO,CAAC;IAUvC,CAAC;IAED,eAAe;QACb,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAA;IAC1B,CAAC;IAGD,IAAI,gBAAgB;;QAClB,aAAO,IAAI,CAAC,SAAS,0CAAE,OAAO,CAAC;IACjC,CAAC;IAED,SAAS;QACP,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;IAC/B,CAAC;IAED,cAAc,CAAC,YAA2C;QACxD,OAAO,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,CAAC;CAEF,CAAA;;YArBmC,iBAAiB;;AAXnD;IADC,KAAK,EAAE;;6DACgC;AAGxC;IADC,KAAK,EAAE;;6DAC+B;AAGvC;IADC,SAAS,CAAC,0BAA0B,CAAC;8BACnB,0BAA0B;6DAAC;AAG9C;IADC,SAAS,CAAC,cAAc,CAAC;8BACb,cAAc;+DAAC;AAZjB,0BAA0B;IAJtC,SAAS,CAAC;QACT,QAAQ,EAAE,yBAAyB;QACnC,QAAQ,EAAE,EAAE;KACb,CAAC;qCAekC,iBAAiB;GAdxC,0BAA0B,CAmCtC;SAnCY,0BAA0B","sourcesContent":["import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core';\nimport { MatMenu, MatMenuTrigger } from '@angular/material/menu';\n\nimport { Dsl, MutableValueModel, StoreInValueModel, ValueModelChain } from '@coolon/pectin';\nimport { CommandContainer } from '../command-container';\nimport { CommandFace } from '../command-face';\nimport { PopupMenuRendererComponent } from '../popup-menu-renderer/popup-menu-renderer.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-abstract-popup-menu',\n template: '',\n})\nexport class AbstractPopupMenuComponent extends CommandContainer implements AfterViewInit {\n\n @Input()\n xPosition: 'before' | 'after' = 'after';\n\n @Input()\n yPosition: 'above' | 'below' = 'below';\n\n @ViewChild(PopupMenuRendererComponent)\n private popupMenu: PopupMenuRendererComponent;\n\n @ViewChild(MatMenuTrigger)\n menuTrigger: MatMenuTrigger;\n\n constructor(private readonly cdr: ChangeDetectorRef) {\n super();\n }\n\n ngAfterViewInit(): void {\n this.cdr.detectChanges()\n }\n\n\n get matMenuComponent(): MatMenu {\n return this.popupMenu?.matMenu;\n }\n\n closeMenu() {\n this.menuTrigger.closeMenu();\n }\n\n getButtonColor(registration: CommandContainer.Registration) {\n return registration.faceAdapter.destructive ? 'warn' : undefined;\n }\n\n}\n"]}
|
package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AbstractPopupMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../command-container","name":"CommandContainer","line":15,"character":48},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"aup-abstract-popup-menu","template":""}]}],"members":{"xPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"yPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"popupMenu":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":23,"character":3},"arguments":[{"__symbolic":"reference","module":"../popup-menu-renderer/popup-menu-renderer.component","name":"PopupMenuRendererComponent","line":23,"character":13}]}]}],"menuTrigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":26,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuTrigger","line":26,"character":13}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":29,"character":36}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"closeMenu":[{"__symbolic":"method"}],"getButtonColor":[{"__symbolic":"method"}]}}}}]
|
package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-popup-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var MoreMenuComponent_1;
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
3
|
-
import { ChangeDetectorRef, Component, forwardRef, Input } from '@angular/core';
|
|
4
|
-
import { CommandContainer } from '../command-container';
|
|
5
|
-
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
let MoreMenuComponent = MoreMenuComponent_1 = class MoreMenuComponent extends AbstractPopupMenuComponent {
|
|
10
|
-
constructor(cdr) {
|
|
11
|
-
super(cdr);
|
|
12
|
-
this.xPosition = "before"; // this should be the default unless overriden by the user.
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
MoreMenuComponent.ctorParameters = () => [
|
|
16
|
-
{ type: ChangeDetectorRef }
|
|
17
|
-
];
|
|
18
|
-
__decorate([
|
|
19
|
-
Input(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
22
|
-
MoreMenuComponent = MoreMenuComponent_1 = __decorate([
|
|
23
|
-
Component({
|
|
24
|
-
selector: 'aup-more-menu',
|
|
25
|
-
template: `
|
|
26
|
-
<!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->
|
|
27
|
-
<button *ngIf="matMenuComponent" mat-icon-button [matMenuTriggerFor]="matMenuComponent" [matTooltip]="tooltip">
|
|
28
|
-
<mat-icon>more_vert</mat-icon>
|
|
29
|
-
</button>
|
|
30
|
-
<aup-popup-menu-renderer [commandRegistrations]="commandRegistrations"
|
|
31
|
-
[xPosition]="xPosition"
|
|
32
|
-
[yPosition]="yPosition"
|
|
33
|
-
(commandExecuted)="closeMenu()"></aup-popup-menu-renderer>
|
|
34
|
-
`,
|
|
35
|
-
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => MoreMenuComponent_1) }]
|
|
36
|
-
}),
|
|
37
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
38
|
-
], MoreMenuComponent);
|
|
39
|
-
export { MoreMenuComponent };
|
|
40
|
-
//# sourceMappingURL=more-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/more-menu.component.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AAeH,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,0BAA0B;IAK/D,YAAY,GAAsB;QAChC,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,2DAA2D;IACxF,CAAC;CAEF,CAAA;;YALkB,iBAAiB;;AAFlC;IADC,KAAK,EAAE;;kDACQ;AAHL,iBAAiB;IAd7B,SAAS,CAAC;QACT,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE;;;;;;;;;GAST;QACD,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,mBAAiB,CAAC,EAAE,CAAC;KAC7F,CAAC;qCAMiB,iBAAiB;GALvB,iBAAiB,CAU7B;SAVY,iBAAiB","sourcesContent":["import { ChangeDetectorRef, Component, forwardRef, Input } from '@angular/core';\nimport { CommandContainer } from '../command-container';\nimport { AbstractPopupMenuComponent } from './abstract-popup-menu.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-more-menu',\n template: `\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n `,\n providers: [{ provide: CommandContainer, useExisting: forwardRef(() => MoreMenuComponent) }]\n})\nexport class MoreMenuComponent extends AbstractPopupMenuComponent {\n\n @Input()\n tooltip: string;\n\n constructor(cdr: ChangeDetectorRef) {\n super(cdr);\n this.xPosition = \"before\"; // this should be the default unless overriden by the user.\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"MoreMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./abstract-popup-menu.component","name":"AbstractPopupMenuComponent","line":21,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"aup-more-menu","template":"\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ","providers":[{"provide":{"__symbolic":"reference","module":"../command-container","name":"CommandContainer","line":19,"character":25},"useExisting":{"__symbolic":"reference","name":"MoreMenuComponent"}}]}]}],"members":{"tooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":26,"character":19}]}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/more-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var PopupMenuComponent_1;
|
|
2
|
-
import { __decorate, __metadata } from "tslib";
|
|
3
|
-
import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core';
|
|
4
|
-
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
5
|
-
import { CommandContainer } from '../command-container';
|
|
6
|
-
import { CommandFace } from '../command-face';
|
|
7
|
-
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
let PopupMenuComponent = PopupMenuComponent_1 = class PopupMenuComponent extends AbstractPopupMenuComponent {
|
|
12
|
-
constructor(cdr) {
|
|
13
|
-
super(cdr);
|
|
14
|
-
this.faceModel = new MutableValueModel();
|
|
15
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
16
|
-
const faceAdapterModel = chain(this.faceModel).map(face => new CommandFace.Adapter(face));
|
|
17
|
-
this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
|
|
18
|
-
}
|
|
19
|
-
getTooltip() {
|
|
20
|
-
return this.faceTooltipModel.value;
|
|
21
|
-
}
|
|
22
|
-
ngOnInit() {
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
PopupMenuComponent.ctorParameters = () => [
|
|
26
|
-
{ type: ChangeDetectorRef }
|
|
27
|
-
];
|
|
28
|
-
__decorate([
|
|
29
|
-
Input(), StoreInValueModel('faceModel'),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], PopupMenuComponent.prototype, "face", void 0);
|
|
32
|
-
PopupMenuComponent = PopupMenuComponent_1 = __decorate([
|
|
33
|
-
Component({
|
|
34
|
-
selector: 'aup-popup-menu',
|
|
35
|
-
template: `
|
|
36
|
-
<!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->
|
|
37
|
-
<button *ngIf="matMenuComponent" mat-icon-button [matMenuTriggerFor]="matMenuComponent" [matTooltip]="getTooltip()">
|
|
38
|
-
<aup-command-face [face]="face"></aup-command-face>
|
|
39
|
-
</button>
|
|
40
|
-
<aup-popup-menu-renderer [commandRegistrations]="commandRegistrations" [yPosition]="yPosition"
|
|
41
|
-
[xPosition]="xPosition"
|
|
42
|
-
(commandExecuted)="closeMenu()"></aup-popup-menu-renderer>
|
|
43
|
-
`,
|
|
44
|
-
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => PopupMenuComponent_1) }]
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
47
|
-
], PopupMenuComponent);
|
|
48
|
-
export { PopupMenuComponent };
|
|
49
|
-
//# sourceMappingURL=popup-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/popup-menu.component.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAExF,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,iBAAiB,EAAmB,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AAeH,IAAa,kBAAkB,0BAA/B,MAAa,kBAAmB,SAAQ,0BAA0B;IAShE,YAAY,GAAsB;QAChC,KAAK,CAAC,GAAG,CAAC,CAAC;QARI,cAAS,GAAG,IAAI,iBAAiB,EAAe,CAAC;QAShE,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,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,QAAQ;IACR,CAAC;CAEF,CAAA;;YAdkB,iBAAiB;;AAJlC;IADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,WAAW,CAAC;;gDACtB;AALP,kBAAkB;IAd9B,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,QAAQ,EAAE;;;;;;;;GAQT;QAED,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,oBAAkB,CAAC,EAAE,CAAC;KAC9F,CAAC;qCAUiB,iBAAiB;GATvB,kBAAkB,CAuB9B;SAvBY,kBAAkB","sourcesContent":["import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core';\n\nimport { Dsl, MutableValueModel, StoreInValueModel, ValueModelChain } from '@coolon/pectin';\nimport { CommandContainer } from '../command-container';\nimport { CommandFace } from '../command-face';\nimport { AbstractPopupMenuComponent } from './abstract-popup-menu.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-popup-menu',\n template: `\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"getTooltip()\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\" [yPosition]=\"yPosition\"\n [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n `,\n styleUrls: [],\n providers: [{ provide: CommandContainer, useExisting: forwardRef(() => PopupMenuComponent) }]\n})\nexport class PopupMenuComponent extends AbstractPopupMenuComponent implements OnInit {\n\n private readonly faceModel = new MutableValueModel<CommandFace>();\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n private faceTooltipModel: ValueModelChain<string>;\n\n constructor(cdr: ChangeDetectorRef) {\n super(cdr);\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n const faceAdapterModel = chain(this.faceModel).map(face => new CommandFace.Adapter(face));\n this.faceTooltipModel = faceAdapterModel.pluck('tooltip');\n }\n\n getTooltip() {\n return this.faceTooltipModel.value;\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"PopupMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./abstract-popup-menu.component","name":"AbstractPopupMenuComponent","line":24,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"aup-popup-menu","template":"\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"getTooltip()\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\" [yPosition]=\"yPosition\"\n [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ","styleUrls":[],"providers":[{"provide":{"__symbolic":"reference","module":"../command-container","name":"CommandContainer","line":22,"character":25},"useExisting":{"__symbolic":"reference","name":"PopupMenuComponent"}}]}]}],"members":{"face":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":28,"character":12},"arguments":["faceModel"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":33,"character":19}]}],"getTooltip":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
3
|
-
import { MatMenu } from '@angular/material/menu';
|
|
4
|
-
import { Dsl, ListModel, TrackExternal } from '@coolon/pectin';
|
|
5
|
-
import { DisposableComponent } from '../../disposable-component';
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
let PopupMenuRendererComponent = class PopupMenuRendererComponent extends DisposableComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.xPosition = 'after';
|
|
13
|
-
this.yPosition = 'below';
|
|
14
|
-
this.commandExecuted = new EventEmitter();
|
|
15
|
-
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
16
|
-
const registrations = chain(this.commandRegistrations);
|
|
17
|
-
const iconCount = registrations.select(r => !!r.faceAdapter.icon).count();
|
|
18
|
-
this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
|
|
19
|
-
}
|
|
20
|
-
ngOnInit() {
|
|
21
|
-
}
|
|
22
|
-
getPopupMenuCommandFor(item) {
|
|
23
|
-
const { when } = Dsl.disposeWith(this);
|
|
24
|
-
when(item.command.busy).becomesFalsey(() => {
|
|
25
|
-
this.commandExecuted.emit();
|
|
26
|
-
});
|
|
27
|
-
return item.command;
|
|
28
|
-
}
|
|
29
|
-
getButtonColor(registration) {
|
|
30
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
__decorate([
|
|
34
|
-
Input(), TrackExternal(),
|
|
35
|
-
__metadata("design:type", ListModel)
|
|
36
|
-
], PopupMenuRendererComponent.prototype, "commandRegistrations", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Input(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], PopupMenuRendererComponent.prototype, "xPosition", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Input(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], PopupMenuRendererComponent.prototype, "yPosition", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Output(),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], PopupMenuRendererComponent.prototype, "commandExecuted", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
ViewChild(MatMenu),
|
|
51
|
-
__metadata("design:type", MatMenu)
|
|
52
|
-
], PopupMenuRendererComponent.prototype, "matMenu", void 0);
|
|
53
|
-
PopupMenuRendererComponent = __decorate([
|
|
54
|
-
Component({
|
|
55
|
-
selector: 'aup-popup-menu-renderer',
|
|
56
|
-
template: "<mat-menu [xPosition]=\"xPosition\" [yPosition]=\"yPosition\" >\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"getPopupMenuCommandFor(registration)\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n",
|
|
57
|
-
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:paramtypes", [])
|
|
60
|
-
], PopupMenuRendererComponent);
|
|
61
|
-
export { PopupMenuRendererComponent };
|
|
62
|
-
//# sourceMappingURL=popup-menu-renderer.component.js.map
|
package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu-renderer.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAmC,GAAG,EAAE,SAAS,EAAE,aAAa,EAAmB,MAAM,gBAAgB,CAAC;AACjH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE;;GAEG;AAMH,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,mBAAmB;IAoBjE;QACE,KAAK,EAAE,CAAC;QAfV,cAAS,GAAuB,OAAO,CAAC;QAGxC,cAAS,GAAsB,OAAO,CAAC;QAGvC,oBAAe,GAAG,IAAI,YAAY,EAAE,CAAC;QAUnC,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,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;QAC1E,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,CAC9B,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,EAC1B,SAAS,CAAC,YAAY,CAAC,aAAa,CAAC,MAAM,CAAC,CAC7C,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAED,QAAQ;IACR,CAAC;IAED,sBAAsB,CAAC,IAAmC;QACxD,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE;YACzC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,cAAc,CAAC,YAA2C;QACxD,OAAO,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,CAAC;CAEF,CAAA;AA3CC;IADC,KAAK,EAAE,EAAE,aAAa,EAAE;8BACH,SAAS;wEAAgC;AAG/D;IADC,KAAK,EAAE;;6DACgC;AAGxC;IADC,KAAK,EAAE;;6DAC+B;AAGvC;IADC,MAAM,EAAE;;mEAC4B;AAMrC;IADC,SAAS,CAAC,OAAO,CAAC;8BACV,OAAO;2DAAC;AAlBN,0BAA0B;IALtC,SAAS,CAAC;QACT,QAAQ,EAAE,yBAAyB;QACnC,uZAAmD;;KAEpD,CAAC;;GACW,0BAA0B,CA8CtC;SA9CY,0BAA0B","sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';\nimport { MatMenu } from '@angular/material/menu';\n\nimport { BooleanValueModelChain, Command, Dsl, ListModel, TrackExternal, ValueModelChain } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandContainer } from '../command-container';\n\n\n/**\n *\n */\n@Component({\n selector: 'aup-popup-menu-renderer',\n templateUrl: './popup-menu-renderer.component.html',\n styleUrls: ['./popup-menu-renderer.component.scss']\n})\nexport class PopupMenuRendererComponent extends DisposableComponent implements OnInit {\n\n @Input() @TrackExternal()\n commandRegistrations: ListModel<CommandContainer.Registration>;\n\n @Input()\n xPosition: 'before' | 'after' = 'after';\n\n @Input()\n yPosition: 'above' | 'below' = 'below';\n\n @Output()\n commandExecuted = new EventEmitter();\n\n readonly tooltip: ValueModelChain<string>;\n readonly hasMixedIcons: BooleanValueModelChain;\n\n @ViewChild(MatMenu)\n matMenu: MatMenu;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n const registrations = chain(this.commandRegistrations);\n const iconCount = registrations.select(r => !!r.faceAdapter.icon).count();\n this.hasMixedIcons = valueOf.all(\n iconCount.isGreaterThan(0),\n iconCount.doesNotEqual(registrations.length)\n ).areTruthy();\n }\n\n ngOnInit() {\n }\n\n getPopupMenuCommandFor(item: CommandContainer.Registration): Command<unknown> {\n const { when } = Dsl.disposeWith(this);\n when(item.command.busy).becomesFalsey(() => {\n this.commandExecuted.emit();\n });\n return item.command;\n }\n\n getButtonColor(registration: CommandContainer.Registration) {\n return registration.faceAdapter.destructive ? 'warn' : undefined;\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"PopupMenuRendererComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../disposable-component","name":"DisposableComponent","line":16,"character":48},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"aup-popup-menu-renderer","template":"<mat-menu [xPosition]=\"xPosition\" [yPosition]=\"yPosition\" >\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"getPopupMenuCommandFor(registration)\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n","styles":[":host{display:inline-flex;flex-direction:row;align-items:center}"]}]}],"members":{"commandRegistrations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":18,"character":12}}]}],"xPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"yPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"commandExecuted":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":3}}]}],"matMenu":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":33,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenu","line":33,"character":13}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"getPopupMenuCommandFor":[{"__symbolic":"method"}],"getButtonColor":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu-renderer.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-menu-renderer.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { Component, forwardRef } from '@angular/core';
|
|
3
|
-
import { CommandContainer } from './command-container';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
var CommandBarComponent = /** @class */ (function (_super) {
|
|
8
|
-
__extends(CommandBarComponent, _super);
|
|
9
|
-
function CommandBarComponent() {
|
|
10
|
-
return _super.call(this) || this;
|
|
11
|
-
}
|
|
12
|
-
CommandBarComponent_1 = CommandBarComponent;
|
|
13
|
-
CommandBarComponent.prototype.ngOnInit = function () {
|
|
14
|
-
};
|
|
15
|
-
CommandBarComponent.prototype.getButtonColor = function (registration) {
|
|
16
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
17
|
-
};
|
|
18
|
-
var CommandBarComponent_1;
|
|
19
|
-
CommandBarComponent = CommandBarComponent_1 = __decorate([
|
|
20
|
-
Component({
|
|
21
|
-
selector: 'aup-command-bar',
|
|
22
|
-
template: "\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n ",
|
|
23
|
-
providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return CommandBarComponent_1; }) }],
|
|
24
|
-
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
25
|
-
}),
|
|
26
|
-
__metadata("design:paramtypes", [])
|
|
27
|
-
], CommandBarComponent);
|
|
28
|
-
return CommandBarComponent;
|
|
29
|
-
}(CommandContainer));
|
|
30
|
-
export { CommandBarComponent };
|
|
31
|
-
//# sourceMappingURL=command-bar.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-bar.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-bar.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAU,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD;;GAEG;AA8BH;IAAyC,uCAAgB;IAEvD;eACE,iBAAO;IACT,CAAC;4BAJU,mBAAmB;IAM9B,sCAAQ,GAAR;IACA,CAAC;IAED,4CAAc,GAAd,UAAe,YAA2C;QACxD,OAAO,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,CAAC;;IAXU,mBAAmB;QA7B/B,SAAS,CAAC;YACT,QAAQ,EAAE,iBAAiB;YAC3B,QAAQ,EAAE,42BAmBT;YAMD,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,qBAAmB,EAAnB,CAAmB,CAAC,EAAE,CAAC;qBALrF,6FAIP;SAEH,CAAC;;OACW,mBAAmB,CAa/B;IAAD,0BAAC;CAAA,AAbD,CAAyC,gBAAgB,GAaxD;SAbY,mBAAmB","sourcesContent":["import { Component, forwardRef, OnInit } from '@angular/core';\nimport { CommandContainer } from './command-container';\n\n\n/**\n *\n */\n@Component({\n selector: 'aup-command-bar',\n template: `\n <ng-container *ngFor=\"let registration of commandRegistrations.value\">\n <button *ngIf=\"registration.faceAdapter.icon && !registration.faceAdapter.text\"\n mat-icon-button\n [color]=\"getButtonColor(registration)\"\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.faceAdapter.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n <button *ngIf=\"registration.faceAdapter.text\"\n [color]=\"getButtonColor(registration)\"\n mat-button\n [pectinCommand]=\"registration.command\"\n [matTooltip]=\"registration.tooltip\"\n >\n <aup-command-face [face]=\"registration.faceAdapter.face\"></aup-command-face>\n </button>\n </ng-container>\n `,\n styles: [`:host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }`],\n providers: [{ provide: CommandContainer, useExisting: forwardRef(() => CommandBarComponent) }]\n})\nexport class CommandBarComponent extends CommandContainer implements OnInit {\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n getButtonColor(registration: CommandContainer.Registration) {\n return registration.faceAdapter.destructive ? 'warn' : undefined;\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-bar.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-bar.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { Disposable, GarbageCollector, MutableListModel } from '@coolon/pectin';
|
|
3
|
-
import { CommandFace } from './command-face';
|
|
4
|
-
var CommandContainer = /** @class */ (function (_super) {
|
|
5
|
-
__extends(CommandContainer, _super);
|
|
6
|
-
function CommandContainer() {
|
|
7
|
-
var _this = _super.call(this) || this;
|
|
8
|
-
_this._commandRegistrations = new MutableListModel();
|
|
9
|
-
return _this;
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(CommandContainer.prototype, "commandRegistrations", {
|
|
12
|
-
get: function () {
|
|
13
|
-
return this._commandRegistrations.readonly;
|
|
14
|
-
},
|
|
15
|
-
enumerable: true,
|
|
16
|
-
configurable: true
|
|
17
|
-
});
|
|
18
|
-
CommandContainer.prototype.registerCommand = function (command, face) {
|
|
19
|
-
var _this = this;
|
|
20
|
-
var registration = { command: command, faceAdapter: new CommandFace.Adapter(face) };
|
|
21
|
-
this._commandRegistrations.push(registration);
|
|
22
|
-
return Disposable.disposableThatRuns(function () { return _this._commandRegistrations.remove(registration); });
|
|
23
|
-
};
|
|
24
|
-
CommandContainer.prototype.getDefaultIconPosition = function () {
|
|
25
|
-
return CommandFace.Position.START;
|
|
26
|
-
};
|
|
27
|
-
return CommandContainer;
|
|
28
|
-
}(GarbageCollector));
|
|
29
|
-
export { CommandContainer };
|
|
30
|
-
//# sourceMappingURL=command-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-container.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-container.ts"],"names":[],"mappings":";AAAA,OAAO,EAAW,UAAU,EAAE,gBAAgB,EAAa,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;IAAsC,oCAAgB;IAIpD;QAAA,YACE,iBAAO,SACR;QAJgB,2BAAqB,GAAG,IAAI,gBAAgB,EAAiC,CAAC;;IAI/F,CAAC;IAED,sBAAI,kDAAoB;aAAxB;YACE,OAAO,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC;QAC7C,CAAC;;;OAAA;IAED,0CAAe,GAAf,UAAgB,OAAyB,EAAE,IAAiB;QAA5D,iBAIC;QAHC,IAAM,YAAY,GAAG,EAAE,OAAO,SAAA,EAAE,WAAW,EAAE,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7E,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,OAAO,UAAU,CAAC,kBAAkB,CAAC,cAAM,OAAA,KAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,YAAY,CAAC,EAA/C,CAA+C,CAAC,CAAC;IAC9F,CAAC;IAED,iDAAsB,GAAtB;QACE,OAAO,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;IACpC,CAAC;IACH,uBAAC;AAAD,CAAC,AArBD,CAAsC,gBAAgB,GAqBrD","sourcesContent":["import { Command, Disposable, GarbageCollector, ListModel, MutableListModel } from '@coolon/pectin';\nimport { CommandFace } from './command-face';\n\n\nexport class CommandContainer extends GarbageCollector {\n\n private readonly _commandRegistrations = new MutableListModel<CommandContainer.Registration>();\n\n constructor() {\n super();\n }\n\n get commandRegistrations(): ListModel<CommandContainer.Registration> {\n return this._commandRegistrations.readonly;\n }\n\n registerCommand(command: Command<unknown>, face: CommandFace): Disposable {\n const registration = { command, faceAdapter: new CommandFace.Adapter(face) };\n this._commandRegistrations.push(registration);\n return Disposable.disposableThatRuns(() => this._commandRegistrations.remove(registration));\n }\n\n getDefaultIconPosition(): CommandFace.Position {\n return CommandFace.Position.START;\n }\n}\n\nexport namespace CommandContainer {\n\n export interface Registration {\n readonly command: Command<unknown>;\n readonly faceAdapter: CommandFace.Adapter;\n }\n\n}\n"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import { Command, TrackExternal } from '@coolon/pectin';
|
|
4
|
-
import { CommandContainer } from './command-container';
|
|
5
|
-
import { CommandFace } from './command-face';
|
|
6
|
-
import { DisposableComponent } from '../disposable-component';
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var CommandComponent = /** @class */ (function (_super) {
|
|
11
|
-
__extends(CommandComponent, _super);
|
|
12
|
-
function CommandComponent(commandContainer) {
|
|
13
|
-
var _this = _super.call(this) || this;
|
|
14
|
-
_this.commandContainer = commandContainer;
|
|
15
|
-
return _this;
|
|
16
|
-
}
|
|
17
|
-
CommandComponent.prototype.ngOnInit = function () {
|
|
18
|
-
this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
|
|
19
|
-
};
|
|
20
|
-
CommandComponent.ctorParameters = function () { return [
|
|
21
|
-
{ type: CommandContainer }
|
|
22
|
-
]; };
|
|
23
|
-
__decorate([
|
|
24
|
-
Input(), TrackExternal(),
|
|
25
|
-
__metadata("design:type", Command)
|
|
26
|
-
], CommandComponent.prototype, "command", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
Input(),
|
|
29
|
-
__metadata("design:type", Object)
|
|
30
|
-
], CommandComponent.prototype, "face", void 0);
|
|
31
|
-
CommandComponent = __decorate([
|
|
32
|
-
Component({
|
|
33
|
-
selector: 'aup-command',
|
|
34
|
-
template: ""
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:paramtypes", [CommandContainer])
|
|
37
|
-
], CommandComponent);
|
|
38
|
-
return CommandComponent;
|
|
39
|
-
}(DisposableComponent));
|
|
40
|
-
export { CommandComponent };
|
|
41
|
-
//# sourceMappingURL=command.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAA+B,MAAM,eAAe,CAAC;AAG9E,OAAO,EAAE,OAAO,EAAO,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;GAEG;AAMH;IAAyC,oCAAmB;IAQ1D,0BAAqB,gBAAkC;QAAvD,YACE,iBAAO,SACR;QAFoB,sBAAgB,GAAhB,gBAAgB,CAAkB;;IAEvD,CAAC;IAED,mCAAQ,GAAR;QACE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACzF,CAAC;;gBANsC,gBAAgB;;IALvD;QADC,KAAK,EAAE,EAAE,aAAa,EAAE;kCAChB,OAAO;qDAAC;IAGjB;QADC,KAAK,EAAE;;kDACU;IANP,gBAAgB;QAL5B,SAAS,CAAC;YACT,QAAQ,EAAE,aAAa;YACvB,QAAQ,EAAE,EAAE;SAEb,CAAC;yCASuC,gBAAgB;OAR5C,gBAAgB,CAgB5B;IAAD,uBAAC;CAAA,AAhBD,CAAyC,mBAAmB,GAgB3D;SAhBY,gBAAgB","sourcesContent":["import { Component, Input, OnInit, SkipSelf, ViewChild } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\n\nimport { Command, Dsl, TrackExternal } from '@coolon/pectin';\nimport { CommandContainer } from './command-container';\nimport { CommandFace } from './command-face';\nimport { DisposableComponent } from '../disposable-component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-command',\n template: ``,\n styles: []\n})\nexport class CommandComponent<T> extends DisposableComponent implements OnInit {\n\n @Input() @TrackExternal()\n command: Command;\n\n @Input()\n face: CommandFace;\n\n constructor(readonly commandContainer: CommandContainer) {\n super();\n }\n\n ngOnInit() {\n this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face))\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core';
|
|
3
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
-
import { CommandContainer } from '../command-container';
|
|
5
|
-
import { PopupMenuRendererComponent } from '../popup-menu-renderer/popup-menu-renderer.component';
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
var AbstractPopupMenuComponent = /** @class */ (function (_super) {
|
|
10
|
-
__extends(AbstractPopupMenuComponent, _super);
|
|
11
|
-
function AbstractPopupMenuComponent(cdr) {
|
|
12
|
-
var _this = _super.call(this) || this;
|
|
13
|
-
_this.cdr = cdr;
|
|
14
|
-
_this.xPosition = 'after';
|
|
15
|
-
_this.yPosition = 'below';
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
AbstractPopupMenuComponent.prototype.ngAfterViewInit = function () {
|
|
19
|
-
this.cdr.detectChanges();
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(AbstractPopupMenuComponent.prototype, "matMenuComponent", {
|
|
22
|
-
get: function () {
|
|
23
|
-
var _a;
|
|
24
|
-
return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
|
|
25
|
-
},
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
29
|
-
AbstractPopupMenuComponent.prototype.closeMenu = function () {
|
|
30
|
-
this.menuTrigger.closeMenu();
|
|
31
|
-
};
|
|
32
|
-
AbstractPopupMenuComponent.prototype.getButtonColor = function (registration) {
|
|
33
|
-
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
34
|
-
};
|
|
35
|
-
AbstractPopupMenuComponent.ctorParameters = function () { return [
|
|
36
|
-
{ type: ChangeDetectorRef }
|
|
37
|
-
]; };
|
|
38
|
-
__decorate([
|
|
39
|
-
Input(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
Input(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
ViewChild(PopupMenuRendererComponent),
|
|
48
|
-
__metadata("design:type", PopupMenuRendererComponent)
|
|
49
|
-
], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
ViewChild(MatMenuTrigger),
|
|
52
|
-
__metadata("design:type", MatMenuTrigger)
|
|
53
|
-
], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
|
|
54
|
-
AbstractPopupMenuComponent = __decorate([
|
|
55
|
-
Component({
|
|
56
|
-
selector: 'aup-abstract-popup-menu',
|
|
57
|
-
template: ''
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
60
|
-
], AbstractPopupMenuComponent);
|
|
61
|
-
return AbstractPopupMenuComponent;
|
|
62
|
-
}(CommandContainer));
|
|
63
|
-
export { AbstractPopupMenuComponent };
|
|
64
|
-
//# sourceMappingURL=abstract-popup-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-popup-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/abstract-popup-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAW,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAElG;;GAEG;AAKH;IAAgD,8CAAgB;IAc9D,oCAA6B,GAAsB;QAAnD,YACE,iBAAO,SACR;QAF4B,SAAG,GAAH,GAAG,CAAmB;QAXnD,eAAS,GAAuB,OAAO,CAAC;QAGxC,eAAS,GAAsB,OAAO,CAAC;;IAUvC,CAAC;IAED,oDAAe,GAAf;QACE,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAA;IAC1B,CAAC;IAGD,sBAAI,wDAAgB;aAApB;;YACE,aAAO,IAAI,CAAC,SAAS,0CAAE,OAAO,CAAC;QACjC,CAAC;;;OAAA;IAED,8CAAS,GAAT;QACE,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;IAC/B,CAAC;IAED,mDAAc,GAAd,UAAe,YAA2C;QACxD,OAAO,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,CAAC;;gBAnBiC,iBAAiB;;IAXnD;QADC,KAAK,EAAE;;iEACgC;IAGxC;QADC,KAAK,EAAE;;iEAC+B;IAGvC;QADC,SAAS,CAAC,0BAA0B,CAAC;kCACnB,0BAA0B;iEAAC;IAG9C;QADC,SAAS,CAAC,cAAc,CAAC;kCACb,cAAc;mEAAC;IAZjB,0BAA0B;QAJtC,SAAS,CAAC;YACT,QAAQ,EAAE,yBAAyB;YACnC,QAAQ,EAAE,EAAE;SACb,CAAC;yCAekC,iBAAiB;OAdxC,0BAA0B,CAmCtC;IAAD,iCAAC;CAAA,AAnCD,CAAgD,gBAAgB,GAmC/D;SAnCY,0BAA0B","sourcesContent":["import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core';\nimport { MatMenu, MatMenuTrigger } from '@angular/material/menu';\n\nimport { Dsl, MutableValueModel, StoreInValueModel, ValueModelChain } from '@coolon/pectin';\nimport { CommandContainer } from '../command-container';\nimport { CommandFace } from '../command-face';\nimport { PopupMenuRendererComponent } from '../popup-menu-renderer/popup-menu-renderer.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-abstract-popup-menu',\n template: '',\n})\nexport class AbstractPopupMenuComponent extends CommandContainer implements AfterViewInit {\n\n @Input()\n xPosition: 'before' | 'after' = 'after';\n\n @Input()\n yPosition: 'above' | 'below' = 'below';\n\n @ViewChild(PopupMenuRendererComponent)\n private popupMenu: PopupMenuRendererComponent;\n\n @ViewChild(MatMenuTrigger)\n menuTrigger: MatMenuTrigger;\n\n constructor(private readonly cdr: ChangeDetectorRef) {\n super();\n }\n\n ngAfterViewInit(): void {\n this.cdr.detectChanges()\n }\n\n\n get matMenuComponent(): MatMenu {\n return this.popupMenu?.matMenu;\n }\n\n closeMenu() {\n this.menuTrigger.closeMenu();\n }\n\n getButtonColor(registration: CommandContainer.Registration) {\n return registration.faceAdapter.destructive ? 'warn' : undefined;\n }\n\n}\n"]}
|
package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-popup-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { ChangeDetectorRef, Component, forwardRef, Input } from '@angular/core';
|
|
3
|
-
import { CommandContainer } from '../command-container';
|
|
4
|
-
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
var MoreMenuComponent = /** @class */ (function (_super) {
|
|
9
|
-
__extends(MoreMenuComponent, _super);
|
|
10
|
-
function MoreMenuComponent(cdr) {
|
|
11
|
-
var _this = _super.call(this, cdr) || this;
|
|
12
|
-
_this.xPosition = "before"; // this should be the default unless overriden by the user.
|
|
13
|
-
return _this;
|
|
14
|
-
}
|
|
15
|
-
MoreMenuComponent_1 = MoreMenuComponent;
|
|
16
|
-
var MoreMenuComponent_1;
|
|
17
|
-
MoreMenuComponent.ctorParameters = function () { return [
|
|
18
|
-
{ type: ChangeDetectorRef }
|
|
19
|
-
]; };
|
|
20
|
-
__decorate([
|
|
21
|
-
Input(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
24
|
-
MoreMenuComponent = MoreMenuComponent_1 = __decorate([
|
|
25
|
-
Component({
|
|
26
|
-
selector: 'aup-more-menu',
|
|
27
|
-
template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
|
|
28
|
-
providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return MoreMenuComponent_1; }) }]
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
31
|
-
], MoreMenuComponent);
|
|
32
|
-
return MoreMenuComponent;
|
|
33
|
-
}(AbstractPopupMenuComponent));
|
|
34
|
-
export { MoreMenuComponent };
|
|
35
|
-
//# sourceMappingURL=more-menu.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/more-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AAeH;IAAuC,qCAA0B;IAK/D,2BAAY,GAAsB;QAAlC,YACE,kBAAM,GAAG,CAAC,SAEX;QADC,KAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,2DAA2D;;IACxF,CAAC;0BARU,iBAAiB;;;gBAKX,iBAAiB;;IAFlC;QADC,KAAK,EAAE;;sDACQ;IAHL,iBAAiB;QAd7B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,gkBAST;YACD,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,mBAAiB,EAAjB,CAAiB,CAAC,EAAE,CAAC;SAC7F,CAAC;yCAMiB,iBAAiB;OALvB,iBAAiB,CAU7B;IAAD,wBAAC;CAAA,AAVD,CAAuC,0BAA0B,GAUhE;SAVY,iBAAiB","sourcesContent":["import { ChangeDetectorRef, Component, forwardRef, Input } from '@angular/core';\nimport { CommandContainer } from '../command-container';\nimport { AbstractPopupMenuComponent } from './abstract-popup-menu.component';\n\n/**\n *\n */\n@Component({\n selector: 'aup-more-menu',\n template: `\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"tooltip\">\n <mat-icon>more_vert</mat-icon>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n `,\n providers: [{ provide: CommandContainer, useExisting: forwardRef(() => MoreMenuComponent) }]\n})\nexport class MoreMenuComponent extends AbstractPopupMenuComponent {\n\n @Input()\n tooltip: string;\n\n constructor(cdr: ChangeDetectorRef) {\n super(cdr);\n this.xPosition = \"before\"; // this should be the default unless overriden by the user.\n }\n\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/popup-menu/more-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
-
import { ChangeDetectorRef, Component, forwardRef, Input, OnInit } from '@angular/core';
|
|
3
|
-
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
4
|
-
import { CommandContainer } from '../command-container';
|
|
5
|
-
import { CommandFace } from '../command-face';
|
|
6
|
-
import { AbstractPopupMenuComponent } from './abstract-popup-menu.component';
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var PopupMenuComponent = /** @class */ (function (_super) {
|
|
11
|
-
__extends(PopupMenuComponent, _super);
|
|
12
|
-
function PopupMenuComponent(cdr) {
|
|
13
|
-
var _this = _super.call(this, cdr) || this;
|
|
14
|
-
_this.faceModel = new MutableValueModel();
|
|
15
|
-
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
16
|
-
var faceAdapterModel = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
|
|
17
|
-
_this.faceTooltipModel = faceAdapterModel.pluck('tooltip');
|
|
18
|
-
return _this;
|
|
19
|
-
}
|
|
20
|
-
PopupMenuComponent_1 = PopupMenuComponent;
|
|
21
|
-
PopupMenuComponent.prototype.getTooltip = function () {
|
|
22
|
-
return this.faceTooltipModel.value;
|
|
23
|
-
};
|
|
24
|
-
PopupMenuComponent.prototype.ngOnInit = function () {
|
|
25
|
-
};
|
|
26
|
-
var PopupMenuComponent_1;
|
|
27
|
-
PopupMenuComponent.ctorParameters = function () { return [
|
|
28
|
-
{ type: ChangeDetectorRef }
|
|
29
|
-
]; };
|
|
30
|
-
__decorate([
|
|
31
|
-
Input(), StoreInValueModel('faceModel'),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], PopupMenuComponent.prototype, "face", void 0);
|
|
34
|
-
PopupMenuComponent = PopupMenuComponent_1 = __decorate([
|
|
35
|
-
Component({
|
|
36
|
-
selector: 'aup-popup-menu',
|
|
37
|
-
template: "\n <!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->\n <button *ngIf=\"matMenuComponent\" mat-icon-button [matMenuTriggerFor]=\"matMenuComponent\" [matTooltip]=\"getTooltip()\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n </button>\n <aup-popup-menu-renderer [commandRegistrations]=\"commandRegistrations\" [yPosition]=\"yPosition\"\n [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ",
|
|
38
|
-
providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return PopupMenuComponent_1; }) }]
|
|
39
|
-
}),
|
|
40
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
41
|
-
], PopupMenuComponent);
|
|
42
|
-
return PopupMenuComponent;
|
|
43
|
-
}(AbstractPopupMenuComponent));
|
|
44
|
-
export { PopupMenuComponent };
|
|
45
|
-
//# sourceMappingURL=popup-menu.component.js.map
|