@coolon/angular-ui-powerups 1.18.1 → 1.19.0

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.19.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.18.1...v1.19.0) (2020-06-25)
6
+
7
+
8
+ ### Features
9
+
10
+ * activity-actions now allows commands to be optional ([302136e](https://bitbucket.org/coolon/angular-ui-powerups/commit/302136ecfca01858da3b0846bc0ac4f38fc7fa71))
11
+
5
12
  ### [1.18.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.18.0...v1.18.1) (2020-06-24)
6
13
 
7
14
 
@@ -2577,6 +2577,12 @@
2577
2577
  ActivityActionsComponent.prototype.hasCancelText = function () {
2578
2578
  return !___default__default.isEmpty(this.cancelText);
2579
2579
  };
2580
+ ActivityActionsComponent.prototype.hasConfirmCommand = function () {
2581
+ return pectin.DelegatingCommand.hasDelegate(this.confirmCommand);
2582
+ };
2583
+ ActivityActionsComponent.prototype.hasCancelCommand = function () {
2584
+ return pectin.DelegatingCommand.hasDelegate(this.cancelCommand);
2585
+ };
2580
2586
  __decorate([
2581
2587
  core.Input(),
2582
2588
  pectin.TrackExternal(),
@@ -2612,7 +2618,7 @@
2612
2618
  ActivityActionsComponent = __decorate([
2613
2619
  core.Component({
2614
2620
  selector: 'aup-activity-actions',
2615
- template: "<button class=\"cancel\" *ngIf=\"hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">{{cancelText}}</button>\n<button class=\"cancel\" *ngIf=\"!hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"done\"></aup-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
2621
+ template: "<ng-container *ngIf=\"hasCancelCommand()\">\n <button class=\"cancel\" *ngIf=\"!hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n </button>\n <button class=\"cancel\" *ngIf=\"hasCancelText()\" mat-button [pectinCommand]=\"cancelCommand\">{{cancelText}}</button>\n</ng-container>\n<ng-container *ngIf=\"hasConfirmCommand()\">\n <button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"mat:done\"></aup-icon>\n </button>\n <button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n</ng-container>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
2616
2622
  styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}"]
2617
2623
  })
2618
2624
  ], ActivityActionsComponent);