Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui5-table): adding horizontal column alignment #9639

Merged
merged 50 commits into from
Sep 30, 2024

Conversation

nowakdaniel
Copy link
Contributor

@nowakdaniel nowakdaniel commented Aug 5, 2024

Introduction of a new property hAlign. hAlign is used to configure the horizontal alignment. The idea is to configure the horizontal alignment on the header level of the GridTable and then automatically adjust the alignment of the cells according to their header cell.

Tests are still missing

@ilhan007 ilhan007 changed the title feat(ui5-grid): adding horizontal column alignment feat(ui5-table): adding horizontal column alignment Aug 5, 2024
@nowakdaniel nowakdaniel force-pushed the feat-grid-horizontal-alignment branch from 7b833aa to 2a4c627 Compare August 5, 2024 13:40
Copy link
Member

@DonkeyCo DonkeyCo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As already mentioned by you, tests are missing. Make sure to test, if changing the value and setting it after initial rendering actually works as expected.

Please also add the necessary documentation as well as a sample, that can be shown in the documentation/demokit.

packages/main/src/Table.ts Outdated Show resolved Hide resolved
packages/main/src/Table.ts Outdated Show resolved Hide resolved
packages/main/src/types/TableCellAlign.ts Outdated Show resolved Hide resolved
packages/main/test/pages/Table.html Outdated Show resolved Hide resolved
packages/main/test/pages/Table.html Outdated Show resolved Hide resolved
packages/main/src/types/TableCellAlign.ts Outdated Show resolved Hide resolved
packages/main/src/TableCellBase.ts Outdated Show resolved Hide resolved
packages/main/src/Table.ts Outdated Show resolved Hide resolved
packages/main/src/TableCellBase.ts Outdated Show resolved Hide resolved
packages/main/src/TableCellBase.ts Show resolved Hide resolved
packages/main/src/TableCellBase.ts Outdated Show resolved Hide resolved
packages/main/src/Table.ts Outdated Show resolved Hide resolved
packages/main/src/types/TableCellHorizontalAlign.ts Outdated Show resolved Hide resolved
packages/main/test/pages/HAlignTable.html Outdated Show resolved Hide resolved
@@ -78,13 +78,20 @@ class TableHeaderCell extends TableCellBase {

protected ariaRole: string = "columnheader";
_popinWidth: number = 0;
_individualSlot?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remove this I get warnings.
Property '_individualSlot' does not exist on type 'TableHeaderCell'.

See #9639 (comment) for more information.
@DonkeyCo

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just needed for TS to be happy and avoid warnings as Daniel mentioned

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then this should better be in the CellBase

ivoplashkov and others added 9 commits September 25, 2024 14:48
Bumps [rollup](https://github.com/rollup/rollup) from 3.28.1 to 3.29.5.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v3.28.1...v3.29.5)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.3 to 4.5.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
packages/main/src/TableCell.ts Outdated Show resolved Hide resolved
@@ -78,13 +78,20 @@ class TableHeaderCell extends TableCellBase {

protected ariaRole: string = "columnheader";
_popinWidth: number = 0;
_individualSlot?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just needed for TS to be happy and avoid warnings as Daniel mentioned

@@ -78,13 +78,20 @@ class TableHeaderCell extends TableCellBase {

protected ariaRole: string = "columnheader";
_popinWidth: number = 0;
_individualSlot?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then this should better be in the CellBase

packages/main/src/TableCellBase.ts Show resolved Hide resolved
@nowakdaniel nowakdaniel merged commit 65f75eb into main Sep 30, 2024
10 checks passed
@DonkeyCo DonkeyCo deleted the feat-grid-horizontal-alignment branch September 30, 2024 12:46
nowakdaniel added a commit that referenced this pull request Oct 18, 2024
Fixed a problem where the horizontalAlign property would be applied to cells inside the popin area.
In addition I've changed some of the texts reviewed in the last PR (#9639).

fixes: #10017
kgogov pushed a commit that referenced this pull request Oct 30, 2024
Fixed a problem where the horizontalAlign property would be applied to cells inside the popin area.
In addition I've changed some of the texts reviewed in the last PR (#9639).

fixes: #10017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.