@ebuilding/form 2.3.6 → 2.3.9

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.
@@ -1462,6 +1462,18 @@ class DeonNzFieldNumber extends FieldType {
1462
1462
  }
1463
1463
  return 0;
1464
1464
  }
1465
+ get min() {
1466
+ if (this.props["min"] != undefined && this.props["min"] != null) {
1467
+ return this.props["min"];
1468
+ }
1469
+ return -999999999;
1470
+ }
1471
+ get max() {
1472
+ if (this.props["max"] != undefined && this.props["max"] != null) {
1473
+ return this.props["max"];
1474
+ }
1475
+ return 99999999;
1476
+ }
1465
1477
  get password() {
1466
1478
  return this.props?.["password"] === true;
1467
1479
  }
@@ -1504,6 +1516,8 @@ class DeonNzFieldNumber extends FieldType {
1504
1516
  [nzDisabled]="!editor"
1505
1517
  [nzPrecision]="precision"
1506
1518
  [nzStep]="0"
1519
+ [nzMin]="min"
1520
+ [nzMax]="max"
1507
1521
  [nzFormatter]="formatNumber"
1508
1522
  [nzParser]="parseNumber"
1509
1523
  (nzBlur)="onFormatPrecision()"
@@ -1517,6 +1531,8 @@ class DeonNzFieldNumber extends FieldType {
1517
1531
  [nzDisabled]="!editor"
1518
1532
  [nzPrecision]="precision"
1519
1533
  [nzStep]="precision == 0 ? 1 : 0.1"
1534
+ [nzMin]="min"
1535
+ [nzMax]="max"
1520
1536
  [nzFormatter]="formatNumber"
1521
1537
  [nzParser]="parseNumber"
1522
1538
  (nzBlur)="onFormatPrecision()"
@@ -1541,6 +1557,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
1541
1557
  [nzDisabled]="!editor"
1542
1558
  [nzPrecision]="precision"
1543
1559
  [nzStep]="0"
1560
+ [nzMin]="min"
1561
+ [nzMax]="max"
1544
1562
  [nzFormatter]="formatNumber"
1545
1563
  [nzParser]="parseNumber"
1546
1564
  (nzBlur)="onFormatPrecision()"
@@ -1554,6 +1572,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
1554
1572
  [nzDisabled]="!editor"
1555
1573
  [nzPrecision]="precision"
1556
1574
  [nzStep]="precision == 0 ? 1 : 0.1"
1575
+ [nzMin]="min"
1576
+ [nzMax]="max"
1557
1577
  [nzFormatter]="formatNumber"
1558
1578
  [nzParser]="parseNumber"
1559
1579
  (nzBlur)="onFormatPrecision()"
@@ -3093,7 +3113,7 @@ class DeonNzFieldTextArea extends FieldType {
3093
3113
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonNzFieldTextArea, isStandalone: true, selector: "deon-nz-field-textarea", usesInheritance: true, ngImport: i0, template: `
3094
3114
  <div
3095
3115
  class="field-text deon-text deon-text-textarea"
3096
- [ngStyle]="{ 'min-height': props.rows != undefined ? 26 * props.rows + 'px' : 26 + 'px' }"
3116
+ [ngStyle]="{ 'min-height': props.rows != undefined ? 32 * props.rows + 'px' : 32 + 'px' }"
3097
3117
  *ngIf="editor == false; else tmpField"
3098
3118
  [innerHtml]="text | safeHtml"
3099
3119
  >
@@ -3124,7 +3144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
3124
3144
  template: `
3125
3145
  <div
3126
3146
  class="field-text deon-text deon-text-textarea"
3127
- [ngStyle]="{ 'min-height': props.rows != undefined ? 26 * props.rows + 'px' : 26 + 'px' }"
3147
+ [ngStyle]="{ 'min-height': props.rows != undefined ? 32 * props.rows + 'px' : 32 + 'px' }"
3128
3148
  *ngIf="editor == false; else tmpField"
3129
3149
  [innerHtml]="text | safeHtml"
3130
3150
  >