@coolon/angular-ui-powerups 2.0.0-alpha.24 → 2.0.0-alpha.25
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/bundles/coolon-angular-ui-powerups.umd.js +21 -21
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/commands/command-face.js +8 -8
- package/esm2015/lib/components/commands/command-face.js.map +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +6 -6
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -1
- package/esm5/lib/components/commands/command-face.js +16 -16
- package/esm5/lib/components/commands/command-face.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +5 -5
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +14 -14
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +21 -21
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-face.d.ts +1 -1
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -2265,7 +2265,7 @@ var CommandFace;
|
|
|
2265
2265
|
Position["START"] = "start";
|
|
2266
2266
|
Position["END"] = "end";
|
|
2267
2267
|
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
2268
|
-
class
|
|
2268
|
+
class Adapter {
|
|
2269
2269
|
constructor(face) {
|
|
2270
2270
|
this.face = face;
|
|
2271
2271
|
}
|
|
@@ -2292,36 +2292,36 @@ var CommandFace;
|
|
|
2292
2292
|
Memoize(),
|
|
2293
2293
|
__metadata("design:type", Object),
|
|
2294
2294
|
__metadata("design:paramtypes", [])
|
|
2295
|
-
],
|
|
2295
|
+
], Adapter.prototype, "text", null);
|
|
2296
2296
|
__decorate([
|
|
2297
2297
|
Memoize(),
|
|
2298
2298
|
__metadata("design:type", Object),
|
|
2299
2299
|
__metadata("design:paramtypes", [])
|
|
2300
|
-
],
|
|
2300
|
+
], Adapter.prototype, "icon", null);
|
|
2301
2301
|
__decorate([
|
|
2302
2302
|
Memoize(),
|
|
2303
2303
|
__metadata("design:type", Object),
|
|
2304
2304
|
__metadata("design:paramtypes", [])
|
|
2305
|
-
],
|
|
2305
|
+
], Adapter.prototype, "iconPosition", null);
|
|
2306
2306
|
__decorate([
|
|
2307
2307
|
Memoize(),
|
|
2308
2308
|
__metadata("design:type", Object),
|
|
2309
2309
|
__metadata("design:paramtypes", [])
|
|
2310
|
-
],
|
|
2310
|
+
], Adapter.prototype, "tooltip", null);
|
|
2311
2311
|
__decorate([
|
|
2312
2312
|
Memoize(),
|
|
2313
2313
|
__metadata("design:type", Boolean),
|
|
2314
2314
|
__metadata("design:paramtypes", [])
|
|
2315
|
-
],
|
|
2315
|
+
], Adapter.prototype, "iconPositionStart", null);
|
|
2316
2316
|
__decorate([
|
|
2317
2317
|
Memoize(),
|
|
2318
2318
|
__metadata("design:type", Boolean),
|
|
2319
2319
|
__metadata("design:paramtypes", [])
|
|
2320
|
-
],
|
|
2321
|
-
CommandFace.
|
|
2320
|
+
], Adapter.prototype, "iconPositionEnd", null);
|
|
2321
|
+
CommandFace.Adapter = Adapter;
|
|
2322
2322
|
})(CommandFace || (CommandFace = {}));
|
|
2323
2323
|
|
|
2324
|
-
class MenuItemData extends CommandFace.
|
|
2324
|
+
class MenuItemData extends CommandFace.Adapter {
|
|
2325
2325
|
constructor(factory, face) {
|
|
2326
2326
|
super(face);
|
|
2327
2327
|
this.factory = factory;
|
|
@@ -2344,15 +2344,15 @@ let TableRowMenuComponent = class TableRowMenuComponent extends DisposableCompon
|
|
|
2344
2344
|
}
|
|
2345
2345
|
ngOnInit() {
|
|
2346
2346
|
}
|
|
2347
|
-
|
|
2347
|
+
createMoreMenuCommand(item, value) {
|
|
2348
2348
|
const { when } = Dsl.disposeWith(this);
|
|
2349
2349
|
const command = item.factory.create(value);
|
|
2350
2350
|
when(command.busy).becomesFalsey(() => {
|
|
2351
|
-
this.
|
|
2351
|
+
this.closeMoreMenu();
|
|
2352
2352
|
});
|
|
2353
2353
|
return command;
|
|
2354
2354
|
}
|
|
2355
|
-
|
|
2355
|
+
closeMoreMenu() {
|
|
2356
2356
|
this.menu.closeMenu();
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
@@ -2368,7 +2368,7 @@ TableRowMenuComponent = __decorate([
|
|
|
2368
2368
|
Component({
|
|
2369
2369
|
selector: 'aup-table-row-menu',
|
|
2370
2370
|
template: `
|
|
2371
|
-
<button mat-icon-button *ngFor="let action of actions" [pectinCommand]="
|
|
2371
|
+
<button mat-icon-button *ngFor="let action of actions" [pectinCommand]="action.factory.create(value)">
|
|
2372
2372
|
<aup-icon [icon]="action.icon"></aup-icon>
|
|
2373
2373
|
</button>
|
|
2374
2374
|
<ng-container *ngIf="moreActions.length > 0">
|
|
@@ -2378,7 +2378,7 @@ TableRowMenuComponent = __decorate([
|
|
|
2378
2378
|
<mat-menu #menu="matMenu" xPosition="before" matTooltip="More options...">
|
|
2379
2379
|
<button *ngFor="let action of moreActions"
|
|
2380
2380
|
mat-menu-item
|
|
2381
|
-
[pectinCommand]="
|
|
2381
|
+
[pectinCommand]="createMoreMenuCommand(action, value)"
|
|
2382
2382
|
>
|
|
2383
2383
|
<aup-icon *ngIf="action.icon && action.iconPositionStart" [icon]="action.icon"></aup-icon>
|
|
2384
2384
|
{{action.text}}
|