Commit graph

9 commits

Author SHA1 Message Date
4de14bb48b feat(input): update name input field to search for wiki suggestions without search wiki button 2025-04-02 22:07:24 +03:00
430cf3e6df feat(editable cells): add support for multiple input types in EditableCell component
- Introduced `InputType` enum to support both `Text` and `TextArea` input types.
- Updated `EditableCell` component to accept `input_type` as a parameter.
- Added logic to handle input events for both `Text` and `TextArea` fields.
- Implemented `textarea_ref` to support `<textarea>` elements.
- Used match expressions to dynamically render either `<input>` or `<textarea>` based on the `input_type` provided.
2025-01-10 20:56:25 +03:00
e36a24b9d0 feat(editable cell): Add focus and blur handling for EditableCell suggestions
-Added on_focus and on_blur props to the EditableCell component to handle focus and blur events.
2025-01-08 02:42:42 +03:00
8de9623a0d style(editable_cell): add styling to have a grid layout. 2025-01-06 16:06:06 +03:00
0e15699b13 fix(EditableCell): improve seamless input handling and focus management
- Resolved issues with input handling to ensure smoother updates on focus and blur.
- Introduced `commit_input` to properly commit input values on blur or enter.
- Added logging to aid debugging and track input events.
2025-01-06 15:33:26 +03:00
25195d6753 fix(editable cell): (in progress) improve EditableCell component to handle focus management with shared state
- Updated `EditableCell` to use `Arc<String>` for the `key` prop to ensure efficient reference handling.
- Added `focused_cell` and `set_focused_cell` signals to manage focus state across components.
- Replaced local focus tracking with a global mechanism to handle input focus changes, improving UX consistency.
- Introduced `NodeRef` for direct input element manipulation, ensuring the focused cell regains focus after state updates.
2025-01-04 22:25:28 +03:00
9da8b03de2 feat(maintain focus on cells): maintain focus while typing in cells; in progress 2024-12-24 14:27:32 +03:00
e9b4c12a6d feat(autocomplete name): autofill name with wikidata suggestions 2024-12-23 17:56:34 +03:00
16b04fcc1e feat(cells): make cells editable (debugging) 2024-12-20 18:24:20 +03:00