@softheon/armature 17.15.7 → 17.15.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.
@@ -27,7 +27,10 @@ export declare class SofTableComponent implements OnInit, OnChanges {
27
27
  * @see The Demo site is saving to local storage.
28
28
  */
29
29
  showSaveColumnOptionsText: boolean;
30
- /** Name/label of the table */
30
+ /**
31
+ * Name/label of the table
32
+ * @note should be a translation key
33
+ */
31
34
  tableName: string;
32
35
  /** Users saved column options state */
33
36
  private savedColumnState;
@@ -35,10 +38,10 @@ export declare class SofTableComponent implements OnInit, OnChanges {
35
38
  updatedColumnState: EventEmitter<ApplyColumnStateParams>;
36
39
  /** the search input */
37
40
  gridSearchTextInput: ElementRef<HTMLInputElement>;
41
+ /** The hidden element that announces when the table content changes from filter */
42
+ ariaResultsCount: ElementRef<HTMLElement>;
38
43
  /** Column names that should be filterable */
39
44
  colFilters: Array<SofTableFilter>;
40
- /** Show filter */
41
- showFilter: boolean;
42
45
  /** Row Height for table */
43
46
  rowHeight: number;
44
47
  /** Current Page Index */
@@ -51,7 +54,11 @@ export declare class SofTableComponent implements OnInit, OnChanges {
51
54
  paginationPageSize: number;
52
55
  /** Tool tip show delay */
53
56
  tooltipShowDelay: number;
54
- /** Default Column Definition */
57
+ /**
58
+ * Default Column Definition
59
+ * @note (suppressKeyboardEvent) Table cells can be navigated with the arrow keys,
60
+ * if the cell contains a button you can Tab into the button, enter | space to interact.
61
+ */
55
62
  defaultColDef: ColDef;
56
63
  /** Length of data */
57
64
  totalLength: number;
@@ -67,6 +74,8 @@ export declare class SofTableComponent implements OnInit, OnChanges {
67
74
  filterSelections: Array<Array<string>>;
68
75
  /** mat-dialog */
69
76
  private dialog;
77
+ /** Translation service */
78
+ private translateService;
70
79
  /** On component init */
71
80
  ngOnInit(): void;
72
81
  /**
@@ -101,7 +110,10 @@ export declare class SofTableComponent implements OnInit, OnChanges {
101
110
  * @param event The pagination event
102
111
  */
103
112
  changePageSize(event: PaginationChangedEvent): void;
104
- /** Called when the grid filter is changed */
113
+ /**
114
+ * Called when the grid filter is changed
115
+ * @todo update the filter dropdown options based on the filtered data set, instead of the complete data set.
116
+ */
105
117
  onFilterChanged(): void;
106
118
  /** Generated text for showing pages in format: 1-11 of 11 */
107
119
  private handlePageChangeText;
@@ -1491,6 +1491,7 @@ button.mat-mdc-button
1491
1491
  .mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{
1492
1492
  background: none !important;
1493
1493
  }
1494
+
1494
1495
  button.sof-button-v2{
1495
1496
 
1496
1497
  display: flex;
@@ -1506,6 +1507,14 @@ button.sof-button-v2{
1506
1507
  line-height: normal !important;
1507
1508
  letter-spacing: 0px !important;
1508
1509
  text-transform: capitalize !important;
1510
+
1511
+ &.fixed-width {
1512
+ width: 200px !important; // Use this is to match specific sizing
1513
+ }
1514
+
1515
+ &.full-width {
1516
+ width: 100% !important; // Use this is button width will take size of flex percentage
1517
+ }
1509
1518
 
1510
1519
  &.mat-mdc-unelevated-button span.mdc-button__label.mdc-button__label{
1511
1520
  display: flex;
@@ -1515,87 +1524,85 @@ button.sof-button-v2{
1515
1524
  font-size: 20px;
1516
1525
  }
1517
1526
  }
1518
- &.mat-mdc-unelevated-button span.mdc-button__label{
1519
- display: flex;
1520
- align-items: center;
1521
- justify-content: center !important;
1522
- width: 100% !important;
1523
- i{
1524
- margin-right: 8px !important;
1525
- }
1526
- }
1527
- &.full-width {
1528
- width: 100% !important; // Use this is button width will take size of flex percentage
1529
- }
1530
- &:enabled{
1531
- &.mat-primary{
1532
- background: mat.get-color-from-palette($arm-primary, 500);
1533
- color: map-get($arm-primary, contrast, 900);
1534
- &:hover{
1535
- background-color: var(--primary-color-500-parts);
1527
+ &.mat-mdc-unelevated-button span.mdc-button__label{
1528
+ display: flex;
1529
+ align-items: center;
1530
+ justify-content: center !important;
1531
+ width: 100% !important;
1532
+ i{
1533
+ margin-right: 8px !important;
1536
1534
  }
1537
- &:focus{
1538
- outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1539
- outline-offset: 2px !important;
1540
- }
1541
1535
  }
1542
- &.mat-secondary{
1543
- background: #FAFAFA !important;
1544
- color: var(--primary-color-contrast-50-parts);
1545
- &:hover{
1546
- background-color: #FAFAFA !important;
1536
+ &:enabled{
1537
+ &.mat-primary{
1538
+ background: mat.get-color-from-palette($arm-primary, 500);
1539
+ color: map-get($arm-primary, contrast, 900);
1540
+ &:hover{
1541
+ background-color: var(--primary-color-500-parts);
1542
+ }
1543
+ &:focus{
1544
+ outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1545
+ outline-offset: 2px !important;
1546
+ }
1547
1547
  }
1548
- &:focus{
1549
- outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1550
- outline-offset: 2px !important;
1548
+ &.mat-secondary{
1549
+ background: #FAFAFA !important;
1550
+ color: var(--primary-color-contrast-50-parts);
1551
+ &:hover{
1552
+ background-color: #FAFAFA !important;
1553
+ }
1554
+ &:focus{
1555
+ outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1556
+ outline-offset: 2px !important;
1557
+ }
1558
+ }
1559
+ &.mat-tertiary{
1560
+ color: var(--primary-color-contrast-50-parts);
1561
+ background: none !important;
1562
+ &:hover{
1563
+ background-color: transparent !important;
1564
+ }
1565
+ &:focus{
1566
+ outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1567
+ outline-offset: 2px !important;
1568
+ }
1569
+ }
1570
+ &.mat-error{
1571
+ background: mat.get-color-from-palette($arm-error, 900);
1572
+ color: map-get($arm-error, contrast, 900);
1573
+ &:hover {
1574
+ background-color: mat.get-color-from-palette($arm-error, 700);
1575
+ color: map-get($arm-error, contrast, 700);
1576
+ }
1577
+ &:focus {
1578
+ outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1579
+ outline-offset: 2px !important;
1580
+ }
1551
1581
  }
1552
1582
  }
1553
- &.mat-tertiary{
1554
- color: var(--primary-color-contrast-50-parts);
1555
- background: none !important;
1583
+ &:disabled {
1584
+ background:#fafafa!important;
1585
+ color:rgba(0, 0, 0, 0.6) !important;
1586
+ opacity: 1 !important;
1556
1587
  &:hover{
1557
- background-color: transparent !important;
1588
+ background-color: mat.get-color-from-palette($arm-primary, 500);
1558
1589
  }
1559
1590
  &:focus{
1560
1591
  outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1561
1592
  outline-offset: 2px !important;
1562
1593
  }
1563
1594
  }
1564
- &.mat-error{
1565
- background: mat.get-color-from-palette($arm-error, 900);
1566
- color: map-get($arm-error, contrast, 900);
1567
- &:hover {
1568
- background-color: mat.get-color-from-palette($arm-error, 700);
1569
- color: map-get($arm-error, contrast, 700);
1570
- }
1571
- &:focus {
1572
- outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1573
- outline-offset: 2px !important;
1574
- }
1595
+ &.no-hover-effect.mat-button.mat-primary .mat-button-focus-overlay ,
1596
+ .no-hover-effect.mat-button.mat-secondary .mat-button-focus-overlay,
1597
+ .no-hover-effect.mat-button.mat-tertiary .mat-button-focus-overlay,
1598
+ .no-hover-effect.mat-button.mat-error .mat-button-focus-overlay,
1599
+ .no-hover-effect.mat-button.mat-accent .mat-button-focus-overlay,
1600
+ .no-hover-effect.mat-button.mat-warn .mat-button-focus-overlay
1601
+ {
1602
+ background-color: transparent;
1575
1603
  }
1576
- }
1577
- &:disabled {
1578
- background:#fafafa!important;
1579
- color:rgba(0, 0, 0, 0.6) !important;
1580
- opacity: 1 !important;
1581
- &:hover{
1582
- background-color: mat.get-color-from-palette($arm-primary, 500);
1583
- }
1584
- &:focus{
1585
- outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1586
- outline-offset: 2px !important;
1587
- }
1588
- }
1589
- &.no-hover-effect.mat-button.mat-primary .mat-button-focus-overlay ,
1590
- .no-hover-effect.mat-button.mat-secondary .mat-button-focus-overlay,
1591
- .no-hover-effect.mat-button.mat-tertiary .mat-button-focus-overlay,
1592
- .no-hover-effect.mat-button.mat-error .mat-button-focus-overlay,
1593
- .no-hover-effect.mat-button.mat-accent .mat-button-focus-overlay,
1594
- .no-hover-effect.mat-button.mat-warn .mat-button-focus-overlay
1595
- {
1596
- background-color: transparent;
1597
- }
1598
1604
  }
1605
+
1599
1606
  button.soft-button-icon-v2{
1600
1607
  display: flex !important;
1601
1608
  padding: 8px!important;
@@ -1692,127 +1699,155 @@ button.soft-button-icon-v2{
1692
1699
  color: rgba(0, 0, 0, 0.87) !important;
1693
1700
  font-family: Poppins !important;
1694
1701
  }
1695
- button.button-icon-utility{
1702
+
1703
+ button.button-icon-utility {
1696
1704
  display: flex !important;
1697
- padding: 0px!important;
1698
- border-radius: 4px !important;
1699
- height: 24px !important;
1700
1705
  justify-content: center !important;
1701
1706
  align-items: center !important;
1702
1707
  gap: 8px !important;
1708
+ padding: 0px!important;
1709
+ border-radius: 4px !important;
1710
+ height: 24px !important;
1703
1711
  width: 24px !important;
1704
- &.mat-mdc-unelevated-button span.mdc-button__label.mdc-button__label{
1712
+
1713
+ &.mat-mdc-unelevated-button span.mdc-button__label.mdc-button__label {
1705
1714
  display: flex;
1706
1715
  align-items: center;
1707
1716
  font-size: 20px;
1708
-
1709
1717
  }
1710
- &.mdc-button{
1718
+
1719
+ &.mdc-button {
1711
1720
  min-width: 24px;
1712
1721
  }
1713
1722
 
1714
1723
  &.full-width {
1715
1724
  width: 100% !important; // Use this is button width will take size of flex percentage
1716
1725
  }
1717
- &:enabled{
1718
- &.mat-primary{
1726
+
1727
+ &:enabled {
1728
+ &:focus {
1729
+ outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1730
+ outline-offset: 2px !important;
1731
+ }
1732
+
1733
+ &.mat-primary {
1719
1734
  background: mat.get-color-from-palette($arm-primary, 500);
1720
1735
  color: map-get($arm-error, contrast, 900);
1721
1736
  border-radius: 4px solid !important;
1737
+
1722
1738
  &:hover {
1723
- background-color: mat.get-color-from-palette($arm-primary, 700) !important;
1739
+ background-color: mat.get-color-from-palette($arm-primary, 700) !important;
1724
1740
  color: map-get($arm-error, contrast, 700);
1725
1741
  }
1742
+
1726
1743
  &:focus {
1727
- background-color: mat.get-color-from-palette($arm-primary, 700) !important;
1728
- outline: 3px solid mat.get-color-from-palette($arm-primary, 300);
1729
- outline-offset: 2px !important;
1744
+ background-color: mat.get-color-from-palette($arm-primary, 700) !important;
1730
1745
  }
1731
1746
  }
1732
- &.mat-secondary{
1747
+
1748
+ &.mat-secondary {
1733
1749
  background-color: #FAFAFA !important;
1734
- color: #146EF6 !important;
1735
- &:hover{
1736
- background-color: #F5F5F5 !important;
1737
- color: #146EF6 !important;
1738
- }
1750
+ color: #146EF6 !important;
1751
+
1752
+ &:hover{
1753
+ background-color: #F5F5F5 !important;
1754
+ color: #146EF6 !important;
1755
+ }
1756
+
1739
1757
  &:focus{
1740
1758
  background-color: #E9E9E9 !important;
1741
1759
  }
1742
1760
  }
1743
- &.mat-tertiary{
1744
- color: #146EF6 !important;
1745
- background: transparent !important;
1761
+
1762
+ &.mat-tertiary {
1763
+ color: #146EF6 !important;
1764
+ background: transparent !important;
1765
+
1746
1766
  &:focus{
1747
1767
  background-color: rgba(20, 110, 246, 0.08) !important;
1748
1768
  }
1769
+
1749
1770
  &:hover{
1750
1771
  background-color: rgba(20, 110, 246, 0.04) !important;
1751
1772
  }
1752
1773
  }
1753
- &.mat-contained{
1774
+
1775
+ &.mat-contained {
1754
1776
  color: #146EF6 !important;
1755
1777
  background: none !important;
1756
1778
  border: 2px solid #146EF6 !important;
1757
- &:focus{
1779
+
1780
+ &:focus {
1758
1781
  border: 3px solid mat.get-color-from-palette($arm-primary, 700) !important;
1759
1782
  color: map-get($arm-error, contrast, 700);
1760
1783
  background-color: rgba(20, 110, 246, 0.08) !important;
1761
1784
  }
1762
- &:hover{
1785
+
1786
+ &:hover {
1763
1787
  background-color:rgba(20, 110, 246, 0.04)!important;
1764
1788
  }
1765
1789
  }
1766
- &.mat-contained-error{
1790
+
1791
+ &.mat-contained-error {
1767
1792
  color:rgba(215, 36, 26, 1) !important;
1768
1793
  background: none !important;
1769
1794
  border: 2px solid rgba(215, 36, 26, 1) !important;
1770
- &:focus{
1771
- border: 3px solid mat.get-color-from-palette($arm-error, 700) !important;
1772
- color: map-get($arm-error, contrast, 700);
1773
- background-color:rgba(215, 36, 26, 0.08) !important;
1774
- }
1775
- &:hover{
1776
- background-color: rgba(215, 36, 26, 0.04) !important;
1777
- }
1778
-
1795
+
1796
+ &:focus{
1797
+ border: 3px solid mat.get-color-from-palette($arm-error, 700) !important;
1798
+ color: map-get($arm-error, contrast, 700);
1799
+ background-color:rgba(215, 36, 26, 0.08) !important;
1800
+ }
1801
+
1802
+ &:hover{
1803
+ background-color: rgba(215, 36, 26, 0.04) !important;
1804
+ }
1779
1805
  }
1780
- &.mat-error-primary{
1806
+
1807
+ &.mat-error-primary {
1781
1808
  background: rgba(215, 36, 26, 1) !important;
1782
1809
  color: map-get($arm-error, contrast, 900);
1810
+
1783
1811
  &:hover {
1784
1812
  background-color: mat.get-color-from-palette($arm-error, 700);
1785
1813
  color: map-get($arm-error, contrast, 700);
1786
1814
  }
1815
+
1787
1816
  &:focus {
1788
1817
  background-color: rgba(199, 22, 15, 1) !important;
1789
1818
  }
1790
1819
  }
1791
- &.mat-error-secondary{
1820
+
1821
+ &.mat-error-secondary {
1792
1822
  background-color: #FAFAFA !important;
1793
1823
  color: rgba(215, 36, 26, 1) !important;
1824
+
1794
1825
  &:hover {
1795
1826
  background-color: rgba(245, 245, 245, 1) !important;
1796
1827
  color: map-get($arm-error, contrast, 700);
1797
1828
  }
1829
+
1798
1830
  &:focus {
1799
1831
  background-color:rgba(233, 233, 233, 1) !important;
1800
1832
  }
1801
1833
  }
1802
- &.mat-error-tertiary{
1834
+
1835
+ &.mat-error-tertiary {
1803
1836
  background: transparent !important;
1804
1837
  color: rgba(215, 36, 26, 1) !important;
1838
+
1805
1839
  &:hover {
1806
1840
  background-color: rgba(215, 36, 26, 0.04) !important;
1807
1841
  color: map-get($arm-error, contrast, 700);
1808
1842
  }
1843
+
1809
1844
  &:focus {
1810
1845
  background-color: rgba(215, 36, 26, 0.08) !important;
1811
1846
  }
1812
1847
  }
1848
+ }
1813
1849
 
1814
- }
1815
- &:disabled {
1850
+ &:disabled {
1816
1851
  &.mat-primary{
1817
1852
  background-color: #FAFAFA !important;
1818
1853
  }
@@ -1827,7 +1862,7 @@ button.button-icon-utility{
1827
1862
  &.mat-contained-error{
1828
1863
  background-color: transparent !important;
1829
1864
  border: 3px solid rgba(0, 0, 0, 0.38) !important;
1830
- color:rgba(0, 0, 0, 0.38) !important ;
1865
+ color:rgba(0, 0, 0, 0.38) !important;
1831
1866
  }
1832
1867
  &.mat-tertiary{
1833
1868
  background-color: transparent !important;
@@ -1845,10 +1880,10 @@ button.button-icon-utility{
1845
1880
  }
1846
1881
  &.mat-error-secondary{
1847
1882
  background: rgba(250, 250, 250, 1) !important;
1848
-
1849
1883
  }
1850
1884
  }
1851
1885
  }
1886
+
1852
1887
  mat-card {
1853
1888
  &.mat-mdc-card.item-list {
1854
1889
  box-shadow: 0px 1px 7px rgb(166 159 159 / 25%) !important;
@@ -1858,6 +1893,7 @@ mat-card {
1858
1893
  padding: 0px !important;
1859
1894
  }
1860
1895
  }
1896
+
1861
1897
  .mat-mdc-dialog-title {
1862
1898
  font-family: Merriweather, serif !important;
1863
1899
  font-style: normal !important;