@jsonforms/angular-material 3.3.0-alpha.0 → 3.3.0-alpha.1

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.
@@ -1621,178 +1621,192 @@ class TableRenderer extends JsonFormsArrayControl {
1621
1621
  };
1622
1622
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
1623
1623
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TableRenderer, selector: "TableRenderer", usesInheritance: true, ngImport: i0, template: `
1624
- <table
1625
- mat-table
1626
- [dataSource]="data"
1627
- class="mat-elevation-z8"
1628
- [trackBy]="trackElement"
1629
- >
1630
- <ng-container matColumnDef="action">
1631
- <tr>
1632
- <th mat-header-cell *matHeaderCellDef>
1633
- <button
1634
- mat-button
1635
- color="primary"
1636
- (click)="add()"
1637
- [disabled]="!isEnabled()"
1638
- [matTooltip]="translations.addTooltip"
1639
- >
1640
- <mat-icon>add</mat-icon>
1641
- </button>
1642
- </th>
1643
- </tr>
1644
- <tr>
1645
- <td
1646
- mat-cell
1647
- *matCellDef="
1648
- let row;
1649
- let i = index;
1650
- let first = first;
1651
- let last = last
1652
- "
1653
- >
1654
- <button
1655
- *ngIf="uischema?.options?.showSortButtons"
1656
- class="item-up"
1657
- mat-button
1658
- [disabled]="first"
1659
- (click)="up(i)"
1660
- [matTooltip]="translations.upAriaLabel"
1661
- matTooltipPosition="right"
1662
- >
1663
- <mat-icon>arrow_upward</mat-icon>
1664
- </button>
1665
- <button
1666
- *ngIf="uischema?.options?.showSortButtons"
1667
- class="item-down"
1668
- mat-button
1669
- [disabled]="last"
1670
- (click)="down(i)"
1671
- [matTooltip]="translations.downAriaLabel"
1672
- matTooltipPosition="right"
1624
+ <div class="table-container">
1625
+ <table
1626
+ mat-table
1627
+ [dataSource]="data"
1628
+ class="mat-elevation-z8"
1629
+ [trackBy]="trackElement"
1630
+ >
1631
+ <ng-container matColumnDef="action" stickyEnd>
1632
+ <tr>
1633
+ <th
1634
+ mat-header-cell
1635
+ *matHeaderCellDef
1636
+ [ngClass]="{ 'sort-column': uischema?.options?.showSortButtons }"
1673
1637
  >
1674
- <mat-icon>arrow_downward</mat-icon>
1675
- </button>
1676
- <button
1677
- mat-button
1678
- color="warn"
1679
- (click)="remove(i)"
1680
- [disabled]="!isEnabled()"
1681
- matTooltipPosition="right"
1682
- [matTooltip]="translations.removeTooltip"
1638
+ <button
1639
+ mat-button
1640
+ color="primary"
1641
+ (click)="add()"
1642
+ [disabled]="!isEnabled()"
1643
+ [matTooltip]="translations.addTooltip"
1644
+ >
1645
+ <mat-icon>add</mat-icon>
1646
+ </button>
1647
+ </th>
1648
+ </tr>
1649
+ <tr>
1650
+ <td
1651
+ [ngClass]="{ 'sort-column': uischema?.options?.showSortButtons }"
1652
+ mat-cell
1653
+ *matCellDef="
1654
+ let row;
1655
+ let i = index;
1656
+ let first = first;
1657
+ let last = last
1658
+ "
1683
1659
  >
1684
- <mat-icon>delete</mat-icon>
1685
- </button>
1660
+ <button
1661
+ *ngIf="uischema?.options?.showSortButtons"
1662
+ class="item-up"
1663
+ mat-icon-button
1664
+ [disabled]="first"
1665
+ (click)="up(i)"
1666
+ [matTooltip]="translations.upAriaLabel"
1667
+ matTooltipPosition="right"
1668
+ >
1669
+ <mat-icon>arrow_upward</mat-icon>
1670
+ </button>
1671
+ <button
1672
+ *ngIf="uischema?.options?.showSortButtons"
1673
+ class="item-down"
1674
+ mat-icon-button
1675
+ [disabled]="last"
1676
+ (click)="down(i)"
1677
+ [matTooltip]="translations.downAriaLabel"
1678
+ matTooltipPosition="right"
1679
+ >
1680
+ <mat-icon>arrow_downward</mat-icon>
1681
+ </button>
1682
+ <button
1683
+ mat-icon-button
1684
+ color="warn"
1685
+ (click)="remove(i)"
1686
+ [disabled]="!isEnabled()"
1687
+ matTooltipPosition="right"
1688
+ [matTooltip]="translations.removeTooltip"
1689
+ >
1690
+ <mat-icon>delete</mat-icon>
1691
+ </button>
1692
+ </td>
1693
+ </tr>
1694
+
1695
+ <tr></tr
1696
+ ></ng-container>
1697
+
1698
+ <ng-container
1699
+ *ngFor="let item of items"
1700
+ matColumnDef="{{ item.property }}"
1701
+ >
1702
+ <th mat-header-cell *matHeaderCellDef>{{ item.header }}</th>
1703
+ <td mat-cell *matCellDef="let index = index">
1704
+ <jsonforms-outlet
1705
+ [renderProps]="index | getProps : item.props"
1706
+ ></jsonforms-outlet>
1686
1707
  </td>
1687
- </tr>
1708
+ </ng-container>
1688
1709
 
1689
- <tr></tr
1690
- ></ng-container>
1691
-
1692
- <ng-container
1693
- *ngFor="let item of items"
1694
- matColumnDef="{{ item.property }}"
1695
- >
1696
- <th mat-header-cell *matHeaderCellDef>{{ item.header }}</th>
1697
- <td mat-cell *matCellDef="let index = index">
1698
- <jsonforms-outlet
1699
- [renderProps]="index | getProps : item.props"
1700
- ></jsonforms-outlet>
1701
- </td>
1702
- </ng-container>
1703
-
1704
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
1705
- <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
1706
- </table>
1707
- `, isInline: true, styles: ["table{width:100%}\n", ".cdk-column-action{width:15%}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(function () { return i1.JsonFormsOutlet; }), selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "component", type: i0.forwardRef(function () { return i5$2.MatButton; }), selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i0.forwardRef(function () { return i6$1.MatIcon; }), selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i0.forwardRef(function () { return i5$3.MatTable; }), selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatHeaderCellDef; }), selector: "[matHeaderCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatHeaderRowDef; }), selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatColumnDef; }), selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatCellDef; }), selector: "[matCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatRowDef; }), selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatHeaderCell; }), selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatCell; }), selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i0.forwardRef(function () { return i5$3.MatHeaderRow; }), selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i0.forwardRef(function () { return i5$3.MatRow; }), selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i0.forwardRef(function () { return i6$2.MatTooltip; }), selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i0.forwardRef(function () { return GetProps; }), name: "getProps" }] });
1710
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
1711
+ <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
1712
+ </table>
1713
+ </div>
1714
+ `, isInline: true, styles: ["table{width:100%}\n", ".cdk-column-action{width:15%}\n", ".sort-column{min-width:12vw}\n", ".table-container{max-width:100%;overflow:auto}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i2.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return i2.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return i2.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(function () { return i1.JsonFormsOutlet; }), selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "component", type: i0.forwardRef(function () { return i5$2.MatButton; }), selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i0.forwardRef(function () { return i5$2.MatIconButton; }), selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i0.forwardRef(function () { return i6$1.MatIcon; }), selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i0.forwardRef(function () { return i5$3.MatTable; }), selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatHeaderCellDef; }), selector: "[matHeaderCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatHeaderRowDef; }), selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatColumnDef; }), selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatCellDef; }), selector: "[matCellDef]" }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatRowDef; }), selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatHeaderCell; }), selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i0.forwardRef(function () { return i5$3.MatCell; }), selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i0.forwardRef(function () { return i5$3.MatHeaderRow; }), selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i0.forwardRef(function () { return i5$3.MatRow; }), selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i0.forwardRef(function () { return i6$2.MatTooltip; }), selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i0.forwardRef(function () { return GetProps; }), name: "getProps" }] });
1708
1715
  }
1709
1716
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableRenderer, decorators: [{
1710
1717
  type: Component,
1711
1718
  args: [{ selector: 'TableRenderer', template: `
