Commit graph

194 commits

Author SHA1 Message Date
Bunny Bites
a74e6d82c7 rename parse_json to parsed_values 2023-11-12 13:09:51 +05:30
Bunny Bites
8183935f66 remove unwanted cloning while passing reference. 2023-11-11 09:36:26 +05:30
Bunny Bites
c6b39c05b7 1. remove value_types from FormData.
2. modify type of values to accept dynamic type.
2023-11-10 11:44:19 +05:30
Bunny Bites
9f0e000295 provide proper error message 2023-11-09 11:09:07 +05:30
Bunny Bites
2cbbdc23c6 add impl fn for FormData to get input types 2023-11-09 11:04:47 +05:30
Bunny Bites
1a9d1eda19 optimize hashmap insertion 2023-11-09 00:41:50 +05:30
Bunny Bites
f1533781a4 add fn to convert hashmap to json 2023-11-09 00:38:22 +05:30
Bunny Bites
d54ec57192 1. migrated code to form.rs
2. made get_parsed_values as private fn.
3. handled multi-valued data while parsing
2023-11-05 08:16:09 +05:30
Evan Almloff
3bf6d2d7cf add must use to several hooks 2023-10-14 12:08:54 -05:00
Oak
f3a749538b
feat: initial_checked attribute for inputs (#1540)
Mapped to defaultChecked property of HTMLInputElement.
2023-10-12 08:12:09 -05:00
Leonard
2d1234c3d1
Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Oak
5bcb772511
feat: initial_selected attribute for options (#1508) 2023-10-02 14:08:09 -05:00
Evan Almloff
c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Valentin Golev
e8ea228759
add initial_value to textarea (#1434) 2023-09-06 12:49:29 -05:00
wooden-worm
f652474a6e
FileEngine: expose native file types on different platforms (#1258)
* Get native file

* Correct visibility
2023-08-17 08:03:56 -05:00
Evan Almloff
24c626b306 fix clippy 2023-08-08 13:43:57 -07:00
Brian Donovan
e98e773186
doc: fix typo (#1287) 2023-08-03 16:32:14 -05:00
Christian Albrecht
c9790860a5
fixed "http_equiv" in meta to generate "http-equiv" instead of "http_equiv" (#1277) 2023-08-02 11:25:41 -05:00
Evan Almloff
45d386810b create features for large web-sys events/types 2023-07-28 15:38:07 -07:00
Evan Almloff
2d51a1c4f2 make more of core private 2023-07-26 16:17:48 -07:00
Miles Murgaw
6210c6fefe
Convert use_eval to use send/recv system (#1080)
* progress: reworked

don't run this, it'll kill your web browser

* feat: use_eval but with comms

* revision: async recv & recv_sync

* revision: use_eval

* revision: standard eval interface

* revision: use serde_json::Value instead of JsValue

* revision: docs

* revision: error message

* create: desktop eval (wip)

* fix: desktop eval

* revision: wrap use_eval in Rc<RefCell<_>>

* fix: fmt, clippy

* fix: desktop tests

* revision: change to channel system

- fixes clippy errors
- fixes playwright tests

* fix: tests

* fix: eval example

* fix: fmt

* fix: tests, desktop stuff

* fix: tests

* feat: drop handler

* fix: tests

* fix: rustfmt

* revision: web promise/callback system

* fix: recv error

* revision: IntoFuture, functionation

* fix: ci

* revision: playwright web

* remove: unescessary code

* remove dioxus-html from public examples

* prototype-patch

* fix web eval

* fix: rustfmt

* fix: CI

* make use_eval more efficient

* implement eval for liveview as well

* fix playwright tests

* fix clippy

* more clippy fixes

* fix clippy

* fix stack overflow

* fix desktop mock

* fix clippy

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-07-21 17:36:25 -05:00
Jonathan Kelley
41c4b57984
Merge pull request #1074 from kaid/directory-selection-dialog
Add directory support for file input.
2023-07-18 18:23:23 -07:00
Evan Almloff
7453486448 fix formatting 2023-07-17 15:12:57 -07:00
Kaid
e39d8708fa Changed directory to webkitdirectory in bool_attrs definitions. 2023-07-10 17:19:11 +08: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
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
Jon Kelley
379ea09b12
Merge pull request #894 from Demonthos/query-system
Create onmounted Event
2023-05-18 13:17:15 +02:00
Evan Almloff
633eae2d5c add use element to html 2023-05-15 14:39:32 -05:00
Alexander Keliris
35cb6616af
Add hgroup html tag (#1016)
The [<hgroup>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup) HTML element represents a heading and related content. It groups a single <h1>–<h6> element with one or more <p>.
2023-05-10 08:21:05 -05:00
Evan Almloff
d1afd99b10 fix clippy 2023-05-08 17:58:56 -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
Evan Almloff
cfe94950c6 make files optional when deserializing form data 2023-04-26 18:05:13 -05:00
Evan Almloff
e1f02f8135 Merge branch 'upstream' into query-system 2023-04-26 18:00:39 -05: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
9fa912bb59 create native file engine bindings for TUI/Blitz 2023-04-20 10:12:11 -05:00
Evan Almloff
223c7efce2 Merge branch 'upstream' into query-system 2023-04-18 10:33:40 -05:00
Evan Almloff
f1f7517b88 Fix form events with select multiple 2023-04-06 11:11:08 -05:00
Evan Almloff
1cc4260f70 more resilient keyboard event deserialization 2023-04-01 20:15:10 -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
1aad285853 provide nicer error types 2023-03-19 17:02:12 -05:00
Evan Almloff
920fcf728c create onmounted event 2023-03-19 16:34:57 -05:00
Jonathan Kelley
a6c13c8ad0 Move event return to HTML crate 2023-02-08 15:51:28 -08:00
Jonathan Kelley
9ebafc46bb feat: allow 'static futures to be spawned from handlers 2023-02-06 00:54:08 -08:00
Evan Almloff
b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Evan Almloff
d8d483a8b4 apply the same fixes to element specific attributes 2023-01-12 11:31:21 -06:00