Jonathan Kelley
30ef225812
feat: event handling on desktop
2022-11-17 20:00:39 -08:00
Jonathan Kelley
e8ae830cf2
feat: get desktop working with just creation
2022-11-15 18:32:48 -08:00
Jonathan Kelley
8caabb97d8
wip: more work on html
2022-11-15 16:51:22 -08:00
Jonathan Kelley
0dad91bc08
wip: pass more events
2022-11-15 16:37:23 -08:00
Jonathan Kelley
47d0f51e00
wip: overhaul event system
2022-11-15 16:05:22 -08:00
Jonathan Kelley
c096057dd3
chore: tweak attributes to only set ID once
2022-11-08 20:06:39 -08:00
Jonathan Kelley
c6a6c3d0f8
feat: components pass thru children
2022-11-02 17:29:18 -07:00
Jonathan Kelley
4a31b29703
feat: simple tests passing
2022-11-01 18:42:29 -07:00
Jonathan Kelley
22d4bf7346
feat: use walking pattern
2022-10-26 18:04:47 -07:00
Jonathan Kelley
90982e0ccb
wip: start to refactor out hot reloading from packages
...
Also implement alternative simpler template system
2022-10-20 09:56:09 -07:00
Daniel Olano
b51abd1a9c
Add datetime attribute to time element ( #590 )
2022-10-14 10:16:52 -05:00
Demonthos
047ed1e553
Subtree memorization / reactive templates ( #488 )
...
This commit adds subtree memoization to Dioxus.
Subtree memoization is basically a compile-time step that drastically
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates
are then understood by the various renderers in the ecosystem as a
faster way of rendering the same items.
For example, in the web, templates are simply a set of DOM Nodes created
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance.
Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.
This commit represents a working starter point for this work, adding support
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Demonthos
b32fd2d2cd
fix scroll data ( #569 )
2022-09-30 10:48:52 -07:00
Demonthos
d4d5d2733e
add missing global attributes ( #546 )
2022-09-08 12:06:25 -07:00
Eric Hulburd
02a21bc193
fix: set false for media event bubbling ( #542 )
2022-09-08 07:55:07 -05:00
Norman Paniagua
8347de5956
Added dialog tag ( #533 )
...
* added dialog tag
* updated attribute type
2022-08-24 08:01:40 -05:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. ( #387 )
...
* feat: use synchronous router design
* feat: function to get router out of dom
* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Demonthos
4a5ae758ee
Allow Multiple dependencies for states in the RealDom (native core) ( #412 )
...
* WIP multable deps
* WIP: refactor and genralize state macro
* add traversable trait
* update tui to use elementid to index dom
2022-07-07 00:50:22 -04:00
Reinis Mazeiks
f30387597a
Add wheel events to event example; make interface prettier
2022-06-29 01:18:09 +03:00
Reinis Mazeiks
a46ff93600
Improve keyboard event debug formatting
2022-06-29 01:09:17 +03:00
Reinis Mazeiks
c090741c60
Improve event formatting
2022-06-28 23:46:24 +03:00
Reinis Mazeiks
f3fcec2bdf
Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-events
...
Conflicts:
packages/html/src/events.rs
packages/tui/src/hooks.rs
2022-06-28 21:09:20 +03:00
Evan Almloff
11d9a7d013
Merge remote-tracking branch 'upstream/master' into fix_nonbubbling_web_events
2022-06-22 13:59:10 -05:00
Evan Almloff
61b4bb2f19
handle bubbling events
2022-06-22 13:57:05 -05:00
Jonathan Kelley
8be66bd34d
fix: apply some clippy lints and rename the liveview methods to not intersect
2022-06-20 02:24:39 -04:00
Evan Almloff
db1866090a
fix broken doc links
2022-05-22 20:44:32 -05:00
Reinis Mazeiks
fcf776e60f
Update web_sys to avoid deprecated API
2022-05-12 18:24:13 +03:00
Reinis Mazeiks
45980f9a1e
Update examples to avoid deprecated API
2022-05-12 15:00:43 +03:00
Reinis Mazeiks
aaf9d4665f
Update interpreter and example
2022-05-12 14:36:52 +03:00
Reinis Mazeiks
ed34e339fc
Tui: construct keyboard data with new api
2022-05-12 14:10:25 +03:00
Reinis Mazeiks
7ee02bc0d8
Enable euclid/serde
when needed
2022-05-12 11:38:27 +03:00
Reinis Mazeiks
addb0703b1
Write docs for wheel events
2022-05-12 11:12:34 +03:00
Reinis Mazeiks
1bb8b04d87
Update examples to avoid deprecated fields
2022-05-12 11:03:51 +03:00
Reinis Mazeiks
d7e4fcda80
Implement idiomatic accessors for WheelData
2022-05-12 10:55:04 +03:00
Reinis Mazeiks
765baf6e48
Rename module input
to avoid naming conflict with element of the same name
...
Not sure if this was supposed to be allowed, but it was causing https://github.com/rust-lang/rust/issues/96934
2022-05-11 13:47:58 +03:00
Reinis Mazeiks
5bddafb943
Update tui_keys example and web_sys to use new accessor methods
2022-05-07 18:28:15 +03:00
Reinis Mazeiks
81d3c990bf
Simplify mouse button tracking
...
delete the shitcodes
2022-05-07 16:11:48 +03:00
Reinis Mazeiks
9c6cd42ca2
TUI: use constructor instead of deprecated fields
2022-05-07 10:49:49 +03:00
Reinis Mazeiks
c35dddc203
Create constructor for MouseData
2022-05-07 10:31:05 +03:00
Reinis Mazeiks
3fec31fe50
Use keyboard_types instead of bespoke ModifierSet
2022-05-07 10:05:52 +03:00
Reinis Mazeiks
2ef332085c
Refactor: move input types to separate module
2022-05-07 09:39:53 +03:00
Reinis Mazeiks
6ba067a617
Use EnumSet for modifier and button sets
2022-05-07 09:31:44 +03:00
Reinis Mazeiks
2c48ae271f
rustfmt
2022-05-07 01:01:38 +03:00
Reinis Mazeiks
6a5a3f47cc
Remove allow(deprecated)
to bring back the warnings
2022-05-07 00:59:12 +03:00
Reinis Mazeiks
3c447d7266
Documentation and examples
...
Also derive useful traits
2022-05-07 00:49:47 +03:00
Reinis Mazeiks
0dbd3e370e
Rusty MouseData API
2022-05-06 23:54:07 +03:00
Reinis Mazeiks
dbdcea6fc6
Add offset_ fields for web targets
2022-05-04 19:55:42 +03:00
Reinis Mazeiks
d84d414170
Add offset coordinates to mouse events on TUI and desktop.
2022-05-04 16:42:14 +03:00
Reinis Mazeiks
96c178f91f
Add docs for event MouseData
...
Adapted from https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
2022-05-04 16:09:18 +03:00
Jonathan Kelley
3febd42588
Release dioxus-core v0.2.1, dioxus-core-macro v0.2.1, dioxus-html v0.2.1, dioxus-interpreter-js v0.2.1, dioxus-desktop v0.2.3, dioxus-hooks v0.2.1, dioxus-liveview v0.1.0, dioxus-native-core v0.2.0, dioxus-native-core-macro v0.2.0, dioxus-router v0.2.3, dioxus-ssr v0.2.1, dioxus-tui v0.2.2, dioxus-web v0.2.1, fermi v0.2.1, dioxus v0.2.4
2022-05-02 23:57:20 -04:00
Jon Kelley
f7e67cb2d7
Merge pull request #329 from Demonthos/lazy_tui
...
Tui Lazy Attributes and Layout
2022-05-02 21:38:18 -04:00
Evan Almloff
84db875101
Merge branch 'master' of https://github.com/DioxusLabs/dioxus into lazy_tui
2022-04-24 06:56:07 -05:00
SasakiSaki
b73bf13577
Merge branch 'DioxusLabs:master' into master
2022-04-24 11:41:08 +08:00
Jon Kelley
c4a19f71af
Merge branch 'master' into master
2022-04-23 23:08:58 -04:00
WIGGLES
52c4842c98
Merge branch 'DioxusLabs:master' into master
2022-04-23 21:24:29 -04:00
Aleksei Zolotov
5e16269532
Add PartialEq to events::KeyCode
2022-04-23 16:21:07 +02:00
Ian
149d484ffb
added menu element
2022-04-18 22:24:17 -04:00
Evan Almloff
d9276bd64c
clean up code and docs
2022-04-17 07:29:35 -05:00
Jonathan Kelley
841ad91fe1
fix: dblclick instead of doubleclick
2022-03-11 10:49:38 -05:00
Jonathan Kelley
e7505188d6
release: make a new 0.2.0 release of Dioxus
2022-03-09 14:24:05 -05:00
Jonathan Kelley
dde4ed2946
fix: merge css together
2022-02-26 18:15:04 -05:00
Aster
8d42191d7a
Add From
trait to convert web_sys Events to html Data
2022-02-12 20:57:13 +08:00
Jonathan Kelley
9f60dfa8b0
feat: add all the css
2022-02-11 15:50:07 -05:00
Jonathan Kelley
169f1dac11
Merge branch 'master' into jk/form-ma
2022-02-04 18:10:26 -05:00
Jonathan Kelley
a9ac0568e2
fix: allow prevent_default on svg
2022-02-03 13:19:41 -05:00
Jonathan Kelley
7c06b3a9a2
Merge branch 'master' into jk/form-ma
2022-02-01 15:24:19 -05:00
Jonathan Kelley
6339fa8188
Release dioxus-html v0.1.6, dioxus-router v0.1.1
2022-01-29 10:42:52 -05:00
Jonathan Kelley
f6c6134d67
Release dioxus-core v0.1.9
2022-01-29 10:42:38 -05:00
Jonathan Kelley
11ba189eab
Release dioxus-html v0.1.5
2022-01-29 10:36:24 -05:00
Jonathan Kelley
f965030b80
Release dioxus-core v0.1.8
2022-01-29 10:36:10 -05:00
Jonathan Kelley
56f3002aed
feat: add changelogs
2022-01-29 10:17:14 -05:00
Jonathan Kelley
43e78d56f7
fix: rustfmt
2022-01-22 14:55:19 -05:00
Jonathan Kelley
f66d17ca84
wip: pass form data between web and desktop
2022-01-22 14:53:59 -05:00
Rasmus Lövegren
5f4a72446e
Add gap and row_gap to style_trait_methods
2022-01-22 19:57:46 +02:00
Dave Rolsky
9e4ec43b1e
Fix various typos and grammar nits
...
I also removed all trailing whitespace from lines since I have Emacs
configured to highlight this.
2022-01-21 21:43:43 -06:00
Sven Assmann
007d06d602
feat(events:focus): add missing onfocusin
event
2022-01-10 18:08:29 +01:00
Sven Assmann
9849f68f25
feat(example:todomvc): add editing support
...
- implement "onfocusout" handler
- set autofocus
- handle enter, escape and tab on a todo item
- make the `<pre>` element between todo list items of margin 0 to be unnoticable
2022-01-10 14:46:23 +01:00
Jonathan Kelley
a36dab7f45
Release dioxus-html v0.1.4, dioxus-desktop v0.1.5, dioxus-hooks v0.1.6, dioxus-mobile v0.0.3, dioxus-router v0.1.0, dioxus-ssr v0.1.2, dioxus-web v0.0.4, dioxus v0.1.7
2022-01-08 02:28:25 -05:00
Jonathan Kelley
40d1f85d0c
Release dioxus-core v0.1.7, dioxus-core-macro v0.1.6, dioxus-html v0.1.4, dioxus-desktop v0.1.5, dioxus-hooks v0.1.6, dioxus-mobile v0.0.3, dioxus-router v0.1.0, dioxus-ssr v0.1.2, dioxus-web v0.0.4, dioxus v0.1.7
2022-01-08 02:25:03 -05:00
Jonathan Kelley
9dff700c22
feat: enable prevent_default everywhere
2022-01-07 21:56:12 -05:00
Jonathan Kelley
c439b0ac7e
fix: component pass thru events
2022-01-07 11:51:25 -05:00
Jonathan Kelley
cb2782b4bb
wip: memoize dom in the prescence of identical components
2022-01-05 00:27:22 -05:00
Jonathan Kelley
4ea5c990d7
publish: new versions of everything
2022-01-03 19:44:04 -05:00
Jonathan Kelley
4f92ba4160
wip: bump all versions
2022-01-03 19:32:27 -05:00
Jonathan Kelley
f9b9bb9c0c
publish: update core, core-macro, and html
2022-01-03 02:13:14 -05:00
Jonathan Kelley
06276edd0d
feat: eanble bubbling
2022-01-03 02:11:26 -05:00
Jonathan Kelley
d84fc05386
feat: plug in bubbling
2022-01-03 02:06:42 -05:00
Jonathan Kelley
75fa7b4aa6
fix: make tests pass
2022-01-03 01:12:39 -05:00
Jonathan Kelley
d1560450ba
wip: remove runner on hook and then update docs
2022-01-02 02:15:04 -05:00
Jonathan Kelley
14961023f9
wip: polish some more things
2021-12-29 21:28:28 -05:00
Jonathan Kelley
42c6d1772b
publish: fix documentation page
2021-12-29 13:30:48 -05:00
Jonathan Kelley
18f1fa4637
publish: bump html crate
2021-12-29 13:30:07 -05:00
Jonathan Kelley
8f9a3281e7
wip: add more svg elements
2021-12-29 11:17:39 -05:00
Jonathan Kelley
ad4a0eb319
wip: add more svg elements, update readme
2021-12-29 00:56:53 -05:00
Jonathan Kelley
b3ac2ee3f7
wip: upgrade hooks
2021-12-27 15:03:43 -05:00
Jonathan Kelley
2c3a046426
wip: prepare to change our fragment pattern. Add some more docs
2021-12-18 15:17:32 -05:00
Jonathan Kelley
2b928372fb
Release dioxus-core v0.1.3, dioxus-core-macro v0.1.2, dioxus-html v0.1.0, dioxus-desktop v0.0.0, dioxus-hooks v0.1.3, dioxus-liveview v0.1.0, dioxus-mobile v0.0.0, dioxus-router v0.1.0, dioxus-ssr v0.1.0, dioxus-web v0.0.0, dioxus v0.1.1
2021-12-15 16:07:09 -05:00
Jonathan Kelley
0d480a4c43
Release dioxus-core v0.1.3, dioxus-core-macro v0.1.2, dioxus-html v0.1.0, dioxus-desktop v0.0.0, dioxus-hooks v0.1.3, dioxus-liveview v0.1.0, dioxus-mobile v0.0.0, dioxus-router v0.1.0, dioxus-ssr v0.1.0, dioxus-web v0.0.0, dioxus v0.1.0
2021-12-15 16:06:15 -05:00
Jonathan Kelley
868f6739d2
fix: keyword length
2021-12-15 16:06:13 -05:00
Jonathan Kelley
b32665d721
Release dioxus-core v0.1.3, dioxus-core-macro v0.1.2, dioxus-html v0.1.0, dioxus-desktop v0.0.0, dioxus-hooks v0.1.3, dioxus-liveview v0.1.0, dioxus-mobile v0.0.0, dioxus-router v0.1.0, dioxus-ssr v0.1.0, dioxus-web v0.0.0, dioxus v0.1.0
2021-12-15 16:05:20 -05:00