33 Commits

Author SHA1 Message Date
f03d1641d9 Add an attach shadow method 2023-11-25 21:09:12 -05:00
a63670b7d3 Allow mutable forms of the API 2023-11-21 23:03:41 -05:00
7b589373ed Fix some ambiguous wasm_bindgen crate references. 2023-11-21 19:44:14 -05:00
8ce79d34a5 Add the observed event handlers to the shadowRoot
If it exists then add it there. Otherwise add it to the custom element itself.
2023-11-15 21:00:45 -05:00
bb60556f29 docs: Update docs with event handling information. 2023-11-13 18:50:24 -05:00
f41a9d3100 bug: Fix some bugs in the init wiring 2023-11-13 18:46:38 -05:00
76baa1871e feat: Add proper event listener support 2023-11-13 18:07:24 -05:00
8956f485a8 feat: init hook for element constructor 2023-11-13 17:54:14 -05:00
c39293636d maint: bump version to v0.2.0 0.2.0 2023-11-12 20:04:08 -05:00
7f25fae4dc Doc cleanup and expansion 2023-11-12 20:00:34 -05:00
2f7c3793c5 Add an api for retrieving the id of the element 2023-11-12 18:29:24 -05:00
e71a28b4e3 Add an api for TemplateElement definition. 2023-11-12 18:00:01 -05:00
f5791b9355 Add Makefile for convenience 2023-10-25 17:18:03 -04:00
9dbdccef78 Construct the ONCE name in a way that satisfies lint 2023-10-25 17:17:29 -04:00
55d743f01c fix: usings and lint stuff found by using in app 2023-09-23 12:13:42 -04:00
cb071f4ffc maint: Update version to 0.1.1 v0.1.1 2023-08-18 17:14:13 -04:00
1a71426806 Update documentation a bit. 2023-08-18 17:12:48 -04:00
4f860a242b feat: Add a define_once method 2023-08-18 17:12:31 -04:00
e1d1b2c80b Setup event handling scaffolding 2022-10-10 16:58:46 -04:00
94e8ee07c6 Clean up the WebComponentHandle closure.
Had a misunderstanding regarding closure lifetimes.
2022-10-10 16:58:43 -04:00
7ffcab1416 Allow specifying the window to create elements in 2022-10-09 17:42:44 -04:00
ff6e9a5079 More tests around class and element naming 2022-10-09 15:51:31 -04:00
c311de79b1 Make all the attribute args optional 2022-10-07 10:21:26 -04:00
7e257ba7bc Dont include Cargo.lock for libraries 2022-10-06 23:59:30 -04:00
4551df2058 Add README 2022-10-06 23:56:42 -04:00
8bd022449a Add LICENSE file 2022-10-06 23:52:13 -04:00
3520d7b12c Cleanup naming of crates and adding docs 2022-10-06 23:51:33 -04:00
b6a80d56a1 Derive the class_name if missing 2022-10-06 23:07:18 -04:00
d56f34cab9 Sketch out interface with shim implementation 2022-10-06 22:13:18 -04:00
4daaa03093 Proc macro 2022-10-05 20:31:01 -04:00
ef59c1769c Lifecycle callbacks 2022-10-05 18:36:26 -04:00
793a949053 Store an instance of the Rust type in the Element Class 2022-10-02 20:27:01 -04:00
3d2a1a285e Initial javascript shim working 2022-10-02 18:44:13 -04:00