@coolon/angular-ui-powerups 2.0.0-alpha.26 → 2.0.0-alpha.28
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 +9 -0
- package/assets/commands.scss +3 -0
- package/assets/icons.scss +30 -0
- package/assets/styles.scss +2 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +574 -149
- 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 +42 -34
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +40 -32
- 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-bar.component.js +51 -0
- package/esm2015/lib/components/commands/command-bar.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-bar.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-container.js +20 -0
- package/esm2015/lib/components/commands/command-container.js.map +1 -0
- package/esm2015/lib/components/commands/command-container.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js +91 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
- package/esm2015/lib/components/commands/command-face.js +9 -1
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/commands/command.component.js +38 -0
- package/esm2015/lib/components/commands/command.component.js.map +1 -0
- package/esm2015/lib/components/commands/command.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js +50 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js +35 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js +46 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +62 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/components/components.module.js +23 -2
- 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/icon/icon.component.js +17 -4
- package/esm2015/lib/components/icon/icon.component.js.map +1 -1
- package/esm2015/lib/components/icon/icon.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +8 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.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/esm5/coolon-angular-ui-powerups.js +40 -32
- 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-bar.component.js +31 -0
- package/esm5/lib/components/commands/command-bar.component.js.map +1 -0
- package/esm5/lib/components/commands/command-bar.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-container.js +30 -0
- package/esm5/lib/components/commands/command-container.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js +122 -0
- package/esm5/lib/components/commands/command-face/command-face.component.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map +1 -0
- package/esm5/lib/components/commands/command-face.js +13 -1
- package/esm5/lib/components/commands/command-face.js.map +1 -1
- package/esm5/lib/components/commands/command.component.js +41 -0
- package/esm5/lib/components/commands/command.component.js.map +1 -0
- package/esm5/lib/components/commands/command.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js +57 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js +30 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/more-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js +42 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu/popup-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js +66 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/components/components.module.js +23 -2
- 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/icon/icon.component.js +15 -3
- package/esm5/lib/components/icon/icon.component.js.map +1 -1
- package/esm5/lib/components/index.js +8 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +459 -75
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +510 -99
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-bar.component.d.ts +10 -0
- package/lib/components/commands/command-container.d.ts +15 -0
- package/lib/components/commands/command-face/command-face.component.d.ts +29 -0
- package/lib/components/commands/command-face.d.ts +4 -2
- package/lib/components/commands/command.component.d.ts +15 -0
- package/lib/components/commands/popup-menu/abstract-popup-menu.component.d.ts +15 -0
- package/lib/components/commands/popup-menu/more-menu.component.d.ts +8 -0
- package/lib/components/commands/popup-menu/popup-menu.component.d.ts +14 -0
- package/lib/components/commands/popup-menu-renderer/popup-menu-renderer.component.d.ts +21 -0
- package/lib/components/icon/icon.component.d.ts +15 -0
- package/lib/components/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"CommandFaceComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../disposable-component","name":"DisposableComponent","line":16,"character":45},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"aup-command-face","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":14,"character":17},"member":"None"},"template":"<aup-icon *ngIf=\"iconStart\" [icon]=\"iconModel.value\"></aup-icon>\n<span *ngIf=\"this.text\">{{this.text}}</span>\n<aup-icon *ngIf=\"iconEnd\" [icon]=\"iconModel.value\"></aup-icon>\n","styles":["aup-command-face{--icon-gap:var(--command-face-icon-gap);display:inline-flex;flex-direction:row;align-items:center}aup-command-face *+*{margin-left:var(--icon-gap)}aup-command-face.hide-icon aup-icon{visibility:hidden}"]}]}],"members":{"_rawFace":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3},"arguments":["face"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":21,"character":18},"arguments":["faceModel"]}]}],"ignoreIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"ignoreText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"includeMissingIconInLayout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"requiresMissingIconInLayout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":33,"character":3},"arguments":["class.hide-icon"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":43,"character":15}}]],"parameters":[{"__symbolic":"reference","module":"../command-container","name":"CommandContainer","line":43,"character":53}]}],"ngOnInit":[{"__symbolic":"method"}],"destructive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":77,"character":3},"arguments":["class.destructive"]}]}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-face.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-face/command-face.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
package/esm2015/lib/components/commands/command-face/command-face.component.scss.ngstyle.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-face.component.scss.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-face/command-face.component.scss.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -19,7 +19,7 @@ export var CommandFace;
|
|
|
19
19
|
return _.isFunction(this.face.icon) ? this.face.icon() : undefined;
|
|
20
20
|
}
|
|
21
21
|
get iconPosition() {
|
|
22
|
-
return _.isFunction(this.face.iconPosition) ? this.face.iconPosition() :
|
|
22
|
+
return _.isFunction(this.face.iconPosition) ? this.face.iconPosition() : undefined;
|
|
23
23
|
}
|
|
24
24
|
get tooltip() {
|
|
25
25
|
return _.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
|
|
@@ -30,6 +30,9 @@ export var CommandFace;
|
|
|
30
30
|
get iconPositionEnd() {
|
|
31
31
|
return this.iconPosition === CommandFace.Position.END;
|
|
32
32
|
}
|
|
33
|
+
get destructive() {
|
|
34
|
+
return _.isFunction(this.face.destructive) ? this.face.destructive() : false;
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
37
|
__decorate([
|
|
35
38
|
Memoize(),
|
|
@@ -61,6 +64,11 @@ export var CommandFace;
|
|
|
61
64
|
__metadata("design:type", Boolean),
|
|
62
65
|
__metadata("design:paramtypes", [])
|
|
63
66
|
], Adapter.prototype, "iconPositionEnd", null);
|
|
67
|
+
__decorate([
|
|
68
|
+
Memoize(),
|
|
69
|
+
__metadata("design:type", Boolean),
|
|
70
|
+
__metadata("design:paramtypes", [])
|
|
71
|
+
], Adapter.prototype, "destructive", null);
|
|
64
72
|
CommandFace.Adapter = Adapter;
|
|
65
73
|
})(CommandFace || (CommandFace = {}));
|
|
66
74
|
//# sourceMappingURL=command-face.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-face.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-face.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"command-face.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-face.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,CAAC,MAAM,QAAQ,CAAC;AAcvB,MAAM,KAAW,WAAW,CA8C3B;AA9CD,WAAiB,WAAW;IAC1B,IAAY,QAGX;IAHD,WAAY,QAAQ;QAClB,2BAAe,CAAA;QACf,uBAAW,CAAA;IACb,CAAC,EAHW,QAAQ,GAAR,oBAAQ,KAAR,oBAAQ,QAGnB;IAED,MAAa,OAAO;QAClB,YAAqB,IAAiB;YAAjB,SAAI,GAAJ,IAAI,CAAa;QACtC,CAAC;QAGD,IAAI,IAAI;YACN,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,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,OAAO,EAAE;;;8CAGT;IArCU,mBAAO,UAuCnB,CAAA;AACH,CAAC,EA9CgB,WAAW,KAAX,WAAW,QA8C3B","sourcesContent":["import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport _ from 'lodash';\n\nexport interface CommandFace {\n text?(): string;\n\n icon?(): string;\n\n iconPosition?(): string;\n\n tooltip?(): string;\n\n destructive?(): boolean;\n}\n\nexport namespace CommandFace {\n export enum Position {\n START = 'start',\n END = 'end'\n }\n\n export class Adapter {\n constructor(readonly face: CommandFace) {\n }\n\n @Memoize()\n get text() {\n return _.isFunction(this.face.text) ? this.face.text() : undefined;\n }\n\n @Memoize()\n get icon() {\n return _.isFunction(this.face.icon) ? this.face.icon() : undefined;\n }\n\n @Memoize()\n get iconPosition() {\n return _.isFunction(this.face.iconPosition) ? this.face.iconPosition() : undefined;\n }\n\n @Memoize()\n get tooltip() {\n return _.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;\n }\n\n @Memoize()\n get iconPositionStart(): boolean {\n return this.iconPosition === CommandFace.Position.START;\n }\n\n @Memoize()\n get iconPositionEnd(): boolean {\n return this.iconPosition === CommandFace.Position.END;\n }\n\n @Memoize()\n get destructive(): boolean {\n return _.isFunction(this.face.destructive) ? this.face.destructive() : false;\n }\n\n }\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __decorate, __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
|
+
let CommandComponent = class CommandComponent extends DisposableComponent {
|
|
11
|
+
constructor(commandContainer) {
|
|
12
|
+
super();
|
|
13
|
+
this.commandContainer = commandContainer;
|
|
14
|
+
}
|
|
15
|
+
ngOnInit() {
|
|
16
|
+
this.registerDisposable(this.commandContainer.registerCommand(this.command, this.face));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
CommandComponent.ctorParameters = () => [
|
|
20
|
+
{ type: CommandContainer }
|
|
21
|
+
];
|
|
22
|
+
__decorate([
|
|
23
|
+
Input(), TrackExternal(),
|
|
24
|
+
__metadata("design:type", Command)
|
|
25
|
+
], CommandComponent.prototype, "command", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Input(),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], CommandComponent.prototype, "face", void 0);
|
|
30
|
+
CommandComponent = __decorate([
|
|
31
|
+
Component({
|
|
32
|
+
selector: 'aup-command',
|
|
33
|
+
template: ``
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:paramtypes", [CommandContainer])
|
|
36
|
+
], CommandComponent);
|
|
37
|
+
export { CommandComponent };
|
|
38
|
+
//# sourceMappingURL=command.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAa,gBAAgB,GAA7B,MAAa,gBAAoB,SAAQ,mBAAmB;IAQ1D,YAAqB,gBAAkC;QACrD,KAAK,EAAE,CAAC;QADW,qBAAgB,GAAhB,gBAAgB,CAAkB;IAEvD,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACzF,CAAC;CAEF,CAAA;;YARwC,gBAAgB;;AALvD;IADC,KAAK,EAAE,EAAE,aAAa,EAAE;8BAChB,OAAO;iDAAC;AAGjB;IADC,KAAK,EAAE;;8CACU;AANP,gBAAgB;IAL5B,SAAS,CAAC;QACT,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,EAAE;KAEb,CAAC;qCASuC,gBAAgB;GAR5C,gBAAgB,CAgB5B;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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"CommandComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../disposable-component","name":"DisposableComponent","line":16,"character":41},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"aup-command","template":"","styles":[]}]}],"members":{"command":[{"__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}}]}],"face":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./command-container","name":"CommandContainer","line":24,"character":41}]}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, Input, 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() {
|
|
11
|
+
super();
|
|
12
|
+
this.xPosition = 'after';
|
|
13
|
+
this.yPosition = 'below';
|
|
14
|
+
}
|
|
15
|
+
get matMenuComponent() {
|
|
16
|
+
var _a;
|
|
17
|
+
return (_a = this.popupMenu) === null || _a === void 0 ? void 0 : _a.matMenu;
|
|
18
|
+
}
|
|
19
|
+
closeMenu() {
|
|
20
|
+
this.menuTrigger.closeMenu();
|
|
21
|
+
}
|
|
22
|
+
getButtonColor(registration) {
|
|
23
|
+
return registration.faceAdapter.destructive ? 'warn' : undefined;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__decorate([
|
|
27
|
+
Input(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AbstractPopupMenuComponent.prototype, "xPosition", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Input(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AbstractPopupMenuComponent.prototype, "yPosition", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
ViewChild(PopupMenuRendererComponent),
|
|
36
|
+
__metadata("design:type", PopupMenuRendererComponent)
|
|
37
|
+
], AbstractPopupMenuComponent.prototype, "popupMenu", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
ViewChild(MatMenuTrigger),
|
|
40
|
+
__metadata("design:type", MatMenuTrigger)
|
|
41
|
+
], AbstractPopupMenuComponent.prototype, "menuTrigger", void 0);
|
|
42
|
+
AbstractPopupMenuComponent = __decorate([
|
|
43
|
+
Component({
|
|
44
|
+
selector: 'aup-abstract-popup-menu',
|
|
45
|
+
template: ''
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:paramtypes", [])
|
|
48
|
+
], AbstractPopupMenuComponent);
|
|
49
|
+
export { AbstractPopupMenuComponent };
|
|
50
|
+
//# sourceMappingURL=abstract-popup-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,SAAS,EAAc,KAAK,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AAChF,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;QACE,KAAK,EAAE,CAAC;QAZV,cAAS,GAAuB,OAAO,CAAC;QAGxC,cAAS,GAAsB,OAAO,CAAC;IAUvC,CAAC;IAED,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;AA3BC;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;;GACW,0BAA0B,CA8BtC;SA9BY,0BAA0B","sourcesContent":["import { 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 {\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() {\n super();\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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}],"closeMenu":[{"__symbolic":"method"}],"getButtonColor":[{"__symbolic":"method"}]}}}}]
|
package/esm2015/lib/components/commands/popup-menu/abstract-popup-menu.component.ngfactory.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var MoreMenuComponent_1;
|
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
|
3
|
+
import { 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() {
|
|
11
|
+
super();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
Input(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
18
|
+
MoreMenuComponent = MoreMenuComponent_1 = __decorate([
|
|
19
|
+
Component({
|
|
20
|
+
selector: 'aup-more-menu',
|
|
21
|
+
template: `
|
|
22
|
+
<!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->
|
|
23
|
+
<button *ngIf="matMenuComponent" mat-icon-button [matMenuTriggerFor]="matMenuComponent" [matTooltip]="tooltip">
|
|
24
|
+
<mat-icon>more_vert</mat-icon>
|
|
25
|
+
</button>
|
|
26
|
+
<aup-popup-menu-renderer [commandRegistrations]="commandRegistrations"
|
|
27
|
+
[yPosition]="yPosition" [xPosition]="xPosition"
|
|
28
|
+
(commandExecuted)="closeMenu()"></aup-popup-menu-renderer>
|
|
29
|
+
`,
|
|
30
|
+
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => MoreMenuComponent_1) }]
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:paramtypes", [])
|
|
33
|
+
], MoreMenuComponent);
|
|
34
|
+
export { MoreMenuComponent };
|
|
35
|
+
//# sourceMappingURL=more-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E;;GAEG;AAcH,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,0BAA0B;IAK/D;QACE,KAAK,EAAE,CAAC;IACV,CAAC;CAEF,CAAA;AANC;IADC,KAAK,EAAE;;kDACQ;AAHL,iBAAiB;IAb7B,SAAS,CAAC;QACT,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE;;;;;;;;GAQT;QACD,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,mBAAiB,CAAC,EAAE,CAAC;KAC7F,CAAC;;GACW,iBAAiB,CAS7B;SATY,iBAAiB","sourcesContent":["import { 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 [yPosition]=\"yPosition\" [xPosition]=\"xPosition\"\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() {\n super();\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"MoreMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./abstract-popup-menu.component","name":"AbstractPopupMenuComponent","line":20,"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 [yPosition]=\"yPosition\" [xPosition]=\"xPosition\"\n (commandExecuted)=\"closeMenu()\"></aup-popup-menu-renderer>\n ","providers":[{"provide":{"__symbolic":"reference","module":"../command-container","name":"CommandContainer","line":18,"character":25},"useExisting":{"__symbolic":"reference","name":"MoreMenuComponent"}}]}]}],"members":{"tooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var PopupMenuComponent_1;
|
|
2
|
+
import { __decorate, __metadata } from "tslib";
|
|
3
|
+
import { Component, forwardRef, Input } 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() {
|
|
13
|
+
super();
|
|
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
|
+
__decorate([
|
|
26
|
+
Input(), StoreInValueModel('faceModel'),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], PopupMenuComponent.prototype, "face", void 0);
|
|
29
|
+
PopupMenuComponent = PopupMenuComponent_1 = __decorate([
|
|
30
|
+
Component({
|
|
31
|
+
selector: 'aup-popup-menu',
|
|
32
|
+
template: `
|
|
33
|
+
<!-- we can only render the button after th popup menu has initialised and rendered it's menu component -->
|
|
34
|
+
<button *ngIf="matMenuComponent" mat-icon-button [matMenuTriggerFor]="matMenuComponent" [matTooltip]="getTooltip()">
|
|
35
|
+
<aup-command-face [face]="face"></aup-command-face>
|
|
36
|
+
</button>
|
|
37
|
+
<aup-popup-menu-renderer [commandRegistrations]="commandRegistrations" [yPosition]="yPosition"
|
|
38
|
+
[xPosition]="xPosition"
|
|
39
|
+
(commandExecuted)="closeMenu()"></aup-popup-menu-renderer>
|
|
40
|
+
`,
|
|
41
|
+
providers: [{ provide: CommandContainer, useExisting: forwardRef(() => PopupMenuComponent_1) }]
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:paramtypes", [])
|
|
44
|
+
], PopupMenuComponent);
|
|
45
|
+
export { PopupMenuComponent };
|
|
46
|
+
//# sourceMappingURL=popup-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,SAAS,EAAE,UAAU,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AAErE,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;QACE,KAAK,EAAE,CAAC;QARO,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;AAlBC;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;;GACW,kBAAkB,CAuB9B;SAvBY,kBAAkB","sourcesContent":["import { 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() {\n super();\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"]}
|
|
@@ -0,0 +1 @@
|
|
|
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"}],"getTooltip":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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,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xD,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"]}
|
|
@@ -0,0 +1 @@
|
|
|
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"}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -21,6 +21,13 @@ import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
|
21
21
|
import { DirectivesModule } from '../directives/directives.module';
|
|
22
22
|
import { FocusBindingFactory } from '../directives/focus-binding-factory';
|
|
23
23
|
import { CardContainerComponent } from './card-container/card-container.component';
|
|
24
|
+
import { CommandBarComponent } from './commands/command-bar.component';
|
|
25
|
+
import { CommandFaceComponent } from './commands/command-face/command-face.component';
|
|
26
|
+
import { CommandComponent } from './commands/command.component';
|
|
27
|
+
import { AbstractPopupMenuComponent } from './commands/popup-menu/abstract-popup-menu.component';
|
|
28
|
+
import { PopupMenuComponent } from './commands/popup-menu/popup-menu.component';
|
|
29
|
+
import { MoreMenuComponent } from './commands/popup-menu/more-menu.component';
|
|
30
|
+
import { PopupMenuRendererComponent } from './commands/popup-menu-renderer/popup-menu-renderer.component';
|
|
24
31
|
import { FocusContainerComponent } from './focus-container/focus-container.component';
|
|
25
32
|
import { FocusableComponent } from './focusable.component';
|
|
26
33
|
import { AbstractInputComponent } from './forms/abstract-input.component';
|
|
@@ -92,7 +99,14 @@ ComponentsModule = __decorate([
|
|
|
92
99
|
TableHeaderCellRendererComponent,
|
|
93
100
|
IconComponent,
|
|
94
101
|
SectionHeaderComponent,
|
|
95
|
-
TableRowMenuComponent
|
|
102
|
+
TableRowMenuComponent,
|
|
103
|
+
CommandBarComponent,
|
|
104
|
+
CommandComponent,
|
|
105
|
+
PopupMenuComponent,
|
|
106
|
+
CommandFaceComponent,
|
|
107
|
+
AbstractPopupMenuComponent,
|
|
108
|
+
PopupMenuRendererComponent,
|
|
109
|
+
MoreMenuComponent
|
|
96
110
|
],
|
|
97
111
|
imports: [
|
|
98
112
|
CommonModule,
|
|
@@ -138,7 +152,14 @@ ComponentsModule = __decorate([
|
|
|
138
152
|
ColumnTemplateDirective,
|
|
139
153
|
IconComponent,
|
|
140
154
|
SectionHeaderComponent,
|
|
141
|
-
TableRowMenuComponent
|
|
155
|
+
TableRowMenuComponent,
|
|
156
|
+
CommandBarComponent,
|
|
157
|
+
CommandComponent,
|
|
158
|
+
AbstractPopupMenuComponent,
|
|
159
|
+
PopupMenuComponent,
|
|
160
|
+
CommandFaceComponent,
|
|
161
|
+
PopupMenuRendererComponent,
|
|
162
|
+
MoreMenuComponent
|
|
142
163
|
],
|
|
143
164
|
providers: [
|
|
144
165
|
FocusBindingFactory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAA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mB;YACnB,uBAAuB;YACvB,0BAA0B;YAC1B,uBAAuB;YACvB,+BAA+B;YAC/B,kBAAkB;YAClB,sBAAsB;YACtB,cAAc;YACd,eAAe;YACf,uBAAuB;YACvB,aAAa;YACb,sBAAsB;YACtB,qBAAqB;SACtB;QACD,SAAS,EAAE;YACT,mBAAmB;YACnB,IAAI;YACJ,mDAAmD;YACnD,sBAAsB;YACtB,wCAAwC;YACxC,mBAAmB;YACnB,KAAK;YACL,IAAI;YACJ,mDAAmD;YACnD,sBAAsB;YACtB,wCAAwC;YACxC,mBAAmB;YACnB,IAAI;SACL;KAEF,CAAC;qCAG2B,aAAa;GAF7B,gBAAgB,CAM5B;SANY,gBAAgB","sourcesContent":["import { PortalModule } from '@angular/cdk/portal';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { _MatMenuDirectivesModule, MatMenuModule } from '@angular/material/menu';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { fas } from '@fortawesome/free-solid-svg-icons';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { FocusBindingFactory } from '../directives/focus-binding-factory';\nimport { CardContainerComponent } from './card-container/card-container.component';\nimport { FocusContainerComponent } from './focus-container/focus-container.component';\nimport { FocusableComponent } from './focusable.component';\nimport { AbstractInputComponent } from './forms/abstract-input.component';\nimport { AbstractListInputComponent } from './forms/abstract-list-input.component';\nimport { AbstractValueInputComponent } from './forms/abstract-value-input.component';\nimport { AutocompleteInputComponent } from './forms/autocomplete-input/autocomplete-input.component';\nimport { CheckboxInputComponent } from './forms/checkbox-input/checkbox-input.component';\nimport { MultipleSelectInputComponent } from './forms/multiple-select-input/multiple-select-input.component';\nimport { NumberInputComponent } from './forms/number-input/number-input.component';\nimport { PasswordInputComponent } from './forms/password-input/password-input.component';\nimport { SelectInputComponent } from './forms/select-input/select-input.component';\nimport { StringInputComponent } from './forms/string-input/string-input.component';\nimport { TextInputComponent } from './forms/text-input/text-input.component';\nimport { IconComponent } from './icon/icon.component';\nimport { NoopComponent } from './noop/noop.component';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\nimport { SectionHeaderComponent } from './section-header/section-header.component';\nimport {\n SwitchCaseComponent,\n SwitchCaseDefaultDirective,\n SwitchCaseWhenDirective\n} from './switch-case/switch-case.component';\nimport { ColumnTemplateDirective } from './table/column-template/column-template.directive';\nimport { DefaultCellRendererComponent } from './table/default-cell-renderer/default-cell-renderer.component';\nimport { DefaultHeaderCellRendererComponent } from './table/default-header-cell-renderer/default-header-cell-renderer.component';\nimport { EditRowControls } from './table/edit-row-controls/edit-row-controls.component';\nimport { SelectCellRendererComponent } from './table/select-cell-renderer/select-cell-renderer.component';\nimport { SelectHeaderCellRendererComponent } from './table/select-header-cell-renderer/select-header-cell-renderer.component';\nimport { TableCellRendererComponent } from './table/table-cell-renderer/table-cell-renderer.component';\nimport { TableHeaderCellRendererComponent } from './table/table-header-cell-renderer/table-header-cell-renderer.component';\nimport { TableRowMenuComponent } from './table/table-row-menu/table-row-menu.component';\nimport { TableComponent } from './table/table.component';\nimport { VerticalFocusContainerComponent } from './vertical-focus-container/vertical-focus-container.component';\n\n\n@NgModule({\n declarations: [\n AbstractInputComponent,\n AbstractValueInputComponent,\n AbstractListInputComponent,\n NumberInputComponent,\n StringInputComponent,\n TextInputComponent,\n PasswordInputComponent,\n SelectInputComponent,\n MultipleSelectInputComponent,\n AutocompleteInputComponent,\n CheckboxInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n VerticalFocusContainerComponent,\n FocusableComponent,\n CardContainerComponent,\n TableComponent,\n EditRowControls,\n ColumnTemplateDirective,\n DefaultCellRendererComponent,\n TableCellRendererComponent,\n SelectCellRendererComponent,\n SelectHeaderCellRendererComponent,\n DefaultHeaderCellRendererComponent,\n TableHeaderCellRendererComponent,\n IconComponent,\n SectionHeaderComponent,\n TableRowMenuComponent\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule,\n DirectivesModule,\n MatIconModule,\n MatButtonModule,\n MatCheckboxModule,\n MatTableModule,\n PortalModule,\n CdkScrollableModule,\n FontAwesomeModule,\n MatTooltipModule,\n MatAutocompleteModule,\n _MatMenuDirectivesModule,\n MatMenuModule\n ],\n exports: [\n NumberInputComponent,\n StringInputComponent,\n TextInputComponent,\n PasswordInputComponent,\n CheckboxInputComponent,\n SelectInputComponent,\n MultipleSelectInputComponent,\n AutocompleteInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n VerticalFocusContainerComponent,\n FocusableComponent,\n CardContainerComponent,\n TableComponent,\n EditRowControls,\n ColumnTemplateDirective,\n IconComponent,\n SectionHeaderComponent,\n TableRowMenuComponent\n ],\n providers: [\n FocusBindingFactory\n // {\n // provide: CELL_EDITOR_REGISTRATION, useValue: {\n // type: 'string',\n // editorClass: StringInputComponent\n // }, multi: true\n // },\n // {\n // provide: CELL_EDITOR_REGISTRATION, useValue: {\n // type: 'number',\n // editorClass: NumberInputComponent\n // }, multi: true\n // }\n ]\n\n})\nexport class ComponentsModule {\n\n constructor(faIconLibrary: FaIconLibrary) {\n faIconLibrary.addIconPacks(fas);\n\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"components.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE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xC,mBAAmB;YACnB,IAAI;SACL;KAEF,CAAC;qCAG2B,aAAa;GAF7B,gBAAgB,CAM5B;SANY,gBAAgB","sourcesContent":["import { PortalModule } from '@angular/cdk/portal';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { _MatMenuDirectivesModule, MatMenuModule } from '@angular/material/menu';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { fas } from '@fortawesome/free-solid-svg-icons';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { FocusBindingFactory } from '../directives/focus-binding-factory';\nimport { CardContainerComponent } from './card-container/card-container.component';\nimport { CommandBarComponent } from './commands/command-bar.component';\nimport { CommandContainer } from './commands/command-container';\nimport { CommandFaceComponent } from './commands/command-face/command-face.component';\nimport { CommandComponent } from './commands/command.component';\nimport { AbstractPopupMenuComponent } from './commands/popup-menu/abstract-popup-menu.component';\nimport { PopupMenuComponent } from './commands/popup-menu/popup-menu.component';\nimport { MoreMenuComponent } from './commands/popup-menu/more-menu.component';\nimport { PopupMenuRendererComponent } from './commands/popup-menu-renderer/popup-menu-renderer.component';\nimport { FocusContainerComponent } from './focus-container/focus-container.component';\nimport { FocusableComponent } from './focusable.component';\nimport { AbstractInputComponent } from './forms/abstract-input.component';\nimport { AbstractListInputComponent } from './forms/abstract-list-input.component';\nimport { AbstractValueInputComponent } from './forms/abstract-value-input.component';\nimport { AutocompleteInputComponent } from './forms/autocomplete-input/autocomplete-input.component';\nimport { CheckboxInputComponent } from './forms/checkbox-input/checkbox-input.component';\nimport { MultipleSelectInputComponent } from './forms/multiple-select-input/multiple-select-input.component';\nimport { NumberInputComponent } from './forms/number-input/number-input.component';\nimport { PasswordInputComponent } from './forms/password-input/password-input.component';\nimport { SelectInputComponent } from './forms/select-input/select-input.component';\nimport { StringInputComponent } from './forms/string-input/string-input.component';\nimport { TextInputComponent } from './forms/text-input/text-input.component';\nimport { IconComponent } from './icon/icon.component';\nimport { NoopComponent } from './noop/noop.component';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\nimport { SectionHeaderComponent } from './section-header/section-header.component';\nimport {\n SwitchCaseComponent,\n SwitchCaseDefaultDirective,\n SwitchCaseWhenDirective\n} from './switch-case/switch-case.component';\nimport { ColumnTemplateDirective } from './table/column-template/column-template.directive';\nimport { DefaultCellRendererComponent } from './table/default-cell-renderer/default-cell-renderer.component';\nimport { DefaultHeaderCellRendererComponent } from './table/default-header-cell-renderer/default-header-cell-renderer.component';\nimport { EditRowControls } from './table/edit-row-controls/edit-row-controls.component';\nimport { SelectCellRendererComponent } from './table/select-cell-renderer/select-cell-renderer.component';\nimport { SelectHeaderCellRendererComponent } from './table/select-header-cell-renderer/select-header-cell-renderer.component';\nimport { TableCellRendererComponent } from './table/table-cell-renderer/table-cell-renderer.component';\nimport { TableHeaderCellRendererComponent } from './table/table-header-cell-renderer/table-header-cell-renderer.component';\nimport { TableRowMenuComponent } from './table/table-row-menu/table-row-menu.component';\nimport { TableComponent } from './table/table.component';\nimport { VerticalFocusContainerComponent } from './vertical-focus-container/vertical-focus-container.component';\n\n\n@NgModule({\n declarations: [\n AbstractInputComponent,\n AbstractValueInputComponent,\n AbstractListInputComponent,\n NumberInputComponent,\n StringInputComponent,\n TextInputComponent,\n PasswordInputComponent,\n SelectInputComponent,\n MultipleSelectInputComponent,\n AutocompleteInputComponent,\n CheckboxInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n VerticalFocusContainerComponent,\n FocusableComponent,\n CardContainerComponent,\n TableComponent,\n EditRowControls,\n ColumnTemplateDirective,\n DefaultCellRendererComponent,\n TableCellRendererComponent,\n SelectCellRendererComponent,\n SelectHeaderCellRendererComponent,\n DefaultHeaderCellRendererComponent,\n TableHeaderCellRendererComponent,\n IconComponent,\n SectionHeaderComponent,\n TableRowMenuComponent,\n CommandBarComponent,\n CommandComponent,\n PopupMenuComponent,\n CommandFaceComponent,\n AbstractPopupMenuComponent,\n PopupMenuRendererComponent,\n MoreMenuComponent\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule,\n DirectivesModule,\n MatIconModule,\n MatButtonModule,\n MatCheckboxModule,\n MatTableModule,\n PortalModule,\n CdkScrollableModule,\n FontAwesomeModule,\n MatTooltipModule,\n MatAutocompleteModule,\n _MatMenuDirectivesModule,\n MatMenuModule\n ],\n exports: [\n NumberInputComponent,\n StringInputComponent,\n TextInputComponent,\n PasswordInputComponent,\n CheckboxInputComponent,\n SelectInputComponent,\n MultipleSelectInputComponent,\n AutocompleteInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n VerticalFocusContainerComponent,\n FocusableComponent,\n CardContainerComponent,\n TableComponent,\n EditRowControls,\n ColumnTemplateDirective,\n IconComponent,\n SectionHeaderComponent,\n TableRowMenuComponent,\n CommandBarComponent,\n CommandComponent,\n AbstractPopupMenuComponent,\n PopupMenuComponent,\n CommandFaceComponent,\n PopupMenuRendererComponent,\n MoreMenuComponent\n ],\n providers: [\n FocusBindingFactory\n // {\n // provide: CELL_EDITOR_REGISTRATION, useValue: {\n // type: 'string',\n // editorClass: StringInputComponent\n // }, multi: true\n // },\n // {\n // provide: CELL_EDITOR_REGISTRATION, useValue: {\n // type: 'number',\n // editorClass: NumberInputComponent\n // }, multi: true\n // }\n ]\n\n})\nexport class ComponentsModule {\n\n constructor(faIconLibrary: FaIconLibrary) {\n faIconLibrary.addIconPacks(fas);\n\n }\n}\n"]}
|