* fix: adjust TextColumn state item markup to wrap content in <p> and improve attribute handling
* fix: code style
* fix: retain the most simplified dom
* feat: add affix support to TextInputColumn
- Add HasAffixes trait to TextInputColumn
- Support prefix and suffix labels, icons, and actions
- Add inline affix support
- Update toEmbeddedHtml() method to render affixes
- Add comprehensive documentation with examples
- Maintain backward compatibility with existing functionality
This allows TextInputColumn to display prefixes and suffixes similar to TextInput form components, enabling better UX for table editing with units, icons, or action buttons.
* remove: remove documentation from main filament repository
Documentation should be in the separate filamentphp.com repository, not in the main filament repository.
* chore: fix code style
* docs: add affix documentation for TextInputColumn
- Add comprehensive documentation for prefix and suffix functionality
- Include examples for labels, icons, inline affixes, and actions
- Document all new methods and their usage
- Provide practical examples for common use cases
* fix: resolve TextInputColumn action preparation and rendering errors
- Add prepareAction method to TextInputColumn class
- Fix echo statements to properly render Action objects using render() method
- Resolve undefined method and non-string echo errors
* delete packages/tables/docs/02-columns/08-text-input.md
* Add TextInputColumn documentation with affix functionality
- Add comprehensive documentation for TextInputColumn
- Include examples for prefix/suffix labels, icons, and actions
- Document inline layout control
- Add advanced examples for currency, search, and status inputs
- Include complete API reference for all methods
* Add TextInputColumn documentation with affix functionality
- Add comprehensive documentation for TextInputColumn
- Include examples for prefix/suffix labels, icons, and actions
- Document inline layout control
- Add advanced examples for currency, search, and status inputs
- Include complete API reference for all methods
- Match Filament documentation style and structure
* Fix echo errors in TextInputColumn
- Change prefixAction->render() to prefixAction->toHtml()
- Change suffixAction->render() to suffixAction->toHtml()
- Fixes PHPStan echo.nonString errors on lines 429 and 472
* Restore original TextInputColumn documentation with affix enhancements
- Preserve original validation and HTML input type documentation with proper links
- Keep original lifecycle hooks section unchanged
- Add prefix and suffix support as enhancement only
- Maintain minimal changes approach - only enhance, don't replace existing content
* Simplify TextInputColumn affix documentation to minimal example
- Remove excessive examples and detailed method documentation
- Keep single comprehensive example showing prefix, suffix, icon, and action
- Maintain original documentation content with minimal enhancement
* docs: remove actions reference
* fix: remove actions
* fix: spacing
* fix: phpstan by adding (unused) methods
* chore: fix code style
* fix: remove trait, update docs
* chore: fix code style
* fix: remove newline and deprecated method
* docs: remove paragraph
* docs: fix link to icons
* clean up, fix prefix not showing, fix icons throwing exceptions, fix XSS injection in labels
---------
Co-authored-by: Baspa <Baspa@users.noreply.github.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
* Skip partial rendering with forceRender
* Add department schema
* Test force render with create another in relation manager
* chore: fix code style
* Test force render with create another in relation manager
* Move forceRender into InteractsWithActions
* chore: fix code style
* Early return dehydrate if force render
* Add helper method to force render after create another
* Update CreateAction.php
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* Add key to form actions in EditRecord.php
* Add key to form actions for better identification
* simplify name and add elsewhere
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* fix/Keyboard navigation issues with Markdown Editors
Fixes#17854
Filtered out hidden elements, but then I had to filter the toolbar on the additional instances of the component for consistency.
I don't like the look of duplicated code but not much I can do to dry this up.
* fix/Keyboard navigation issues with Markdown Editors
Fixes#17854
Filtered out hidden elements, and had to refactor a little.
I don't like the look of duplicated code but not much I can do to dry this up.
* Issue #17817: Update 03-testing-tables.md - "Testing that a column can be sorted"
Currently, the documentation includes a flaky test as an example for sorting a column. This is because Filament sorts its table records according to the underlying database strategy.
Previously, the documentation suggested using the `sortBy()` method on the collection returned by the factory. However, this approach does not account for differences in how various databases handle sorting, which can lead to inconsistent test results.
With this commit, the documentation has been updated.
The example test now uses a stable approach that explicitly orders records through the database query, ensuring reliable behavior across different database systems.
Signed-off-by: Merdin <me@merdin.dev>
* Update 03-testing-tables.md - "Testing that a column can be sorted"
Improve query
Signed-off-by: Merdin <me@merdin.dev>
* Update 03-testing-tables.md
Change `orderBy('title', 'desc')` to `orderByDesc('title')` to improve code readability.
Signed-off-by: Merdin <me@merdin.dev>
* Update 03-testing-tables.md
Signed-off-by: Merdin <me@merdin.dev>
* Refactor post sorting in test to use query builder
Signed-off-by: Dan Harrin <git@danharrin.com>
* Fix sorting order for posts by title
Signed-off-by: Dan Harrin <git@danharrin.com>
---------
Signed-off-by: Merdin <me@merdin.dev>
Signed-off-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
* feat: add global registration for Chart.js plugins and update documentation
* fix: remove debug log from Chart.js registration
* clean up
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* Update rich text editor to support merge tags with labels and improve handling of drag-and-drop data.
* update: add changes to documentation
* update: add label attribute support to MergeTagExtension
* update: transforming merge tags to fix array format, removing data-label from tag
* fix: replacement of a lost key
* update: polishing
* clean up
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* feat(auth): add autocomplete attributes to form inputs
Add autocomplete attributes to improve user experience and accessibility in authentication forms. This helps browsers autofill fields correctly and follows best practices for form input handling.
* refactor(auth): update form component return types to Component interface
* Update EditProfile.php
* Remove autocomplete from email input field
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* Feat: Add RawHtmlMergeTagExtension for rendering unescaped HTML content in rich editor
* Fix: User correct extension for html merge tags
* clean up
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* feat: Added functions to customize SpatieMediaProvider
Added three new functions to SpatieMediaLibraryFileAttachmentProvider to customize media and their attributes Theses functions are:
- preserveFilenames()
- mediaName()
- customProperties()
They allow to change the name of the media in storage, change the name of the media in the database, and add custom properties to the media in the database.
* feat: Edit plugin doc
* Update README.md
* Update SpatieMediaLibraryFileAttachmentProvider.php
* Update SpatieMediaLibraryFileAttachmentProvider.php
---------
Signed-off-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
* feat(tables): add scrollToTop() to auto-scroll after pagination
Add Table->scrollToTop() option to scroll to top when table pagination changes. Introduce a new Table concern (CanScrollToTop) and dispatch a 'filament-tables-scroll-to-top' browser event from InteractsWithTable::setPage for the table’s page name. The table root view conditionally listens via Alpine and calls window.scrollTo(0, 0).
Opt-in; disabled by default; no breaking changes
No AppServiceProvider render hook required
Usage: return $table->scrollToTop()
* feat(tables): enhance scrollToTop behavior for specific table instances
* - keep the same name for the method: scrollToTopOnPageChange()
- remove german comment
- Undo changes that were accidentally
committed
* - remove german comment
* update setPage method parameter types
* refactor: remove outdated docblock for setPage method
* clean up
---------
Co-authored-by: Dan Harrin <git@danharrin.com>
* fix: unset contain property for modals with file upload editor
* fix: prevent pressing esc to close in `modal` and fix the error when closing the editor
* fix: apply layout containment to select and dropdown, remove from modal window
* fix: move layout containment for select and dropdown into modal context
* fix: add configurable flip and teleport options for dropdowns in action groups
* fix:incorrect position of select inside modal, Done!
* fix: resolve css conflict
* preserve custom dropdown teleport preference
* Update theme.css
---------
Co-authored-by: Dan Harrin <git@danharrin.com>