21e5bdbba4
Add "newer" map to track replaced reactive elements
2024-02-29 15:47:20 +01:00
12daec85e6
Extract Ref class into separate module
2024-02-29 15:33:26 +01:00
6d4e398336
Add Ref class to follow reactive elements
2024-02-29 15:29:36 +01:00
d53e6c7fd5
Add replace and replaced events to reactive elements
2024-02-29 15:29:20 +01:00
3ff99bee9b
Add jsdoc class annotations to skooma module
2024-02-12 13:38:57 +01:00
39012902e0
Full refactor of State (now Observable)
...
* Renamed to Observable
* Updated skooma.js to match the API
2024-02-06 22:00:48 +01:00
71d7c0ff4f
Rename "reactive" object to observable in code
2024-02-06 17:43:23 +01:00
784eb78f0a
Refactor
2024-01-24 16:43:50 +01:00
6248593570
Fix and refactor skooma.js
2024-01-24 16:13:01 +01:00
44b6343de6
Remove event name cleanup in skooma.js
2024-01-24 14:51:45 +01:00
2445617e8b
Switch to svelte store contract
2024-01-24 14:50:51 +01:00
688cbae9ba
Refactor skooma.js
2024-01-24 13:14:06 +01:00
2f95afbcb7
Fix error handling arrays in skooma.js
2024-01-24 10:21:59 +01:00
dc29b10b1a
[WIP] Tweak skooma state contract
2024-01-22 11:22:11 +01:00
dda6673f15
[WIP] Add child generators and refactor
2024-01-22 10:35:42 +01:00
7a789d407e
[WIP] Major refactor and API change for version 2.0
2024-01-17 15:16:46 +01:00
5a29b0e662
Make handle
return a value just in case it is desired
2024-01-15 11:50:27 +01:00
3b3e6467c8
Refactor exports
...
Export rules:
* All default exports as named exports
* Default export wherever it makes sense
2024-01-11 15:44:11 +01:00
f79e7a9c14
Fix error when passing undefined
into tag generator
2023-12-30 13:17:36 +01:00
cebd867bd2
Make reactive elements keep a weak ref to their reactive source
2023-12-23 17:31:01 +01:00
79a728520e
Replace bind function with proper reactivity
...
* Detects state elements
* Two-Way binding for supported attributes
2023-12-21 23:36:48 +01:00
bc1383f07d
Fix unnecessary "is" attribute being added to nodes
2023-12-15 00:23:05 +01:00
e7afbaf3c1
Allow returning text in skooma bind method
2023-09-29 15:10:46 +02:00
633332d4ea
Further refactor code
2023-09-29 15:10:35 +02:00
53e25e223e
Mildly refactor skooma.js
2023-09-29 15:10:28 +02:00
77af61fc45
Improve skooma warning on undefined arguments
2023-09-29 15:10:28 +02:00
4128cb53aa
Add fragment helper to skooma.js
2023-09-29 15:10:26 +02:00
0f2e596c54
Fix bug introduced in latest version
2023-09-29 15:10:16 +02:00
d706e09da1
Replace mechanism for creating customized built-in elements
2023-09-29 15:09:37 +02:00
3be6f513b3
Fix error in skooma
2023-09-29 15:09:30 +02:00
64f28972c0
Remove promise handling from skooma.js
...
This was really just feature creep and doesn't have to be part of
skooma. It could easily be implemented as an independent function or
module.
2023-09-29 15:09:30 +02:00
4621790fbd
Add mechanism for custom built-in elements
...
Note: Fuck Javascript
2023-09-29 15:09:30 +02:00
16ac15b7c3
Add explicit empty value to skooma
...
Optional arguments in skooma can be very annoying at times:
html.span("foo: ", may_return_undefined())
Skooma will produce a warning to inform the user that one of their
arguments is undefined as is is often unintended.
The new `empty` value provides a mechanism to explicitly ignore a single
argument, should it be optional
html.span("foo: ", may_return_undefined() || empty)
2023-09-29 15:09:30 +02:00
9bb5f82302
Add check for null in skooma as well
2023-09-29 15:09:30 +02:00
0366b3822b
Handle undefined arguments without crashing in skooma
2023-09-29 15:09:30 +02:00
5f165d1071
Refactor CSS and add "style" function
2023-09-29 15:09:28 +02:00
b40ee8d5b1
Rework skooma.bind function
2023-09-29 15:09:17 +02:00
0d67ca1f5e
Make skooma/bind more robust
2023-09-29 15:09:09 +02:00
e8d18ae19a
Extend skooma.text function to support template strings
2023-09-29 15:09:09 +02:00
694b4da6a4
Add current property to skooma bound elements
...
Elements bound witht he skooma bind function now get a `current`
property patched in.
2023-09-29 15:09:09 +02:00
60b40e2bc0
Add the skooma bind function
2023-09-29 15:09:09 +02:00
b440eec373
Add text wrapper to skooma.js
2023-09-29 15:09:09 +02:00
6094fd602d
Add handle
helper function to skooma
2023-09-29 15:09:09 +02:00
6f99045d22
Add support for initialisation function to skooma
2023-09-29 15:09:09 +02:00
4e67cba014
Add special case for dataset to skooma templating
2023-09-29 15:09:08 +02:00
742eb36035
Remove preventDefault from inline event listeners
2023-09-29 15:09:08 +02:00
2e1ee0358c
Add prommise support to skooma
2023-09-29 15:09:08 +02:00
f137f8a5b9
Fix typo in skooma
2023-09-29 15:09:08 +02:00
2ac1e0d4b8
Improve skooma attribute handling
2023-09-29 15:09:08 +02:00
8454f21c3a
Add skooma style property for setting inline styles
2023-09-29 15:09:08 +02:00