numerus/web/static
jordi fita mas e322ddd168 Add custom elements polyfill
I use customized built-in components, extended from any HTML elements
(e.g., HTMLDivElement), for product search, multiselect, and tags input
fields.  The idea is that people that without JavaScript could still use
the regular, non-customized, inputs.

It turns out, this does not work so well: the CSS assumes that
JavaScript is enabled, and web components supported by the browser. If
one of these fails, then the controls are unusable—the multiselect is
too short, and the tags field accepts invalid characters that the
backend does not validate until it fails with a database error.

We discovered this because Apple does not implement customized built-in
components[0], hence it does not use my JavaScript code and forms,
the expenses forms in particular, are almost useless.

The way to fix this is to replace the regular inputs with autonomous
web components, extended from HTMLElement, using JavaScript, because
it would only do so with JavaScript enabled, and the CSS style would
only apply to these components, not the regular input fields.

However, currently i do not have time to do the proper fix, and have
to use a polyfill for Safari to support customized built-in components.
Shame.

[0]: https://lists.w3.org/Archives/Public/public-webapps/2013OctDec/0801.html
2023-11-11 03:32:03 +01:00
..
fonts Remove unused Remixicon files 2023-01-31 13:17:51 +01:00
alpinejs@3.12.0.min.js Start “improving” the user interface with AlpineJS: tax selector 2023-03-14 18:07:38 +01:00
bars.svg Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
custom-elements@1.3.0.min.js Add custom elements polyfill 2023-11-11 03:32:03 +01:00
htmx@1.9.2.min.js Update HTMx version to 1.9.2 2023-04-29 16:20:13 +02:00
invoice.css Add margin between quotee and terms and conditions 2023-06-08 12:55:12 +02:00
numerus.css Add reset button to filters 2023-07-16 20:56:11 +02:00
numerus.js Fix body class to show the filters without JavaScript 2023-07-14 10:25:39 +02:00
numerus.svg Clean up SVG icon 2023-01-30 16:33:49 +01:00