-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(edit-content) improve the ui of the autocomplete (#30452)
#30222 This pull request includes changes to the `dot-edit-content-field` and `dot-edit-content-wysiwyg-field` components in the `core-web` library. The updates focus on adding new providers, improving the autocomplete functionality, and enhancing the styling for better UI consistency. ### Improvements to `dot-edit-content-field` component: * Added `DotEditContentStore` provider and used the `signal` function to manage the sidebar state in the `dot-edit-content-field.component.spec.ts` file. [[1]](diffhunk://#diff-23d2e2fd9b71e1819e10ae720cb79ecf5e4d75e51fee641b020017fe8186640fR24) [[2]](diffhunk://#diff-23d2e2fd9b71e1819e10ae720cb79ecf5e4d75e51fee641b020017fe8186640fR172-R177) ### Enhancements to `dot-edit-content-wysiwyg-field` component: * Updated the HTML template to include new attributes and event handlers for the autocomplete component, improving its functionality. * Introduced new CSS classes and styles to enhance the appearance and usability of the autocomplete component. [[1]](diffhunk://#diff-3925f7b09d560f017223afe50a71fddad903e83ad78c7506862eff63102c67baL23-R23) [[2]](diffhunk://#diff-3925f7b09d560f017223afe50a71fddad903e83ad78c7506862eff63102c67baR35-R53) [[3]](diffhunk://#diff-3925f7b09d560f017223afe50a71fddad903e83ad78c7506862eff63102c67baL55-R85) * Added new providers and services in the `dot-edit-content-wysiwyg-field.component.spec.ts` file to support the updated functionality. [[1]](diffhunk://#diff-b2d7e080973018db72ba464358ae5bc33312adf4b1c174df7e45f1aa76e7d364R15-R29) [[2]](diffhunk://#diff-b2d7e080973018db72ba464358ae5bc33312adf4b1c174df7e45f1aa76e7d364R49-R50) [[3]](diffhunk://#diff-b2d7e080973018db72ba464358ae5bc33312adf4b1c174df7e45f1aa76e7d364R134-R143) [[4]](diffhunk://#diff-b2d7e080973018db72ba464358ae5bc33312adf4b1c174df7e45f1aa76e7d364R217-R231) * Refactored the TypeScript code to use signals for managing the state and updated methods to improve the autocomplete functionality. [[1]](diffhunk://#diff-bb38b1bd1641f522aed15dd1bafe8bc834070a87783fa502604bb4a42a10cdb0L18-R18) [[2]](diffhunk://#diff-bb38b1bd1641f522aed15dd1bafe8bc834070a87783fa502604bb4a42a10cdb0R41-R50) [[3]](diffhunk://#diff-bb38b1bd1641f522aed15dd1bafe8bc834070a87783fa502604bb4a42a10cdb0R79-R113) [[4]](diffhunk://#diff-bb38b1bd1641f522aed15dd1bafe8bc834070a87783fa502604bb4a42a10cdb0L162-R208) [[5]](diffhunk://#diff-bb38b1bd1641f522aed15dd1bafe8bc834070a87783fa502604bb4a42a10cdb0L222-R274) [[6]](diffhunk://#diff-bb38b1bd1641f522aed15dd1bafe8bc834070a87783fa502604bb4a42a10cdb0R283-R314) ### Checklist - [x] Tests - [ ] Translations - [ ] Security Implications Contemplated (add notes if applicable) ### Additional Info https://github.com/user-attachments/assets/ccf69e27-cb75-4683-90aa-3951a7d8ee81
- Loading branch information
Showing
5 changed files
with
154 additions
and
48 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