33 Commits

Author SHA1 Message Date
lovasoa 84a938f876 improve table search and sort
this reimplements table searching and sorting from scratch inside sqlpage instead of using the (unmaintained and buggy) list.js library

this makes the sqlpage js smaller and faster to load

this improves table filtering speed

this fixes incorrect sorting when using markdown links

fixes https://github.com/sqlpage/SQLPage/issues/576
2024-10-27 23:34:37 +01:00
lovasoa cf86a226ef Fix autoplay of carousels when embedded in a card
fixes https://github.com/sqlpage/SQLPage/issues/647
2024-10-19 23:21:26 +02:00
lovasoa 92fec205b5 New initial_search_value property in the table component to pre-fill the search bar with a value. This allows to display the table rows that will initially be filtered out by the search bar. 2024-10-19 22:16:46 +02:00
lovasoa 718e44e903 fix https://github.com/lovasoa/SQLpage/issues/542
This fixes the bug, but hurts performance with large lists
2024-08-17 19:48:32 +02:00
lovasoa 5ecbc857bc fix nonces in js 2024-08-02 00:30:25 +02:00
lovasoa 0d7106d372 prevent cascading component init failure
If one init function throws, the others are still launched

fixes https://github.com/lovasoa/SQLpage/issues/513
2024-08-02 00:19:35 +02:00
lovasoa 31165d4275 fix tomselect 2024-08-02 00:16:29 +02:00
lovasoa 108e312c42 fix map component for new csp 2024-08-02 00:13:18 +02:00
lovasoa 2830939623 Prevent form validation and give a helpful error message when an user tries to submit a form with a file upload field that is above the maximum file size. 2024-06-18 00:45:07 +02:00
lovasoa 767b01cdd0 map component
- automatically center the map on the contents when no top-level latitude and longitude properties are provided even when the map contains geojson data.
   - allow using `FALSE as tile_source` to completely remove the base map. This makes the map component useful to display even non-geographical geometric data.
2024-06-14 20:55:47 +02:00
lovasoa f32a176839 fix for geojson bounds determination 2024-06-07 08:50:05 +02:00
lovasoa ed9a367962 update map component
when top-level latitude and longitude attributes are omitted, the map will now center on its markers

fixes https://github.com/lovasoa/SQLpage/issues/378
2024-06-07 08:35:12 +02:00
lovasoa fe268f45ed bundle tomselect with sqlpage 2024-04-14 18:52:59 +02:00
lovasoa 12cc7cf0eb add a dropdown form item that allows multiple selection
fixes https://github.com/lovasoa/SQLpage/issues/221
fixes https://github.com/lovasoa/SQLpage/discussions/281
see https://github.com/lovasoa/SQLpage/discussions/220
2024-04-14 18:31:31 +02:00
Lorefnon 99c7e02499 Support lazy-loaded content fragments in card component (#175)
* Add support for embed parameter that skips the shell layout

* Add support for cards with remote content

* Adapt js to support lazy-loaded fragments

* Add example

* Reformat & Fix lint errors

* Update query param name and add docs

* Add example

* squash migrations

---------

Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-01-05 22:17:33 +01:00
lovasoa e4bb792f2b Improve map component
customizable tile
source, attribution, and max zoom.

Update embedded SQLite to version
3.44.
2023-11-12 20:30:04 +01:00
lovasoa c7351f5095 map : better geojson point support 2023-11-11 01:24:41 +01:00
lovasoa 17681fb672 add support for geojson in the map component
this adds support for new geometries, including polygons

Closes https://github.com/lovasoa/SQLpage/issues/119
2023-11-07 23:52:38 +01:00
lovasoa 94c04d8a4c custom marker icon and color in the map component 2023-11-07 01:07:40 +01:00
lovasoa 478195ee49 update tabler to 1.0.0-beta20
https://preview.tabler.io/changelog.html
2023-09-17 11:51:17 +02:00
lovasoa 27984a0400 fix table sorting 2023-08-23 02:19:09 +02:00
lovasoa d7aa1fd634 improve page load speed
split the charts javascript code from the rest of the frontend code,
and load it only when necessary.

This greatly diminishes the amount of js loaded by default, and achieves very good performance scores by default.
2023-08-03 12:24:22 +02:00
lovasoa 00ca2e586a swicth to a forked list.js with bug fixes
Fixes https://github.com/lovasoa/SQLpage/issues/46
2023-08-03 03:00:15 +02:00
lovasoa b27d939e03 fix searching in tables that are not sorted 2023-08-02 20:17:51 +02:00
lovasoa 5b99bf1688 new map component 2023-07-13 01:42:10 +02:00
lovasoa cecce067e1 new map component 2023-07-11 22:33:43 +02:00
lovasoa 18a7149e48 fix horizontal bar charts 2023-07-03 02:30:42 +02:00
lovasoa 07d26b70ed New chart type: horizontal bar charts 2023-07-02 22:02:08 +02:00
lovasoa 9d7cc2b3d7 improve chart component 2023-06-11 00:18:07 +02:00
lovasoa 12786817aa Remove the 'fixed tooltips' option in graphs 2023-06-10 23:16:15 +02:00
lovasoa a801d06255 Update apex charts
see
https://github.com/apexcharts/apexcharts.js/releases
2023-06-10 23:14:38 +02:00
lovasoa f1690e8421 embed external js and css resources in the distributed binary 2023-06-01 03:46:39 +02:00
lovasoa e0eec19604 Re-integrate external js as static file 2022-09-14 12:58:41 +04:00