@@ -5,12 +5,12 @@ <h2 class="title">Aggregated Listings</h2>
5
5
< p-dropdown [options] ="searchColumns " [showClear] ="searchColumn !== 'all' " (onClear) ="clearSearchBy($event) "
6
6
id ="search-by-drd " [(ngModel)] ="searchColumn " class ="search-by-select "> </ p-dropdown >
7
7
< span class ="p-input-icon-right search-input-container ">
8
- < button pButton class ="search-submit-btn " id ="search-submit-btn " (click) ="onSearch() "> < i
9
- class ="pi pi-search "> </ i > </ button >
8
+ < button pButton class ="search-submit-btn " id ="search-submit-btn " (click) ="onSearch() " aria-label =" Search " >
9
+ < i class ="pi pi-search "> </ i > </ button >
10
10
< button pButton *ngIf ="!!searchTerm " id ="clear-search-btn " class ="colorless p-button-link search-clear-btn "
11
- icon ="pi pi-times " (click) ="onClearSearchBox() "> </ button >
11
+ icon ="pi pi-times " (click) ="onClearSearchBox() " aria-label =" Clear search " > </ button >
12
12
< input type ="text " id ="search-term-inp " (keydown.enter) ="onSearch() " class ="search-input "
13
- placeholder ="Search " pInputText [(ngModel)] ="searchTerm " />
13
+ placeholder ="Search " pInputText [(ngModel)] ="searchTerm " aria-label =" Search input " />
14
14
</ span >
15
15
< button pButton id ="filter-open-btn " class ="filter-open-btn p-button-link " [class.colorless] ="!isFilterSet "
16
16
icon ="pi {{isFilterSet?'pi-filter-fill':'pi-filter'}} " (click) ="openFilterSidebar() ">
@@ -48,7 +48,7 @@ <h2 class="title">Aggregated Listings</h2>
48
48
< div class ="rows-info-wrapper ">
49
49
< span class ="panel-header-small " [style.visibility] ="listingsSelected ? 'visible' : 'hidden' "> Selected
50
50
{{listingsSelected}} items. < button pButton class ="p-button-link zero-padding small-text "
51
- (click) ="unselectAll() "> Unselect All</ button >
51
+ (click) ="unselectAll() " aria-label =" Unselect all items in the table " > Unselect All</ button >
52
52
</ span >
53
53
< span class ="panel-header-small " *ngIf ="currentPage "> Showing {{ currentPage.itemCount}} of
54
54
{{currentPage.totalCount || 0}} listings</ span >
@@ -103,7 +103,7 @@ <h2 class="title">Aggregated Listings</h2>
103
103
< tr >
104
104
< td >
105
105
< button pButton id ="expand-listing-row-{{index}} " class ="p-button-transparent round-42 "
106
- [pRowToggler] ="row ">
106
+ [pRowToggler] ="row " aria-label =" Expand or Collapse Listing " >
107
107
< i class ="pi " [ngClass] ="expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right' "> </ i >
108
108
</ button >
109
109
</ td >
@@ -142,9 +142,10 @@ <h2 class="title">Aggregated Listings</h2>
142
142
< p-table [value] ="row.listings " dataKey ="rentalListingId ">
143
143
< ng-template pTemplate ="header " let-listing >
144
144
< tr >
145
- < th >
145
+ < th [ariaLabel] =" 'select-listing' " >
146
146
< p-checkbox [(ngModel)] ="row.selected " [inputId] ="'group-select-chbx' " [binary] ="true "
147
- (onChange) ="onGroupRowSelected($event,row) "> </ p-checkbox >
147
+ (onChange) ="onGroupRowSelected($event,row) "
148
+ [ariaLabel] ="'Select or Deselect listing' "> </ p-checkbox >
148
149
149
150
</ th >
150
151
< th > Status</ th >
@@ -163,7 +164,7 @@ <h2 class="title">Aggregated Listings</h2>
163
164
< tr [class.filtered-out] ="!listing.filtered ">
164
165
< td >
165
166
< p-checkbox [(ngModel)] ="listing.selected " [binary] ="true " [inputId] ="'listing-select-chbx' "
166
- (onChange) ="onListingRowSelected($event,listing) "> </ p-checkbox >
167
+ (onChange) ="onListingRowSelected($event,listing) " ariaLabel =" Select listing " > </ p-checkbox >
167
168
</ td >
168
169
< td >
169
170
< div [ngSwitch] ="listing.listingStatusType " class ="align-center status-col ">
@@ -243,7 +244,8 @@ <h2 class="title">Aggregated Listings</h2>
243
244
[rows] ="currentPage.pageSize || 25 " [totalRecords] ="currentPage.totalCount || 0 " [showCurrentPageReport] ="true "
244
245
[showJumpToPageInput] ="true " [showPageLinks] ="true " [showFirstLastIcon] ="true "
245
246
[rowsPerPageOptions] ="[10, 25, 50, 100] "
246
- [currentPageReportTemplate] ="'Rows per page: {rows} {first}-{last} of {totalRecords}' "> </ p-paginator >
247
+ [currentPageReportTemplate] ="'Rows per page: {rows} {first}-{last} of {totalRecords}' ">
248
+ </ p-paginator >
247
249
</ p-panel >
248
250
249
251
< p-dialog header ="Legend " [modal] ="true " [(visible)] ="isLegendShown " [style] ="{width: '50vw'} ">
0 commit comments