@3kles/kles-material-dynamicforms 1.1.21 → 1.1.22

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.
@@ -1264,6 +1264,7 @@ var KlesButtonComponent = /** @class */ (function () {
1264
1264
  this.icon = '';
1265
1265
  this.iconSvg = '';
1266
1266
  this.disabled = false;
1267
+ this.type = 'submit';
1267
1268
  this.classButton = '';
1268
1269
  this.value = {};
1269
1270
  this.onChange = function () { };
@@ -1291,6 +1292,7 @@ var KlesButtonComponent = /** @class */ (function () {
1291
1292
  this.iconSvg = (uiButton.iconSvg) ? uiButton.iconSvg : this.iconSvg;
1292
1293
  this.disabled = (uiButton.disabled) ? uiButton.disabled : this.disabled;
1293
1294
  this.classButton = (uiButton.class) ? uiButton.class : this.classButton;
1295
+ this.type = (uiButton.type) ? uiButton.type : 'submit';
1294
1296
  }
1295
1297
  this.value = value;
1296
1298
  };
@@ -1322,6 +1324,9 @@ var KlesButtonComponent = /** @class */ (function () {
1322
1324
  __decorate([
1323
1325
  Input()
1324
1326
  ], KlesButtonComponent.prototype, "disabled", void 0);
1327
+ __decorate([
1328
+ Input()
1329
+ ], KlesButtonComponent.prototype, "type", void 0);
1325
1330
  __decorate([
1326
1331
  Input()
1327
1332
  ], KlesButtonComponent.prototype, "classButton", void 0);
@@ -1334,7 +1339,7 @@ var KlesButtonComponent = /** @class */ (function () {
1334
1339
  KlesButtonComponent = KlesButtonComponent_1 = __decorate([
1335
1340
  Component({
1336
1341
  selector: 'kles-button',
1337
- template: "\n <span>\n <button mat-button [ngClass]=\"classButton\" [color]=\"(color)?color:'primary'\" [disabled]=\"disabled\"\n (click)=\"click($event)\" [matTooltip]=\"tooltip\">\n {{label | translate}}\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n <mat-icon svgIcon=\"{{iconSvg}}\" *ngIf=\"iconSvg\"></mat-icon>\n </button>\n </span>\n ",
1342
+ template: "\n <span>\n <button mat-button [type]=\"type\" [ngClass]=\"classButton\" [color]=\"(color)?color:'primary'\" [disabled]=\"disabled\"\n (click)=\"click($event)\" [matTooltip]=\"tooltip\">\n {{label | translate}}\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n <mat-icon svgIcon=\"{{iconSvg}}\" *ngIf=\"iconSvg\"></mat-icon>\n </button>\n </span>\n ",
1338
1343
  providers: [
1339
1344
  {
1340
1345
  provide: NG_VALUE_ACCESSOR,
@@ -1361,7 +1366,7 @@ var KlesFormButtonComponent = /** @class */ (function (_super) {
1361
1366
  KlesFormButtonComponent = __decorate([
1362
1367
  Component({
1363
1368
  selector: 'kles-form-button',
1364
- template: "\n <div [formGroup]=\"group\">\n <kles-button\n [attr.id]=\"field.id\" [classButton]=\"field.ngClass\" \n [name]=\"field.name\" [label]=\"field.label\" [color]=\"field.color\" \n [icon]=\"field.icon\"\n [iconSvg]=\"field.iconSvg\"\n [value]=\"field.value\"\n [formControlName]=\"field.name\"\n [tooltip]=\"field.tooltip\">\n </kles-button>\n </div>\n "
1369
+ template: "\n <div [formGroup]=\"group\">\n <kles-button\n [attr.id]=\"field.id\" [classButton]=\"field.ngClass\" \n [name]=\"field.name\" [label]=\"field.label\" [color]=\"field.color\" \n [icon]=\"field.icon\"\n [iconSvg]=\"field.iconSvg\"\n [value]=\"field.value\"\n [formControlName]=\"field.name\"\n [tooltip]=\"field.tooltip\"\n [type]=\"field.buttonType\"\n >\n </kles-button>\n </div>\n "
1365
1370
  })
1366
1371
  ], KlesFormButtonComponent);
1367
1372
  return KlesFormButtonComponent;
@@ -1547,7 +1552,7 @@ var KlesFormButtonFileComponent = /** @class */ (function (_super) {
1547
1552
  KlesFormButtonFileComponent = __decorate([
1548
1553
  Component({
1549
1554
  selector: 'kles-form-button-file',
1550
- template: "\n <div [formGroup]=\"group\">\n <kles-button-file\n [attr.id]=\"field.id\" [classButton]=\"field.ngClass\" \n [name]=\"field.name\" [label]=\"field.label\" [color]=\"field.color\" \n [icon]=\"field.icon\"\n [iconSvg]=\"field.iconSvg\"\n [value]=\"field.value\"\n [formControlName]=\"field.name\">\n </kles-button-file>\n </div>\n "
1555
+ template: "\n <div [formGroup]=\"group\">\n <kles-button-file\n [attr.id]=\"field.id\" [classButton]=\"field.ngClass\" \n [name]=\"field.name\" [label]=\"field.label\" [color]=\"field.color\" \n [icon]=\"field.icon\"\n [iconSvg]=\"field.iconSvg\"\n [value]=\"field.value\"\n [formControlName]=\"field.name\"\n [type]=\"field.buttonType\"\n >\n </kles-button-file>\n </div>\n "
1551
1556
  })
1552
1557
  ], KlesFormButtonFileComponent);
1553
1558
  return KlesFormButtonFileComponent;