-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-grid): implementing new grid component (#8362)
- introduces a new grid/table component - enhanced accessibility: keyboard navigation, roles in the light DOM - new API mirroring the structure of the HTML table - sticky handling: sticky header row, more control (offset), focus rows below header - grid navigation: navigation similar to the UI5 tables - no data: use a text or any other HTML element to represent no data state - improved pop-in behavior: if the table overflows, columns will move into the pop-in area based on importance and space - features enhancing the grid: Selection and Growing
- Loading branch information
Showing
98 changed files
with
4,865 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<div id="before" role="none" tabindex="0" ui5-grid-dummy-focus-area></div> | ||
|
||
{{#if loading}} | ||
<!-- TODO: Change to loading indicator --> | ||
<ui5-busy-indicator | ||
id="busy-indicator" | ||
delay="50" | ||
class="ui5-table-busy-ind" | ||
active | ||
data-sap-focus-ref | ||
></ui5-busy-indicator> | ||
{{/if}} | ||
|
||
<div id="grid" role="grid" | ||
style="{{styles.grid}}" | ||
aria-label="{{_ariaLabel}}" | ||
aria-multiselectable="{{_ariaMultiSelectable}}" | ||
> | ||
<slot name="headerRow"></slot> | ||
<slot></slot> | ||
{{#unless rows.length}} | ||
<ui5-grid-row id="nodata-row"> | ||
<ui5-grid-cell id="nodata-cell" excluded-from-navigation> | ||
{{#if nodata.length}} | ||
<slot name="nodata"></slot> | ||
{{else}} | ||
{{_effectiveNoDataText}} | ||
{{/if}} | ||
</ui5-grid-cell> | ||
</ui5-grid-row> | ||
{{/unless}} | ||
|
||
{{#if _shouldRenderGrowing}} | ||
<div id="footer" role="rowgroup"> | ||
{{> growingRow}} | ||
</div> | ||
{{/if}} | ||
|
||
{{> tableEndRow}} | ||
</div> | ||
<div id="after" role="none" tabindex="0" ui5-grid-dummy-focus-area></div> | ||
|
||
{{#*inline "growingRow"}} | ||
<ui5-grid-row id="growing-row"> | ||
<ui5-grid-cell id="growing-cell"> | ||
<!-- The growing button is a div filling the cell --> | ||
<!-- It has a growing text at the top and a growingSubText at the bottom --> | ||
<slot name="{{_growing._individualSlot}}"></slot> | ||
</ui5-grid-cell> | ||
</ui5-grid-row> | ||
{{/inline}} | ||
|
||
{{#*inline "tableEndRow"}} | ||
<div aria-hidden="true" id="table-end-row"> | ||
<div id="table-end-cell"> | ||
<div id="table-end" aria-hidden="true" tabindex="-1"></div> | ||
</div> | ||
</div> | ||
{{/inline}} |
Oops, something went wrong.