datasette/demos
Alex Garcia 866b2d34e1 Add <datasette-sql-editor> form-associated custom element
Light-DOM element built on createSqlEditor(): form participation via
ElementInternals (name= field, reset support), schema fetched from
{base-url}/{database}/-/editor-schema.json or schema-url= without ever
blocking editing, cancelable submit event on Mod/Shift-Enter driving
form.requestSubmit(), readOnly/value/schema/view properties, format()
via the sql-formatter global, theming through CSS custom properties
with appearance-preserving fallbacks. Auto-registers the tag on import
(guarded). Manual-QA page at demos/sql-editor-element.html.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 11:15:45 -07:00
..
apache-proxy Upgrade Docker images to Python 3.11, closes #1853 2022-10-25 12:04:53 -07:00
plugins Fixed an unnecessary f-string 2024-02-04 10:15:21 -08:00
sql-editor-element.html Add <datasette-sql-editor> form-associated custom element 2026-07-10 11:15:45 -07:00