@coolon/angular-ui-powerups 2.0.0-alpha.23 → 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 +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +24 -24
- 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 +11 -11
- 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 +19 -19
- 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 +17 -17
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +24 -24
- 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
|
@@ -2500,46 +2500,46 @@ var CommandFace;
|
|
|
2500
2500
|
Position["START"] = "start";
|
|
2501
2501
|
Position["END"] = "end";
|
|
2502
2502
|
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
2503
|
-
var
|
|
2504
|
-
function
|
|
2503
|
+
var Adapter = /** @class */ (function () {
|
|
2504
|
+
function Adapter(face) {
|
|
2505
2505
|
this.face = face;
|
|
2506
2506
|
}
|
|
2507
|
-
Object.defineProperty(
|
|
2507
|
+
Object.defineProperty(Adapter.prototype, "text", {
|
|
2508
2508
|
get: function () {
|
|
2509
|
-
return ___default.isFunction(this.face.text) ? this.face.text() :
|
|
2509
|
+
return ___default.isFunction(this.face.text) ? this.face.text() : undefined;
|
|
2510
2510
|
},
|
|
2511
2511
|
enumerable: true,
|
|
2512
2512
|
configurable: true
|
|
2513
2513
|
});
|
|
2514
|
-
Object.defineProperty(
|
|
2514
|
+
Object.defineProperty(Adapter.prototype, "icon", {
|
|
2515
2515
|
get: function () {
|
|
2516
|
-
return ___default.isFunction(this.face.icon) ? this.face.icon() :
|
|
2516
|
+
return ___default.isFunction(this.face.icon) ? this.face.icon() : undefined;
|
|
2517
2517
|
},
|
|
2518
2518
|
enumerable: true,
|
|
2519
2519
|
configurable: true
|
|
2520
2520
|
});
|
|
2521
|
-
Object.defineProperty(
|
|
2521
|
+
Object.defineProperty(Adapter.prototype, "iconPosition", {
|
|
2522
2522
|
get: function () {
|
|
2523
2523
|
return ___default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : CommandFace.Position.START;
|
|
2524
2524
|
},
|
|
2525
2525
|
enumerable: true,
|
|
2526
2526
|
configurable: true
|
|
2527
2527
|
});
|
|
2528
|
-
Object.defineProperty(
|
|
2528
|
+
Object.defineProperty(Adapter.prototype, "tooltip", {
|
|
2529
2529
|
get: function () {
|
|
2530
|
-
return ___default.isFunction(this.face.tooltip) ? this.face.tooltip() :
|
|
2530
|
+
return ___default.isFunction(this.face.tooltip) ? this.face.tooltip() : undefined;
|
|
2531
2531
|
},
|
|
2532
2532
|
enumerable: true,
|
|
2533
2533
|
configurable: true
|
|
2534
2534
|
});
|
|
2535
|
-
Object.defineProperty(
|
|
2535
|
+
Object.defineProperty(Adapter.prototype, "iconPositionStart", {
|
|
2536
2536
|
get: function () {
|
|
2537
2537
|
return this.iconPosition === CommandFace.Position.START;
|
|
2538
2538
|
},
|
|
2539
2539
|
enumerable: true,
|
|
2540
2540
|
configurable: true
|
|
2541
2541
|
});
|
|
2542
|
-
Object.defineProperty(
|
|
2542
|
+
Object.defineProperty(Adapter.prototype, "iconPositionEnd", {
|
|
2543
2543
|
get: function () {
|
|
2544
2544
|
return this.iconPosition === CommandFace.Position.END;
|
|
2545
2545
|
},
|
|
@@ -2550,35 +2550,35 @@ var CommandFace;
|
|
|
2550
2550
|
Memoize(),
|
|
2551
2551
|
__metadata("design:type", Object),
|
|
2552
2552
|
__metadata("design:paramtypes", [])
|
|
2553
|
-
],
|
|
2553
|
+
], Adapter.prototype, "text", null);
|
|
2554
2554
|
__decorate([
|
|
2555
2555
|
Memoize(),
|
|
2556
2556
|
__metadata("design:type", Object),
|
|
2557
2557
|
__metadata("design:paramtypes", [])
|
|
2558
|
-
],
|
|
2558
|
+
], Adapter.prototype, "icon", null);
|
|
2559
2559
|
__decorate([
|
|
2560
2560
|
Memoize(),
|
|
2561
2561
|
__metadata("design:type", Object),
|
|
2562
2562
|
__metadata("design:paramtypes", [])
|
|
2563
|
-
],
|
|
2563
|
+
], Adapter.prototype, "iconPosition", null);
|
|
2564
2564
|
__decorate([
|
|
2565
2565
|
Memoize(),
|
|
2566
2566
|
__metadata("design:type", Object),
|
|
2567
2567
|
__metadata("design:paramtypes", [])
|
|
2568
|
-
],
|
|
2568
|
+
], Adapter.prototype, "tooltip", null);
|
|
2569
2569
|
__decorate([
|
|
2570
2570
|
Memoize(),
|
|
2571
2571
|
__metadata("design:type", Boolean),
|
|
2572
2572
|
__metadata("design:paramtypes", [])
|
|
2573
|
-
],
|
|
2573
|
+
], Adapter.prototype, "iconPositionStart", null);
|
|
2574
2574
|
__decorate([
|
|
2575
2575
|
Memoize(),
|
|
2576
2576
|
__metadata("design:type", Boolean),
|
|
2577
2577
|
__metadata("design:paramtypes", [])
|
|
2578
|
-
],
|
|
2579
|
-
return
|
|
2578
|
+
], Adapter.prototype, "iconPositionEnd", null);
|
|
2579
|
+
return Adapter;
|
|
2580
2580
|
}());
|
|
2581
|
-
CommandFace.
|
|
2581
|
+
CommandFace.Adapter = Adapter;
|
|
2582
2582
|
})(CommandFace || (CommandFace = {}));
|
|
2583
2583
|
|
|
2584
2584
|
var MenuItemData = /** @class */ (function (_super) {
|
|
@@ -2589,7 +2589,7 @@ var MenuItemData = /** @class */ (function (_super) {
|
|
|
2589
2589
|
return _this;
|
|
2590
2590
|
}
|
|
2591
2591
|
return MenuItemData;
|
|
2592
|
-
}(CommandFace.
|
|
2592
|
+
}(CommandFace.Adapter));
|
|
2593
2593
|
/**
|
|
2594
2594
|
*
|
|
2595
2595
|
*/
|
|
@@ -2609,16 +2609,16 @@ var TableRowMenuComponent = /** @class */ (function (_super) {
|
|
|
2609
2609
|
};
|
|
2610
2610
|
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
2611
2611
|
};
|
|
2612
|
-
TableRowMenuComponent.prototype.
|
|
2612
|
+
TableRowMenuComponent.prototype.createMoreMenuCommand = function (item, value) {
|
|
2613
2613
|
var _this = this;
|
|
2614
2614
|
var when = Dsl.disposeWith(this).when;
|
|
2615
2615
|
var command = item.factory.create(value);
|
|
2616
2616
|
when(command.busy).becomesFalsey(function () {
|
|
2617
|
-
_this.
|
|
2617
|
+
_this.closeMoreMenu();
|
|
2618
2618
|
});
|
|
2619
2619
|
return command;
|
|
2620
2620
|
};
|
|
2621
|
-
TableRowMenuComponent.prototype.
|
|
2621
|
+
TableRowMenuComponent.prototype.closeMoreMenu = function () {
|
|
2622
2622
|
this.menu.closeMenu();
|
|
2623
2623
|
};
|
|
2624
2624
|
__decorate([
|
|
@@ -2632,7 +2632,7 @@ var TableRowMenuComponent = /** @class */ (function (_super) {
|
|
|
2632
2632
|
TableRowMenuComponent = __decorate([
|
|
2633
2633
|
Component({
|
|
2634
2634
|
selector: 'aup-table-row-menu',
|
|
2635
|
-
template: "\n <button mat-icon-button *ngFor=\"let action of actions\" [pectinCommand]=\"
|
|
2635
|
+
template: "\n <button mat-icon-button *ngFor=\"let action of actions\" [pectinCommand]=\"action.factory.create(value)\">\n <aup-icon [icon]=\"action.icon\"></aup-icon>\n </button>\n <ng-container *ngIf=\"moreActions.length > 0\">\n <button #trigger mat-icon-button [matMenuTriggerFor]=\"menu\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n </button>\n <mat-menu #menu=\"matMenu\" xPosition=\"before\" matTooltip=\"More options...\">\n <button *ngFor=\"let action of moreActions\"\n mat-menu-item\n [pectinCommand]=\"createMoreMenuCommand(action, value)\"\n >\n <aup-icon *ngIf=\"action.icon && action.iconPositionStart\" [icon]=\"action.icon\"></aup-icon>\n {{action.text}}\n <aup-icon *ngIf=\"action.icon && action.iconPositionEnd\" [icon]=\"action.icon\"></aup-icon>\n </button>\n </mat-menu>\n </ng-container>\n ",
|
|
2636
2636
|
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
2637
2637
|
}),
|
|
2638
2638
|
__metadata("design:paramtypes", [])
|