@coolon/angular-ui-powerups 1.16.0 → 1.17.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.
@@ -2323,11 +2323,21 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
2323
2323
  enumerable: true,
2324
2324
  configurable: true
2325
2325
  });
2326
+ Object.defineProperty(ActivityActionsComponent.prototype, "alignStretch", {
2327
+ get: function () {
2328
+ return this.align === 'stretch';
2329
+ },
2330
+ enumerable: true,
2331
+ configurable: true
2332
+ });
2326
2333
  ActivityActionsComponent.prototype.ngOnInit = function () {
2327
2334
  };
2328
2335
  ActivityActionsComponent.prototype.hasConfirmText = function () {
2329
2336
  return !___default.isEmpty(this.confirmText);
2330
2337
  };
2338
+ ActivityActionsComponent.prototype.hasCancelText = function () {
2339
+ return !___default.isEmpty(this.cancelText);
2340
+ };
2331
2341
  __decorate([
2332
2342
  Input(),
2333
2343
  TrackExternal(),
@@ -2342,6 +2352,10 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
2342
2352
  TrackExternal(),
2343
2353
  __metadata("design:type", Command)
2344
2354
  ], ActivityActionsComponent.prototype, "cancelCommand", void 0);
2355
+ __decorate([
2356
+ Input(),
2357
+ __metadata("design:type", String)
2358
+ ], ActivityActionsComponent.prototype, "cancelText", void 0);
2345
2359
  __decorate([
2346
2360
  Input(),
2347
2361
  __metadata("design:type", String)
@@ -2351,11 +2365,16 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
2351
2365
  __metadata("design:type", Boolean),
2352
2366
  __metadata("design:paramtypes", [])
2353
2367
  ], ActivityActionsComponent.prototype, "alignEnd", null);
2368
+ __decorate([
2369
+ HostBinding('class.align-stretch'),
2370
+ __metadata("design:type", Boolean),
2371
+ __metadata("design:paramtypes", [])
2372
+ ], ActivityActionsComponent.prototype, "alignStretch", null);
2354
2373
  ActivityActionsComponent = __decorate([
2355
2374
  Component({
2356
2375
  selector: 'aup-activity-actions',
2357
- template: "<button class=\"cancel\" 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",
2358
- 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}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.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}"]
2376
+ 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",
2377
+ 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}"]
2359
2378
  })
2360
2379
  ], ActivityActionsComponent);
2361
2380
  return ActivityActionsComponent;