-
Notifications
You must be signed in to change notification settings - Fork 3
feat(tags): added drag-and-drop functionality for tag-list (#DS-4093) #1025
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
Conversation
688953f to
2722963
Compare
|
Visit the preview URL for this PR (updated for commit 23d36af): https://koobiq-next--prs-1025-0bvge937.web.app (expires Tue, 07 Oct 2025 14:11:44 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
807f062 to
bb5390c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds drag-and-drop functionality to the tag list component, allowing users to reorder tags by dragging them. The implementation leverages Angular CDK's drag-and-drop module and adds new properties to control when dragging is enabled.
- Added
draggableproperty toKbqTagListand corresponding CSS classes for styling - Integrated CDK drag-drop directives with both
KbqTagandKbqTagListcomponents - Created example components demonstrating the new drag-and-drop functionality
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/public_api_guard/components/tags.api.md | Updated public API to include new drag-drop imports, draggable properties, and event types |
| packages/components/tags/tag-list.component.ts | Added draggable property, drop list integration, and event handling for tag reordering |
| packages/components/tags/tag.component.ts | Added drag directive integration and draggable state management |
| packages/components/tags/*.scss | Added CSS styling for drag states and cursor behavior |
| packages/docs-examples/ | Added example components and documentation demonstrating drag-and-drop functionality |
| packages/components-dev/tag/module.ts | Updated development module to showcase new drag-and-drop examples |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/docs-examples/components/tag/tag-input-draggable/tag-input-draggable-example.ts
Outdated
Show resolved
Hide resolved
|
Сейчас непонятно теги перставляются, нужно или сделать по спеке (показывать индикатор-полоску между тегами) или преставлять теги на лету во время перетаскивания |
|
после перетаскивания фокус должен оказать на теге, которые перетаскивали. тянули мышкой, поэтому рамки фокуса не нужно |
8b3d3a0 to
a1595b4
Compare
|
Давай не будет добавлять рамку фокуса в момент перетаскивания, ни на превью, ни на плейсхолдер бледный. Рамка фокуса у нас видна только при управляения с клавы |
|
В пример с перестановкой добавь крестики тегам. Обычно же как используют, будут брать обычный тег инпут с удалением тегов и доавлять в него возможность переставлять теги |
b7ee906 to
d0e410c
Compare
добавил |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
d0e410c to
2102627
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Вот я перетаскиваю тег 0. Для меня странно, что выбрался тег 1 после перетатскивания. Рамка фокуса на контроле видна. Контрол в фокусе? Пытаюсь ввести текст, не получается. Что я ожидаю: тянешь тег, никаких синих тегов не видишь. И уж точно синим не должен становиться тег, который ты не тянул. После перетаскивания мышкой в принципе норм, если фокус будет вставать в область создания нового тега и контрол будет с синей рамкой taglist-dnd.mp4 |
packages/docs-examples/components/tag/tag-input-draggable/tag-input-draggable-example.ts
Outdated
Show resolved
Hide resolved
выбор тегов будет исправлен в рамках DS-4161, фокус поправлю |

#1029