Skip to content

Updated data-grid to v2.0.13 with new features and fixes#21

Merged
lekoala merged 10 commits intolekoala:masterfrom
jackkjhsu:master
Aug 20, 2025
Merged

Updated data-grid to v2.0.13 with new features and fixes#21
lekoala merged 10 commits intolekoala:masterfrom
jackkjhsu:master

Conversation

@jackkjhsu
Copy link
Copy Markdown
Contributor

Hi Thomas,

I hope you're doing well these days. Another round of changes for your review. We are currently using lots of data-grid for a new build of an application and found the changes would help a lot for our development. Please let me know if the changes are ok.

As always, thank you so much.

Summary of changes:

  • Enhanced styling and functionality of the data grid component.
  • Key updates include the addition of the --selected-bgcolor variable for selected rows, improved handling of single and multiple selections, and refactoring of methods for better data management.
  • The connectedCallback method is now asynchronous for improved initialization, and the #setNoData method manages "no data" messages effectively.
  • Updated package versions in package.json and package-lock.json to ensure compatibility with the latest dependencies.

… input-related elements from triggering row expansion, enhancing user interaction.
- Updated `data-grid.js` to clarify multi-select functionality and introduced a `singleSelect` property.
- Enhanced `SelectableRows` class in `selectable-rows.js` with new methods for single selection and updated event handling for checkboxes and radio buttons.
- Added new CSS variables for selected background color and improved input styles in `_core.scss`.
- Updated `urlChanged`, `fixPage`, `configureUi`, `refresh`, and `reload` methods to return `this` for improved method chaining.
- Added JSDoc comments to `refresh` and `reload` for better clarity on parameters and return types.
- Updated the `getSelection` method in `DataGrid` and `SelectableRows` classes to accept a variable number of keys, improving data selection flexibility.
- Documentation comments were revised to clarify the new functionality, and the internal logic was adjusted to return appropriate data based on the provided keys.
- Updated `BaseElement` to improve dataset normalization by adding conditions to skip certain keys.
- Modified `normalizeData` to ensure input is a string before parsing, preventing runtime errors and improving reliability.
@lekoala lekoala merged commit fc392bb into lekoala:master Aug 20, 2025
1 check passed
@lekoala
Copy link
Copy Markdown
Owner

lekoala commented Aug 20, 2025

looking good as always ;-)

@jackkjhsu
Copy link
Copy Markdown
Contributor Author

Thank you so much Thomas!

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.

2 participants