1712
- <table
1713
- mat-table
1714
- [dataSource]="data"
1715
- class="mat-elevation-z8"
1716
- [trackBy]="trackElement"
1717
- >
1718
- <ng-container matColumnDef="action">
1719
- <tr>
1720
- <th mat-header-cell *matHeaderCellDef>
1721
- <button
1722
- mat-button
1723
- color="primary"
1724
- (click)="add()"
1725
- [disabled]="!isEnabled()"
1726
- [matTooltip]="translations.addTooltip"
1727
- >
1728
- <mat-icon>add</mat-icon>
1729
- </button>
1730
- </th>
1731
- </tr>
1732
- <tr>
1733
- <td
1734
- mat-cell
1735
- *matCellDef="
1736
- let row;
1737
- let i = index;
1738
- let first = first;
1739
- let last = last
1740
- "
1741
- >
1742
- <button
1743
- *ngIf="uischema?.options?.showSortButtons"
1744
- class="item-up"
1745
- mat-button
1746
- [disabled]="first"
1747
- (click)="up(i)"
1748
- [matTooltip]="translations.upAriaLabel"
1749
- matTooltipPosition="right"
1750
- >
1751
- <mat-icon>arrow_upward</mat-icon>
1752
- </button>
1753
- <button
1754
- *ngIf="uischema?.options?.showSortButtons"
1755
- class="item-down"
1756
- mat-button
1757
- [disabled]="last"
1758
- (click)="down(i)"
1759
- [matTooltip]="translations.downAriaLabel"
1760
- matTooltipPosition="right"
1719
+ <div class="table-container">
1720
+ <table
1721
+ mat-table
1722
+ [dataSource]="data"
1723
+ class="mat-elevation-z8"
1724
+ [trackBy]="trackElement"
1725
+ >
1726
+ <ng-container matColumnDef="action" stickyEnd>
1727
+ <tr>
1728
+ <th
1729
+ mat-header-cell
1730
+ *matHeaderCellDef
1731
+ [ngClass]="{ 'sort-column': uischema?.options?.showSortButtons }"
1761
1732
  >
