@coolon/angular-ui-powerups 2.0.0-alpha.26 → 2.0.0-alpha.27
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 +7 -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 +479 -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 +39 -34
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +37 -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 +55 -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 +39 -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-container.ngfactory.js.map +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-menu/command-menu.component.js +65 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.js.map +1 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map +1 -0
- 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/components.module.js +17 -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 +5 -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 +37 -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 +35 -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 +51 -0
- package/esm5/lib/components/commands/command-container.js.map +1 -0
- package/esm5/lib/components/commands/command-container.ngfactory.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-menu/command-menu.component.js +70 -0
- package/esm5/lib/components/commands/command-menu/command-menu.component.js.map +1 -0
- package/esm5/lib/components/commands/command-menu/command-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map +1 -0
- 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/components.module.js +17 -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 +5 -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 +363 -74
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +421 -98
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-bar.component.d.ts +11 -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-menu/command-menu.component.d.ts +22 -0
- package/lib/components/commands/command.component.d.ts +15 -0
- package/lib/components/icon/icon.component.d.ts +15 -0
- package/lib/components/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-container.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-container.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { __decorate, __extends, __metadata, __param } from "tslib";
|
|
2
|
+
import { Component, HostBinding, Input, Optional, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
4
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
5
|
+
import { CommandContainer } from '../command-container';
|
|
6
|
+
import { CommandFace } from '../command-face';
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var CommandFaceComponent = /** @class */ (function (_super) {
|
|
11
|
+
__extends(CommandFaceComponent, _super);
|
|
12
|
+
function CommandFaceComponent(commandContainer) {
|
|
13
|
+
var _this = _super.call(this) || this;
|
|
14
|
+
_this.commandContainer = commandContainer;
|
|
15
|
+
_this.faceModel = new MutableValueModel();
|
|
16
|
+
_this.ignoreIcon = false;
|
|
17
|
+
_this.ignoreText = false;
|
|
18
|
+
_this.includeMissingIconInLayout = false;
|
|
19
|
+
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;
|
|
20
|
+
// overkill /c: when all you have is a hammer...
|
|
21
|
+
var faceAdapter = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); });
|
|
22
|
+
_this.iconModel = faceAdapter.pluck('icon');
|
|
23
|
+
_this.textModel = faceAdapter.pluck('text');
|
|
24
|
+
_this.positionModel = faceAdapter.pluck('iconPosition');
|
|
25
|
+
_this.destructiveModel = faceAdapter.pluck('destructive');
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Object.defineProperty(CommandFaceComponent.prototype, "requiresMissingIconInLayout", {
|
|
29
|
+
get: function () {
|
|
30
|
+
return this.includeMissingIconInLayout && !this.iconModel.value;
|
|
31
|
+
},
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
CommandFaceComponent.prototype.ngOnInit = function () {
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(CommandFaceComponent.prototype, "iconPosition", {
|
|
38
|
+
get: function () {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
return (_c = (_a = this.positionModel.value) !== null && _a !== void 0 ? _a : (_b = this.commandContainer) === null || _b === void 0 ? void 0 : _b.getDefaultIconPosition()) !== null && _c !== void 0 ? _c : CommandFace.Position.START;
|
|
41
|
+
},
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(CommandFaceComponent.prototype, "shouldIncludeIcon", {
|
|
46
|
+
get: function () {
|
|
47
|
+
return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;
|
|
48
|
+
},
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(CommandFaceComponent.prototype, "iconStart", {
|
|
53
|
+
get: function () {
|
|
54
|
+
return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.START;
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(CommandFaceComponent.prototype, "iconEnd", {
|
|
60
|
+
get: function () {
|
|
61
|
+
return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.END;
|
|
62
|
+
},
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(CommandFaceComponent.prototype, "text", {
|
|
67
|
+
get: function () {
|
|
68
|
+
return this.ignoreText ? undefined : this.textModel.value;
|
|
69
|
+
},
|
|
70
|
+
enumerable: true,
|
|
71
|
+
configurable: true
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(CommandFaceComponent.prototype, "destructive", {
|
|
74
|
+
get: function () {
|
|
75
|
+
return this.destructiveModel.value;
|
|
76
|
+
},
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true
|
|
79
|
+
});
|
|
80
|
+
CommandFaceComponent.ctorParameters = function () { return [
|
|
81
|
+
{ type: CommandContainer, decorators: [{ type: Optional }] }
|
|
82
|
+
]; };
|
|
83
|
+
__decorate([
|
|
84
|
+
Input('face'), StoreInValueModel('faceModel'),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], CommandFaceComponent.prototype, "_rawFace", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
Input(),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], CommandFaceComponent.prototype, "ignoreIcon", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
Input(),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], CommandFaceComponent.prototype, "ignoreText", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
Input(),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], CommandFaceComponent.prototype, "includeMissingIconInLayout", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
HostBinding('class.hide-icon'),
|
|
101
|
+
__metadata("design:type", Object),
|
|
102
|
+
__metadata("design:paramtypes", [])
|
|
103
|
+
], CommandFaceComponent.prototype, "requiresMissingIconInLayout", null);
|
|
104
|
+
__decorate([
|
|
105
|
+
HostBinding('class.destructive'),
|
|
106
|
+
__metadata("design:type", Boolean),
|
|
107
|
+
__metadata("design:paramtypes", [])
|
|
108
|
+
], CommandFaceComponent.prototype, "destructive", null);
|
|
109
|
+
CommandFaceComponent = __decorate([
|
|
110
|
+
Component({
|
|
111
|
+
selector: 'aup-command-face',
|
|
112
|
+
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",
|
|
113
|
+
encapsulation: ViewEncapsulation.None,
|
|
114
|
+
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}"]
|
|
115
|
+
}),
|
|
116
|
+
__param(0, Optional()),
|
|
117
|
+
__metadata("design:paramtypes", [CommandContainer])
|
|
118
|
+
], CommandFaceComponent);
|
|
119
|
+
return CommandFaceComponent;
|
|
120
|
+
}(DisposableComponent));
|
|
121
|
+
export { CommandFaceComponent };
|
|
122
|
+
//# sourceMappingURL=command-face.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-face.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-face/command-face.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAU,QAAQ,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEnG,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,iBAAiB,EAAmB,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;GAEG;AAOH;IAA6C,wCAAmB;IA2B9D,8BAAiC,gBAAkC;QAAnE,YACE,iBAAO,SAQR;QATgC,sBAAgB,GAAhB,gBAAgB,CAAkB;QAzBlD,eAAS,GAAG,IAAI,iBAAiB,EAAe,CAAC;QAOlE,gBAAU,GAAG,KAAK,CAAC;QAGnB,gBAAU,GAAG,KAAK,CAAC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Y,KAAK,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;QACrF,CAAC;;;OAAA;IAED,sBAAI,yCAAO;aAAX;YACE,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,YAAY,KAAK,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;QAClF,CAAC;;;OAAA;IAED,sBAAI,sCAAI;aAAR;YACE,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QAC5D,CAAC;;;OAAA;IAGD,sBAAI,6CAAW;aAAf;YACE,OAAO,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC;QACrC,CAAC;;;OAAA;;gBArCkD,gBAAgB,uBAAtD,QAAQ;;IArBrB;QADC,KAAK,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC;;0DACxB;IAGtB;QADC,KAAK,EAAE;;4DACW;IAGnB;QADC,KAAK,EAAE;;4DACW;IAGnB;QADC,KAAK,EAAE;;4EAC2B;IAGnC;QADC,WAAW,CAAC,iBAAiB,CAAC;;;2EAG9B;IA0CD;QADC,WAAW,CAAC,mBAAmB,CAAC;;;2DAGhC;IAhEU,oBAAoB;QANhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,sMAA4C;YAE5C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;SACtC,CAAC;QA4Ba,WAAA,QAAQ,EAAE,CAAA;yCAA4B,gBAAgB;OA3BxD,oBAAoB,CAkEhC;IAAD,2BAAC;CAAA,AAlED,CAA6C,mBAAmB,GAkE/D;SAlEY,oBAAoB","sourcesContent":["import { Component, HostBinding, Input, OnInit, Optional, ViewEncapsulation } from '@angular/core';\n\nimport { Dsl, MutableValueModel, StoreInValueModel, ValueModelChain } from '@coolon/pectin';\nimport { DisposableComponent } from '../../disposable-component';\nimport { CommandContainer } from '../command-container';\nimport { CommandFace } from '../command-face';\n\n/**\n *\n */\n@Component({\n selector: 'aup-command-face',\n templateUrl: './command-face.component.html',\n styleUrls: ['./command-face.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class CommandFaceComponent<T> extends DisposableComponent implements OnInit {\n\n private readonly faceModel = new MutableValueModel<CommandFace>();\n\n // tslint:disable-next-line:no-input-rename\n @Input('face') @StoreInValueModel('faceModel')\n _rawFace: CommandFace;\n\n @Input()\n ignoreIcon = false;\n\n @Input()\n ignoreText = false;\n\n @Input()\n includeMissingIconInLayout = false;\n\n @HostBinding('class.hide-icon')\n get requiresMissingIconInLayout() {\n return this.includeMissingIconInLayout && !this.iconModel.value\n }\n\n readonly iconModel: ValueModelChain<string>;\n private textModel: ValueModelChain<string>;\n readonly positionModel: ValueModelChain<string>;\n private destructiveModel: ValueModelChain<boolean>;\n\n constructor(@Optional() readonly commandContainer: CommandContainer) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n // overkill /c: when all you have is a hammer...\n const faceAdapter = chain(this.faceModel).map(face => new CommandFace.Adapter(face));\n this.iconModel = faceAdapter.pluck('icon');\n this.textModel = faceAdapter.pluck('text');\n this.positionModel = faceAdapter.pluck('iconPosition');\n this.destructiveModel = faceAdapter.pluck('destructive');\n }\n\n ngOnInit() {\n }\n\n get iconPosition(): string {\n return this.positionModel.value ?? this.commandContainer?.getDefaultIconPosition() ?? CommandFace.Position.START;\n }\n\n get shouldIncludeIcon() {\n return (!this.ignoreIcon && this.iconModel.value) || this.includeMissingIconInLayout;\n }\n\n get iconStart(): boolean {\n return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.START;\n }\n\n get iconEnd(): boolean {\n return this.shouldIncludeIcon && this.iconPosition === CommandFace.Position.END;\n }\n\n get text(): string {\n return this.ignoreText ? undefined : this.textModel.value;\n }\n\n @HostBinding('class.destructive')\n get destructive(): boolean {\n return this.destructiveModel.value;\n }\n\n}\n"]}
|
|
@@ -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"]}
|
|
@@ -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"]}
|
|
@@ -28,7 +28,7 @@ export var CommandFace;
|
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(Adapter.prototype, "iconPosition", {
|
|
30
30
|
get: function () {
|
|
31
|
-
return _.isFunction(this.face.iconPosition) ? this.face.iconPosition() :
|
|
31
|
+
return _.isFunction(this.face.iconPosition) ? this.face.iconPosition() : undefined;
|
|
32
32
|
},
|
|
33
33
|
enumerable: true,
|
|
34
34
|
configurable: true
|
|
@@ -54,6 +54,13 @@ export var CommandFace;
|
|
|
54
54
|
enumerable: true,
|
|
55
55
|
configurable: true
|
|
56
56
|
});
|
|
57
|
+
Object.defineProperty(Adapter.prototype, "destructive", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return _.isFunction(this.face.destructive) ? this.face.destructive() : false;
|
|
60
|
+
},
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
57
64
|
__decorate([
|
|
58
65
|
Memoize(),
|
|
59
66
|
__metadata("design:type", Object),
|
|
@@ -84,6 +91,11 @@ export var CommandFace;
|
|
|
84
91
|
__metadata("design:type", Boolean),
|
|
85
92
|
__metadata("design:paramtypes", [])
|
|
86
93
|
], Adapter.prototype, "iconPositionEnd", null);
|
|
94
|
+
__decorate([
|
|
95
|
+
Memoize(),
|
|
96
|
+
__metadata("design:type", Boolean),
|
|
97
|
+
__metadata("design:paramtypes", [])
|
|
98
|
+
], Adapter.prototype, "destructive", null);
|
|
87
99
|
return Adapter;
|
|
88
100
|
}());
|
|
89
101
|
CommandFace.Adapter = Adapter;
|
|
@@ -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;QACE,iBAAqB,IAAiB;YAAjB,SAAI,GAAJ,IAAI,CAAa;QACtC,CAAC;QAGD,sBAAI,yBAAI;iBAAR;gBACE,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACrE,CAAC;;;WAAA;QAGD,sBAAI,yBAAI;iBAAR;gBACE,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACrE,CAAC;;;WAAA;QAGD,sBAAI,iCAAY;iBAAhB;gBACE,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACrF,CAAC;;;WAAA;QAGD,sBAAI,4BAAO;iBAAX;gBACE,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAC3E,CAAC;;;WAAA;QAGD,sBAAI,sCAAiB;iBAArB;gBACE,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC1D,CAAC;;;WAAA;QAGD,sBAAI,oCAAe;iBAAnB;gBACE,OAAO,IAAI,CAAC,YAAY,KAAK,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;YACxD,CAAC;;;WAAA;QAGD,sBAAI,gCAAW;iBAAf;gBACE,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;YAC/E,CAAC;;;WAAA;QAhCD;YADC,OAAO,EAAE;;;2CAGT;QAGD;YADC,OAAO,EAAE;;;2CAGT;QAGD;YADC,OAAO,EAAE;;;mDAGT;QAGD;YADC,OAAO,EAAE;;;8CAGT;QAGD;YADC,OAAO,EAAE;;;wDAGT;QAGD;YADC,OAAO,EAAE;;;sDAGT;QAGD;YADC,OAAO,EAAE;;;kDAGT;QAEH,cAAC;KAAA,AAvCD,IAuCC;IAvCY,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,70 @@
|
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
2
|
+
import { Component, forwardRef, Input, ViewChild } from '@angular/core';
|
|
3
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
+
import { Dsl, MutableValueModel, StoreInValueModel } from '@coolon/pectin';
|
|
5
|
+
import { CommandContainer } from '../command-container';
|
|
6
|
+
import { CommandFace } from '../command-face';
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var CommandMenuComponent = /** @class */ (function (_super) {
|
|
11
|
+
__extends(CommandMenuComponent, _super);
|
|
12
|
+
function CommandMenuComponent() {
|
|
13
|
+
var _this = _super.call(this) || this;
|
|
14
|
+
_this.faceModel = new MutableValueModel();
|
|
15
|
+
_this.xPosition = 'after';
|
|
16
|
+
_this.yPosition = 'below';
|
|
17
|
+
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;
|
|
18
|
+
_this.tooltip = chain(_this.faceModel).map(function (face) { return new CommandFace.Adapter(face); }).pluck('tooltip');
|
|
19
|
+
var registrations = chain(_this.commandRegistrations);
|
|
20
|
+
var iconCount = registrations.select(function (r) { return !!r.icon; }).count();
|
|
21
|
+
_this.hasMixedIcons = valueOf.all(iconCount.isGreaterThan(0), iconCount.doesNotEqual(registrations.length)).areTruthy();
|
|
22
|
+
return _this;
|
|
23
|
+
}
|
|
24
|
+
CommandMenuComponent_1 = CommandMenuComponent;
|
|
25
|
+
CommandMenuComponent.prototype.ngOnInit = function () {
|
|
26
|
+
};
|
|
27
|
+
CommandMenuComponent.prototype.createMoreMenuCommand = function (item) {
|
|
28
|
+
var _this = this;
|
|
29
|
+
var when = Dsl.disposeWith(this).when;
|
|
30
|
+
when(item.command.busy).becomesFalsey(function () {
|
|
31
|
+
_this.closeMoreMenu();
|
|
32
|
+
});
|
|
33
|
+
return item.command;
|
|
34
|
+
};
|
|
35
|
+
CommandMenuComponent.prototype.closeMoreMenu = function () {
|
|
36
|
+
this.menu.closeMenu();
|
|
37
|
+
};
|
|
38
|
+
CommandMenuComponent.prototype.getButtonColor = function (registration) {
|
|
39
|
+
return registration.destructive ? 'warn' : undefined;
|
|
40
|
+
};
|
|
41
|
+
var CommandMenuComponent_1;
|
|
42
|
+
__decorate([
|
|
43
|
+
Input(), StoreInValueModel('faceModel'),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], CommandMenuComponent.prototype, "face", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Input(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CommandMenuComponent.prototype, "xPosition", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Input(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CommandMenuComponent.prototype, "yPosition", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
ViewChild(MatMenuTrigger),
|
|
56
|
+
__metadata("design:type", MatMenuTrigger)
|
|
57
|
+
], CommandMenuComponent.prototype, "menu", void 0);
|
|
58
|
+
CommandMenuComponent = CommandMenuComponent_1 = __decorate([
|
|
59
|
+
Component({
|
|
60
|
+
selector: 'aup-command-menu',
|
|
61
|
+
template: "<button #trigger mat-icon-button [matMenuTriggerFor]=\"menu\" [matTooltip]=\"tooltip.value\">\n <aup-command-face [face]=\"face\"></aup-command-face>\n</button>\n<mat-menu #menu=\"matMenu\" [xPosition]=\"xPosition\" [yPosition]=\"yPosition\">\n <button *ngFor=\"let registration of commandRegistrations.value\"\n mat-menu-item\n [pectinCommand]=\"createMoreMenuCommand(registration)\"\n >\n <aup-command-face [face]=\"registration.face\" [includeMissingIconInLayout]=\"hasMixedIcons.value\"></aup-command-face>\n </button>\n</mat-menu>\n",
|
|
62
|
+
providers: [{ provide: CommandContainer, useExisting: forwardRef(function () { return CommandMenuComponent_1; }) }],
|
|
63
|
+
styles: [":host{display:inline-flex;flex-direction:row;align-items:center}"]
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:paramtypes", [])
|
|
66
|
+
], CommandMenuComponent);
|
|
67
|
+
return CommandMenuComponent;
|
|
68
|
+
}(CommandContainer));
|
|
69
|
+
export { CommandMenuComponent };
|
|
70
|
+
//# sourceMappingURL=command-menu.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-menu.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-menu/command-menu.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAGL,GAAG,EACH,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,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,CAAC,OAAO,CAAC;IACtB,CAAC;IAEO,4CAAa,GAArB;QACE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC;IAED,6CAAc,GAAd,UAAe,YAA2C;QACxD,OAAO,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACvD,CAAC;;IA5CD;QADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,WAAW,CAAC;;sDACtB;IAGlB;QADC,KAAK,EAAE;;2DACgC;IAGxC;QADC,KAAK,EAAE;;2DAC+B;IAGvC;QADC,SAAS,CAAC,cAAc,CAAC;kCACpB,cAAc;sDAAC;IAdV,oBAAoB;QANhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,8jBAA4C;YAE5C,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,sBAAoB,EAApB,CAAoB,CAAC,EAAE,CAAC;;SAChG,CAAC;;OACW,oBAAoB,CAmDhC;IAAD,2BAAC;CAAA,AAnDD,CAA0C,gBAAgB,GAmDzD;SAnDY,oBAAoB","sourcesContent":["import { Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\n\nimport {\n BooleanValueModelChain,\n Command,\n Dsl,\n MutableValueModel,\n StoreInValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { CommandContainer } from '../command-container';\nimport { CommandFace } from '../command-face';\n\n\n/**\n *\n */\n@Component({\n selector: 'aup-command-menu',\n templateUrl: './command-menu.component.html',\n styleUrls: ['./command-menu.component.scss'],\n providers: [{ provide: CommandContainer, useExisting: forwardRef(() => CommandMenuComponent) }]\n})\nexport class CommandMenuComponent extends CommandContainer implements OnInit {\n\n private readonly faceModel = new MutableValueModel<CommandFace>();\n\n @Input() @StoreInValueModel('faceModel')\n face: CommandFace;\n\n @Input()\n xPosition: 'before' | 'after' = 'after';\n\n @Input()\n yPosition: 'above' | 'below' = 'below';\n\n @ViewChild(MatMenuTrigger)\n menu: MatMenuTrigger;\n\n readonly tooltip: ValueModelChain<string>;\n readonly hasMixedIcons: BooleanValueModelChain;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.tooltip = chain(this.faceModel).map(face => new CommandFace.Adapter(face)).pluck('tooltip');\n\n const registrations = chain(this.commandRegistrations);\n const iconCount = registrations.select(r => !!r.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 createMoreMenuCommand(item: CommandContainer.Registration): Command<unknown> {\n const { when } = Dsl.disposeWith(this);\n when(item.command.busy).becomesFalsey(() => {\n this.closeMoreMenu();\n });\n return item.command;\n }\n\n private closeMoreMenu() {\n this.menu.closeMenu();\n }\n\n getButtonColor(registration: CommandContainer.Registration) {\n return registration.destructive ? 'warn' : undefined;\n }\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-menu.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-menu/command-menu.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
package/esm5/lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-menu.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/commands/command-menu/command-menu.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
|
@@ -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;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"]}
|
|
@@ -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"]}
|
|
@@ -21,6 +21,11 @@ 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 { CommandContainer } from './commands/command-container';
|
|
26
|
+
import { CommandFaceComponent } from './commands/command-face/command-face.component';
|
|
27
|
+
import { CommandComponent } from './commands/command.component';
|
|
28
|
+
import { CommandMenuComponent } from './commands/command-menu/command-menu.component';
|
|
24
29
|
import { FocusContainerComponent } from './focus-container/focus-container.component';
|
|
25
30
|
import { FocusableComponent } from './focusable.component';
|
|
26
31
|
import { AbstractInputComponent } from './forms/abstract-input.component';
|
|
@@ -91,7 +96,12 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
91
96
|
TableHeaderCellRendererComponent,
|
|
92
97
|
IconComponent,
|
|
93
98
|
SectionHeaderComponent,
|
|
94
|
-
TableRowMenuComponent
|
|
99
|
+
TableRowMenuComponent,
|
|
100
|
+
CommandBarComponent,
|
|
101
|
+
CommandComponent,
|
|
102
|
+
CommandMenuComponent,
|
|
103
|
+
CommandFaceComponent,
|
|
104
|
+
CommandContainer
|
|
95
105
|
],
|
|
96
106
|
imports: [
|
|
97
107
|
CommonModule,
|
|
@@ -137,7 +147,12 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
137
147
|
ColumnTemplateDirective,
|
|
138
148
|
IconComponent,
|
|
139
149
|
SectionHeaderComponent,
|
|
140
|
-
TableRowMenuComponent
|
|
150
|
+
TableRowMenuComponent,
|
|
151
|
+
CommandBarComponent,
|
|
152
|
+
CommandComponent,
|
|
153
|
+
CommandMenuComponent,
|
|
154
|
+
CommandFaceComponent,
|
|
155
|
+
CommandContainer
|
|
141
156
|
],
|
|
142
157
|
providers: [
|
|
143
158
|
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,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;A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AAa;gBACb,sBAAsB;gBACtB,qBAAqB;aACtB;YACD,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,WAAW;gBACX,cAAc;gBACd,kBAAkB;gBAClB,eAAe;gBACf,aAAa;gBACb,gBAAgB;gBAChB,aAAa;gBACb,eAAe;gBACf,iBAAiB;gBACjB,cAAc;gBACd,YAAY;gBACZ,mBAAmB;gBACnB,iBAAiB;gBACjB,gBAAgB;gBAChB,qBAAqB;gBACrB,wBAAwB;gBACxB,aAAa;aACd;YACD,OAAO,EAAE;gBACP,oBAAoB;gBACpB,oBAAoB;gBACpB,kBAAkB;gBAClB,sBAAsB;gBACtB,sBAAsB;gBACtB,oBAAoB;gBACpB,4BAA4B;gBAC5B,0BAA0B;gBAC1B,wBAAwB;gBACxB,aAAa;gBACb,mBAAmB;gBACnB,uBAAuB;gBACvB,0BAA0B;gBAC1B,uBAAuB;gBACvB,+BAA+B;gBAC/B,kBAAkB;gBAClB,sBAAsB;gBACtB,cAAc;gBACd,eAAe;gBACf,uBAAuB;gBACvB,aAAa;gBACb,sBAAsB;gBACtB,qBAAqB;aACtB;YACD,SAAS,EAAE;gBACT,mBAAmB;gBACnB,IAAI;gBACJ,mDAAmD;gBACnD,sBAAsB;gBACtB,wCAAwC;gBACxC,mBAAmB;gBACnB,KAAK;gBACL,IAAI;gBACJ,mDAAmD;gBACnD,sBAAsB;gBACtB,wCAAwC;gBACxC,mBAAmB;gBACnB,IAAI;aACL;SAEF,CAAC;yCAG2B,aAAa;OAF7B,gBAAgB,CAM5B;IAAD,uBAAC;CAAA,AAND,IAMC;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,M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AAa;gBACb,mBAAmB;gBACnB,uBAAuB;gBACvB,0BAA0B;gBAC1B,uBAAuB;gBACvB,+BAA+B;gBAC/B,kBAAkB;gBAClB,sBAAsB;gBACtB,cAAc;gBACd,eAAe;gBACf,uBAAuB;gBACvB,aAAa;gBACb,sBAAsB;gBACtB,qBAAqB;gBACrB,mBAAmB;gBACnB,gBAAgB;gBAChB,oBAAoB;gBACpB,oBAAoB;gBACpB,gBAAgB;aACjB;YACD,SAAS,EAAE;gBACT,mBAAmB;gBACnB,IAAI;gBACJ,mDAAmD;gBACnD,sBAAsB;gBACtB,wCAAwC;gBACxC,mBAAmB;gBACnB,KAAK;gBACL,IAAI;gBACJ,mDAAmD;gBACnD,sBAAsB;gBACtB,wCAAwC;gBACxC,mBAAmB;gBACnB,IAAI;aACL;SAEF,CAAC;yCAG2B,aAAa;OAF7B,gBAAgB,CAM5B;IAAD,uBAAC;CAAA,AAND,IAMC;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 { CommandMenuComponent } from './commands/command-menu/command-menu.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 CommandMenuComponent,\n CommandFaceComponent,\n CommandContainer\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 CommandMenuComponent,\n CommandFaceComponent,\n CommandContainer\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"]}
|