@firestitch/form 9.7.1 → 9.7.2

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.
@@ -2180,8 +2180,9 @@ var FsFormDialogActionsComponent = /** @class */ (function () {
2180
2180
  function FsFormDialogActionsComponent(_form, _cdRef) {
2181
2181
  this._form = _form;
2182
2182
  this._cdRef = _cdRef;
2183
+ this.save = true;
2183
2184
  this.create = false;
2184
- this.close = true;
2185
+ this.close = false;
2185
2186
  this.dirty = false;
2186
2187
  this._destroy$ = new Subject();
2187
2188
  }
@@ -2208,6 +2209,10 @@ var FsFormDialogActionsComponent = /** @class */ (function () {
2208
2209
  { type: FsFormDirective, decorators: [{ type: Optional }] },
2209
2210
  { type: ChangeDetectorRef }
2210
2211
  ]; };
2212
+ __decorate([
2213
+ Input(),
2214
+ __metadata("design:type", Object)
2215
+ ], FsFormDialogActionsComponent.prototype, "save", void 0);
2211
2216
  __decorate([
2212
2217
  Input(),
2213
2218
  __metadata("design:type", Object)
@@ -2223,8 +2228,9 @@ var FsFormDialogActionsComponent = /** @class */ (function () {
2223
2228
  FsFormDialogActionsComponent = __decorate([
2224
2229
  Component({
2225
2230
  selector: 'fs-form-dialog-actions',
2226
- template: "<button \r\n mat-button \r\n type=\"button\"\r\n color=\"primary\" \r\n *ngIf=\"close && !dirty && !create\"\r\n [matDialogClose]=\"null\">\r\n Close\r\n</button>\r\n<button \r\n mat-button \r\n *ngIf=\"dirty || create || !close\"\r\n type=\"submit\"\r\n color=\"primary\" \r\n [name]=\"name\">\r\n {{create ? 'Create' : 'Save'}}\r\n</button>\r\n<ng-content></ng-content>\r\n<button \r\n mat-button \r\n type=\"button\"\r\n *ngIf=\"dirty || create || !close\"\r\n [matDialogClose]=\"null\">\r\n Cancel\r\n</button>\r\n",
2227
- changeDetection: ChangeDetectionStrategy.OnPush
2231
+ template: "<div class=\"buttons\">\r\n <ng-container *ngIf=\"save\">\r\n <button \r\n mat-button \r\n type=\"submit\"\r\n color=\"primary\" \r\n [name]=\"name\">\r\n {{create ? 'Create' : 'Save'}}\r\n </button>\r\n <button \r\n mat-button \r\n type=\"button\"\r\n [disabled]=\"!dirty && !create\"\r\n [matDialogClose]=\"null\">\r\n Cancel\r\n </button>\r\n </ng-container>\r\n\r\n <ng-content></ng-content>\r\n <div class=\"close\" *ngIf=\"close\">\r\n <button \r\n mat-button \r\n type=\"button\"\r\n [color]=\"dirty ? 'basic' : 'primary'\"\r\n [matDialogClose]=\"null\">\r\n Close\r\n </button>\r\n </div>\r\n</div>",
2232
+ changeDetection: ChangeDetectionStrategy.OnPush,
2233
+ styles: [".buttons{display:flex;flex-grow:1;align-items:center}.buttons .close{display:flex;flex-grow:1;justify-content:flex-end}:host{display:flex;flex-grow:1}"]
2228
2234
  }),
2229
2235
  __param(0, Optional()),
2230
2236
  __metadata("design:paramtypes", [FsFormDirective,