1762
- <mat-icon>arrow_downward</mat-icon>
1763
- </button>
1764
- <button
1765
- mat-button
1766
- color="warn"
1767
- (click)="remove(i)"
1768
- [disabled]="!isEnabled()"
1769
- matTooltipPosition="right"
1770
- [matTooltip]="translations.removeTooltip"
1733
+ <button
1734
+ mat-button
1735
+ color="primary"
1736
+ (click)="add()"
1737
+ [disabled]="!isEnabled()"
1738
+ [matTooltip]="translations.addTooltip"
1739
+ >
1740
+ <mat-icon>add</mat-icon>
1741
+ </button>
1742
+ </th>
1743
+ </tr>
1744
+ <tr>
1745
+ <td
1746
+ [ngClass]="{ 'sort-column': uischema?.options?.showSortButtons }"
1747
+ mat-cell
1748
+ *matCellDef="
1749
+ let row;
1750
+ let i = index;
1751
+ let first = first;
1752
+ let last = last
1753
+ "
1771
1754
  >
1772
- <mat-icon>delete</mat-icon>
1773
- </button>
1755
+ <button
1756
+ *ngIf="uischema?.options?.showSortButtons"
1757
+ class="item-up"
1758
+ mat-icon-button
1759
+ [disabled]="first"
1760
+ (click)="up(i)"
1761
+ [matTooltip]="translations.upAriaLabel"
1762
+ matTooltipPosition="right"
1763
+ >
1764
+ <mat-icon>arrow_upward</mat-icon>
1765
+ </button>
1766
+ <button
1767
+ *ngIf="uischema?.options?.showSortButtons"
1768
+ class="item-down"
1769
+ mat-icon-button
1770
+ [disabled]="last"
1771
+ (click)="down(i)"
1772
+ [matTooltip]="translations.downAriaLabel"
1773
+ matTooltipPosition="right"
1774
+ >
1775
+ <mat-icon>arrow_downward</mat-icon>
1776
+ </button>
1777
+ <button
1778
+ mat-icon-button
1779
+ color="warn"
1780
+ (click)="remove(i)"
1781
+ [disabled]="!isEnabled()"
1782
+ matTooltipPosition="right"
1783
+ [matTooltip]="translations.removeTooltip"
1784
+ >
1785
+ <mat-icon>delete</mat-icon>
1786
+ </button>
1787
+ </td>
1788
+ </tr>
1789
+
1790
+ <tr></tr
1791
+ ></ng-container>
1792
+
1793
+ <ng-container
1794
+ *ngFor="let item of items"
1795
+ matColumnDef="{{ item.property }}"
1796
+ >
1797
+ <th mat-header-cell *matHeaderCellDef>{{ item.header }}</th>
1798
+ <td mat-cell *matCellDef="let index = index">
1799
+ <jsonforms-outlet
1800
+ [renderProps]="index | getProps : item.props"
1801
+ ></jsonforms-outlet>
1774
1802
  </td>
