Jon Kelley
4145e50bbf
Merge pull request #1104 from Demonthos/fix-booleans-with-boolean-attributes
...
Fix boolean attributes with raw boolean values
2023-06-30 12:11:22 -07:00
Jon Kelley
dfa4d8d989
Merge pull request #1105 from Demonthos/workspace-dependancies
...
Workspace Dependancies
2023-06-27 10:17:12 -07:00
Jonathan Kelley
d93d11262d
bump interpreter version
2023-06-20 11:57:24 -04:00
Evan Almloff
5f873511c5
use workspace dependancies
2023-06-19 14:29:11 -05:00
Evan Almloff
4f672ff4bb
fix boolean attributes with raw boolean values
2023-06-19 10:19:35 -05:00
ealmloff
cf9ed74303
Merge branch 'master' into fix-onload-event
2023-06-19 08:16:40 -05:00
Kaid
277436f673
Changed underlying directory attribute to webkitdirectory
, fixed attribute parsing to properly toggle it.
2023-06-06 08:06:27 +08:00
Kaid
37a8fb5391
Add directory support for file input.
2023-06-05 16:47:04 +08:00
Miles Murgaw
510c242883
fix: move bool_attrs to common.js ( #1072 )
2023-06-04 14:15:46 -05:00
Miles Murgaw
d09c92beda
Add initial_value attribute & fix static special attribute handling ( #1063 )
...
* feat & fix: initial_value attribute, special attribute handling
* revision: rename js file
* fix: rustfmt
* fix: clippy
* fix: desktop not finding common.js
* fix: desktop failing to render
Missed a single ``this.SetAttributeInner`` as it was now ``setAttributeInner``
Javascript didn't even throw any errors about this smh
* revision: no need for match statement
2023-06-04 11:29:34 -05:00
Jonathan Kelley
563a2b0953
Bump interpreter
2023-06-01 22:39:43 +02:00
Evan Almloff
553205dc74
Merge branch 'master' into fix-links-liveview
2023-05-24 07:38:04 -05:00
Evan Almloff
77275d40c1
Merge branch 'master' into fix-links-liveview
2023-05-24 07:36:16 -05:00
Evan Almloff
043aae1689
fix the onload event
2023-05-08 17:49:28 -05:00
Evan Almloff
19436e210f
Merge branch 'upstream' into query-system
2023-05-05 11:09:25 -05:00
ealmloff
4d90bdee47
Remove console.log
2023-04-29 20:42:47 -05:00
Evan Almloff
f044bb2128
fix onclick event
2023-04-27 15:19:10 -05:00
Attilio
c645e1c6aa
Allow multiple prevent default for Web, Desktop and LiveView ( #987 )
...
* Allow multiple prevent default in dioxus_web
* Use SplitWhitespace for prevent default requests
* Add multiple prevent default option to liveview and desktop
* Update docs about prevent_default attribute
* cargo clippy
* update prevent default guide example
---------
Co-authored-by: Evan Almloff <ealmlof1@stumail.jccc.edu>
2023-04-27 11:26:04 -05:00
Evan Almloff
ada246c12e
add file property to drag data
2023-04-27 10:21:05 -05:00
Evan Almloff
e1f02f8135
Merge branch 'upstream' into query-system
2023-04-26 18:00:39 -05:00
Evan Almloff
7e292cc2fa
Merge branch 'upstream' into fix-links-liveview
2023-04-26 17:56:13 -05:00
Jonathan Kelley
22cfff647c
Merge branch 'master' into implement-file-engine
2023-04-26 15:32:34 -07:00
Evan Almloff
9cfb655478
implement the file engine for liveview
2023-04-25 14:26:12 -05:00
Evan Almloff
6d3d927d5c
Merge branch 'fix-select-form-events' into implement-file-engine
2023-04-25 13:18:25 -05:00
Evan Almloff
28ef3f8968
fix liveview links
2023-04-23 12:07:38 -05:00
Evan Almloff
5a08da5ec7
fix selected and checked with boolean attributes
2023-04-23 11:48:53 -05:00
Evan Almloff
d7eae79509
prevent default file input behavior on desktop
2023-04-20 10:10:52 -05:00
Evan Almloff
223c7efce2
Merge branch 'upstream' into query-system
2023-04-18 10:33:40 -05:00
Evan Almloff
1200457880
bump sledgehammer version
2023-04-17 07:18:26 -05:00
Evan Almloff
ea5a6775a2
bump sledgehammer-bindgen version
2023-04-14 14:58:48 -05:00
Evan Almloff
f1f7517b88
Fix form events with select multiple
2023-04-06 11:11:08 -05:00
Evan Almloff
fa9f0d0f6c
Generalize Query system for use in use_eval and node querys
2023-03-23 15:19:00 -05:00
Evan Almloff
7636c046fa
implement on mounted for desktop
2023-03-20 16:10:34 -05:00
Evan Almloff
cb5cb56ad3
implement onmounted for the web renderer
2023-03-19 18:28:34 -05:00
Evan Almloff
7253eabe0a
fix anchor link for block-level elements
2023-03-06 20:49:23 -06:00
Evan Almloff
a51f67c2ec
add version to docs links in readmes
2023-02-18 18:38:30 -06:00
Jon Kelley
4f0f2484fd
Merge pull request #774 from Demonthos/update-doc-links
...
Update guide doc links
2023-02-17 11:53:15 -08:00
Jonathan Kelley
f420c6f333
bump web and interpreter
2023-02-16 13:42:49 -08:00
Evan Almloff
6bea6f6385
fix text dynamic node not assigning id
2023-02-09 09:14:07 -06:00
Evan Almloff
c881f9bf82
fix removing attributes in web bindings
2023-02-05 19:48:49 -06:00
Evan Almloff
51ca23b3f7
fix drag serialization on desktop
2023-01-25 20:44:42 -06:00
Evan Almloff
3f3db39c28
update doc links
2023-01-15 15:18:12 -06:00
Evan Almloff
c5bb4275e6
fix boolean attributes with the web renderer
2023-01-13 08:48:59 -06:00
Evan Almloff
52d5c8d4e7
update READMEs and tags for the 0.3 release
2023-01-10 10:16:11 -06:00
Evan Almloff
d2b5af6615
remove logs from interpreter
2023-01-09 12:04:38 -06:00
Jonathan Kelley
7f01f61138
feat: publish 0.3 versions of many crates
2023-01-04 14:31:07 -05:00
Evan Almloff
ea43b864db
remove attributes with the None value
2023-01-03 08:51:48 -06:00
Jonathan Kelley
4fdbce9a70
chore: clean up readmes
2022-12-29 16:17:03 -05:00
Jonathan Kelley
58b0519c2f
feat: get interpreter working on desktop
2022-12-19 15:02:36 -08:00
Jonathan Kelley
50faa7dd08
feat: add proper event type
2022-12-19 14:14:01 -08:00
Evan Almloff
f84166fb11
allow configering the root name in the desktop renderer
2022-12-18 22:28:40 -06:00
Jon Kelley
5ac9b595ea
Revert "fix: liveview interpreter using new templates"
2022-12-16 14:20:05 -08:00
Jonathan Kelley
7790d2c065
chore: simplify liveview abstraction
2022-12-15 18:46:59 -08:00
Jonathan Kelley
06e8e096bb
feat: more fixes to liveview
2022-12-15 14:25:23 -08:00
Jonathan Kelley
e256fe1079
wip: add html event type
2022-12-14 19:07:33 -08:00
Jonathan Kelley
e4d089fabc
fix: sledgehammer hydate text
2022-12-12 11:52:56 -08:00
Evan Almloff
f7717d8eb2
bump sledgehammer version
2022-12-10 08:29:54 -06:00
Jonathan Kelley
1b7fe3fcde
fix: dont use id for append
2022-12-09 16:44:08 -08:00
Evan Almloff
7ef180409d
use sledgehammer-bindgen 0.1.2
2022-12-08 07:41:04 -06:00
Evan Almloff
99a4a9d45b
Merge branch 'upstream' into optimize-templates-v3
2022-12-07 18:29:02 -06:00
Evan Almloff
b79ad4f50e
Merge remote-tracking branch 'upstream/master' into optimize-templates-v3
2022-12-07 17:20:31 -06:00
Evan Almloff
5c6c235df0
cleanup code
2022-12-07 15:48:25 -06:00
Jonathan Kelley
4eefc3f854
chore: rename all &cx to cx, make clipppy happy
2022-12-07 13:11:40 -08:00
Jonathan Kelley
1b14b309e9
chore: clean up desktop
2022-12-06 16:37:28 -08:00
Evan Almloff
6102902387
work on optimizing web implementation
2022-12-06 14:24:35 -06:00
Jonathan Kelley
b182a6ee75
chore: clean up interpreter and bindings
2022-12-05 16:47:04 -08:00
Jonathan Kelley
7b1cdb7d85
feat: get desktop working with new template strategy
2022-12-05 16:08:41 -08:00
Jonathan Kelley
11a45c8ef0
chore: continue to clean things up
2022-12-01 01:08:49 -05:00
Jonathan Kelley
85657d3906
feat: rip out mutations for templates
2022-12-01 00:46:15 -05:00
Jonathan Kelley
18d6b1ad6f
feat: get web working properly
2022-11-30 17:21:10 -05:00
Jonathan Kelley
3c19def550
chore: get create working and simplify dynamic nodes
2022-11-30 11:24:13 -05:00
Jonathan Kelley
7e6cea3a13
wip: continue to tweak suspense
2022-11-22 10:05:13 -08:00
Jonathan Kelley
20f9957fbe
feat: diffing works on desktop!
2022-11-17 22:31:14 -08:00
Jonathan Kelley
30ef225812
feat: event handling on desktop
2022-11-17 20:00:39 -08:00
Jonathan Kelley
6b473cbdc5
feat: conditionals and iterators in rsx
2022-11-16 22:10:13 -08:00
Jonathan Kelley
642b21f125
suspense works in desktop
2022-11-16 11:48:47 -08:00
Jonathan Kelley
66319cf6e2
wip: queue mods
2022-11-16 01:13:39 -08:00
Jonathan Kelley
9a3f84037e
fix: render namespces
2022-11-15 23:40:16 -08:00
Jonathan Kelley
7f85806fa6
wip: trying to get namespaced elements working
2022-11-15 23:31:23 -08:00
Jonathan Kelley
04bc635ac5
wip: prep to fix bug in create
2022-11-15 23:22:41 -08:00
Jonathan Kelley
e8ae830cf2
feat: get desktop working with just creation
2022-11-15 18:32:48 -08:00
Demonthos
3b7b503333
Refactor Mutations and simplify Templates ( #578 )
...
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
Demonthos
020c4bf0f8
fix bug with dynamic nodes after fragments ( #591 )
2022-10-15 11:00:56 -07: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
Eric Hulburd
02a21bc193
fix: set false for media event bubbling ( #542 )
2022-09-08 07:55:07 -05:00
Jon Kelley
6e7015b997
Merge pull request #466 from Demonthos/fix_js_interperter
...
check that an node is an element before removing listeners
2022-06-30 15:18:40 -04:00
Evan Almloff
58a495351a
check that an node is an element before removing listeners
2022-06-29 09:09:47 -05: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
61b4bb2f19
handle bubbling events
2022-06-22 13:57:05 -05:00
Evan Almloff
38de26d0e4
remove attributes correctly
2022-06-09 10:31:11 -05: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
d84d414170
Add offset coordinates to mouse events on TUI and desktop.
2022-05-04 16:42:14 +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
Jonathan Kelley
dfc69c0905
fix: compile fail for web
2022-04-04 12:29:00 -04:00
Jon Kelley
5c6ff70dd4
Merge pull request #316 from DioxusLabs/jk/fix-hydration
...
fix: setnode method for rehydration code
2022-03-20 20:11:55 -04:00
Jonathan Kelley
ad027d7aa4
fix: radio buttons in forms
2022-03-20 20:11:12 -04:00
Jonathan Kelley
f26f704b6b
fix: setnode method for rehydration code
2022-03-17 10:51:23 -04:00
Jonathan Kelley
2d2de36eed
fix: filtering for buttons
2022-03-13 18:53:20 -04:00
Jonathan Kelley
841ad91fe1
fix: dblclick instead of doubleclick
2022-03-11 10:49:38 -05:00