@softheon/armature 19.10.2 → 19.11.0

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.
@@ -1,5 +1,6 @@
1
- import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges, WritableSignal } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, WritableSignal } from '@angular/core';
2
2
  import { ApplyColumnStateParams, ColDef, FilterModel, GridReadyEvent, HeaderPosition, NavigateToNextHeaderParams, PaginationChangedEvent, TabToNextHeaderParams } from "ag-grid-community";
3
+ import { MatSelect } from '@angular/material/select';
3
4
  import * as i0 from "@angular/core";
4
5
  /** The Softheon Armature Table component */
5
6
  export declare class SofTableComponent implements OnInit, OnChanges {
@@ -46,6 +47,10 @@ export declare class SofTableComponent implements OnInit, OnChanges {
46
47
  gridSearchTextInput: ElementRef<HTMLInputElement>;
47
48
  /** The hidden element that announces when the table content changes from filter */
48
49
  ariaResultsCount: ElementRef<HTMLElement>;
50
+ /** To reference the filter toggle panel DOM node */
51
+ filterPanel: ElementRef;
52
+ /** To reference all filter mat-selects */
53
+ filterSelects: QueryList<MatSelect>;
49
54
  /**
50
55
  * Keep track of the current column state
51
56
  * @note If columns are re-defined (onChanges), this state will be applied
@@ -89,7 +94,10 @@ export declare class SofTableComponent implements OnInit, OnChanges {
89
94
  private dialog;
90
95
  /** Translation service */
91
96
  private translateService;
97
+ /** Inject angular's document reference */
98
+ private document;
92
99
  /**
100
+ *
93
101
  * The id of the filter fieldset.
94
102
  */
95
103
  filterFieldSetId: string;
@@ -132,6 +140,11 @@ export declare class SofTableComponent implements OnInit, OnChanges {
132
140
  * @todo update the filter dropdown options based on the filtered data set, instead of the complete data set.
133
141
  */
134
142
  onFilterChanged(): void;
143
+ /** When a mat-select dropdown within the filter is opened
144
+ * @param opened sets whether the selected filter has been opened
145
+ * @param index to set the index of which filter selection is opened
146
+ */
147
+ onFilterSelectOpened(opened: boolean, index: number): void;
135
148
  /** Generated text for showing pages in format: 1-11 of 11 */
136
149
  private handlePageChangeText;
137
150
  /**
@@ -140,6 +153,8 @@ export declare class SofTableComponent implements OnInit, OnChanges {
140
153
  onSearchTextChanged(): void;
141
154
  /** Toggle the filter panel display */
142
155
  toggleFilterPanel(): void;
156
+ /** Moving focus to first element of the Filter panel when opened */
157
+ private focusFirstFilterElement;
143
158
  /** Apply the selected filters */
144
159
  applyFilters(): void;
145
160
  /** Clear all filters */
@@ -153,7 +153,7 @@ fieldset {
153
153
  }
154
154
 
155
155
  .color-error {
156
- color: map.get(theme.$arm-error, 900);
156
+ color: map.get(theme.$arm-error, 500);
157
157
  }
158
158
 
159
159
  .color-neutral {