1775
- </tr>
1803
+ </ng-container>
1776
1804
 
1777
- <tr></tr
1778
- ></ng-container>
1779
-
1780
- <ng-container
1781
- *ngFor="let item of items"
1782
- matColumnDef="{{ item.property }}"
1783
- >
1784
- <th mat-header-cell *matHeaderCellDef>{{ item.header }}</th>
1785
- <td mat-cell *matCellDef="let index = index">
1786
- <jsonforms-outlet
1787
- [renderProps]="index | getProps : item.props"
1788
- ></jsonforms-outlet>
1789
- </td>
1790
- </ng-container>
1791
-
1792
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
1793
- <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
1794
- </table>
1795
- `, styles: ["table{width:100%}\n", ".cdk-column-action{width:15%}\n"] }]
1805
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
1806
+ <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
1807
+ </table>
1808
+ </div>
1809
+ `, styles: ["table{width:100%}\n", ".cdk-column-action{width:15%}\n", ".sort-column{min-width:12vw}\n", ".table-container{max-width:100%;overflow:auto}\n"] }]
1796
1810
  }], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }]; } });
1797
1811
  const TableRendererTester = rankWith(3, or(isObjectArrayControl, isPrimitiveArrayControl));
1798
1812
  const controlWithoutLabel = (scope) => ({
@@ -2786,5 +2800,5 @@ const angularMaterialRenderers = [
2786
2800
  * Generated bundle index. Do not edit.
2787
2801
  */
2788
2802
 
2789
- export { AutocompleteControlRenderer, BooleanControlRenderer, CategorizationTabLayoutRenderer, DateControlRenderer, DateControlRendererTester, GetProps, GroupLayoutRenderer, HorizontalLayoutRenderer, JsonFormsAngularMaterialModule, JsonFormsDetailComponent, LabelRenderer, LabelRendererTester, LayoutChildrenRenderPropsPipe, LayoutRenderer, MasterListComponent, NumberControlRenderer, NumberControlRendererTester, ObjectControlRenderer, ObjectControlRendererTester, RangeControlRenderer, RangeControlRendererTester, TableRenderer, TableRendererTester, TextAreaRenderer, TextAreaRendererTester, TextControlRenderer, TextControlRendererTester, ToggleControlRenderer, ToggleControlRendererTester, VerticalLayoutRenderer, angularMaterialRenderers, booleanControlTester, categorizationTester, controlWithoutLabel, enumControlTester, groupLayoutTester, horizontalLayoutTester, masterDetailTester, removeSchemaKeywords, verticalLayoutTester };
2803
+ export { ArrayLayoutRenderer, ArrayLayoutRendererTester, AutocompleteControlRenderer, BooleanControlRenderer, CategorizationTabLayoutRenderer, DateControlRenderer, DateControlRendererTester, GetProps, GroupLayoutRenderer, HorizontalLayoutRenderer, JsonFormsAngularMaterialModule, JsonFormsDetailComponent, LabelRenderer, LabelRendererTester, LayoutChildrenRenderPropsPipe, LayoutRenderer, MasterListComponent, NumberControlRenderer, NumberControlRendererTester, ObjectControlRenderer, ObjectControlRendererTester, RangeControlRenderer, RangeControlRendererTester, TableRenderer, TableRendererTester, TextAreaRenderer, TextAreaRendererTester, TextControlRenderer, TextControlRendererTester, ToggleControlRenderer, ToggleControlRendererTester, VerticalLayoutRenderer, angularMaterialRenderers, booleanControlTester, categorizationTester, controlWithoutLabel, enumControlTester, groupLayoutTester, horizontalLayoutTester, masterDetailTester, removeSchemaKeywords, verticalLayoutTester };
2790
2804
  //# sourceMappingURL=jsonforms-angular-material.mjs.map