Commit Graph

57 Commits

Author SHA1 Message Date
lovasoa c685bb6b46 Simplify modal class check condition 2025-09-09 14:33:16 +02:00
lovasoa a76acd74d0 feat: modals have their own URL
- Allow opening modals with a simple link, enabling triggering from
other components. - Persist modal state across page refreshes using URL
hash.
2025-08-27 17:30:27 +02:00
lovasoa ae30d82917 biome fixes 2025-07-27 00:09:39 +02:00
lovasoa 4af50e847f update tabler to v1.4 2025-07-25 21:49:08 +02:00
lovasoa b3c310e293 fix chart component: no crash when o marker 2025-05-28 01:00:46 +02:00
lovasoa cc1657193c update tabler to v1.3
fixes https://github.com/sqlpage/SQLPage/issues/901
mostly fixes https://github.com/sqlpage/SQLPage/issues/892
see https://github.com/tabler/tabler/issues/2283#issuecomment-2892385617
2025-05-20 00:27:23 +02:00
lovasoa 1d87e88742 update tabler.io js to 1.2.0 2025-04-24 17:10:34 +02:00
francesco-cattoglio b074dd1606 Added an option to create footers in the table component (#862)
* Implemented optional table footer rendering

* Added an example of footer usage

* Fixed a minor mistake, improved the example

* Updated changelog

* implemented requested change

* Update table.handlebars

spacing

* Update table.handlebars

minor, removed a `~`

* remove unused whitespace

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-03-19 23:33:24 +01:00
lovasoa aa3149d546 fix date sorting 2025-02-18 23:39:56 +01:00
lovasoa f83fdee729 fix NaN displayed for empty cells in number columns 2025-02-18 23:24:44 +01:00
lovasoa 63385f6234 fix https://github.com/sqlpage/SQLPage/issues/812 2025-02-16 17:40:03 +01:00
francesco-cattoglio c57d82c12a Added an option to format numbers using toLocaleString() for table columns (#807)
* Added an option to format numbers using `toLocaleString()` for table columns

* format numbers in tables

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-02-11 23:57:18 +01:00
lovasoa b892a72257 tablerupdate tabler 2025-02-10 23:27:39 +01:00
lovasoa 5a79514d14 make page embedding and custom layouts easier and less error prone
- The `embed` property now automatically adds the `_sqlpage_embed` parameter to the embedded page URL to render it as an embeddable fragment.
  - When an embedded page is rendered, the `shell` component is automatically replaced by a `shell-empty` component, to avoid displaying a duplicate shell and creating invalid duplicated page metadata in the response.

see https://github.com/sqlpage/SQLPage/issues/799
2025-02-10 23:04:53 +01:00
lovasoa 49f696de6f map component: support pins with description but no title 2025-02-08 23:09:56 +01:00
lovasoa 69b3207f04 new auto_submit parameter in the form component 2025-02-05 13:54:25 +01:00
lovasoa 3dd4f90c4e update tabler
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql) (push) Has been cancelled
CI / test (mysql) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
and dry leaflet
2024-12-29 00:30:59 +01:00
lovasoa c73ff58fc3 Fix a bug where the table component would not sort columns that contained a space in their name
Fixes https://github.com/sqlpage/SQLPage/issues/724
2024-12-06 10:36:43 +01:00
lovasoa 0008f3b7f8 fixed embedded chart double-initialization
Fixed a bug where embedded card contents would be initialized multiple times, potentially causing issues with some components (such as the chart component) when embedded in a card.
2024-11-13 11:46:41 +01:00
lovasoa 6081c9ff9f add biome linting and formatting for a consistent style and easier contributions
this should prevent useless conflicts
2024-11-05 21:03:20 +01:00
lovasoa ebf19aa7fe add linting and formatting in CI 2024-11-05 18:33:55 +01:00
lovasoa 6fa7a59198 Fixed a bug where select dropdown fields would retain their state when their form is reset.
fixes https://github.com/sqlpage/SQLPage/issues/672
2024-11-04 16:20:21 +01:00
lovasoa 64546c47ad Update charting library and fix chart bugs
fixes https://github.com/sqlpage/SQLPage/issues/659
2024-11-01 16:38:34 +01:00
lovasoa 6c94a5d787 fix a bug where table sorting would break if table search was not also enabled
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql) (push) Has been cancelled
CI / test (mysql) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
fixes https://github.com/sqlpage/SQLPage/issues/660
2024-11-01 00:01:48 +01:00
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