Nikhil Rao
5b3d0a51e8
Disable NextJS telemetry prod mode ( #1013 )
2023-05-12 13:58:46 -07:00
Nikhil Rao
92b1e241ac
Update dependency versions ( #1007 )
2023-05-12 00:09:58 -07:00
Masen Furer
0491852a45
@pc.cached_var: explicit opt-in for ComputedVar tracking ( #1000 )
2023-05-11 17:47:54 -07:00
Nikhil Rao
8c42c99ecf
Unindent jinja template code ( #1001 )
2023-05-10 23:26:01 -07:00
Nikhil Rao
6af7db42fb
Fix unit tests ( #993 )
2023-05-10 10:50:32 -07:00
Masen Furer
e887dd143b
Trigger on_load when router completes navigation ( #984 )
2023-05-10 01:11:54 -07:00
iron3oxide
32f3a387ae
Rename var module to vars ( #983 )
2023-05-09 23:01:25 -07:00
Masen Furer
557097e2ca
ComputedVar dependency tracking: require caller to pass objclass ( #963 )
...
Avoid issue where a ComputedVar is added to to a class dynamically, but does
not have a reference to the class its attached to, but requiring callers of the
`deps()` method to provide the objclass for looking up recursive method calls.
This allows for safer and more simplified determination of dependencies, even
in highly dynamic environments.
2023-05-09 14:36:45 -07:00
PeterYusuke
3b88e7c329
[Fix 477] Use jinja2 for templating ( #915 )
2023-05-09 14:34:47 -07:00
Nikhil Rao
dc2dff9323
Temp remove computed var dependency checks ( #972 )
2023-05-08 18:00:03 -07:00
Nikhil Rao
8e3daf9f5b
Clean up on_load events ( #965 )
2023-05-08 12:13:51 -07:00
Masen Furer
4515561e61
Per-instance backend variables ( #959 )
...
* test_state: check that _backend_vars are not shared between instances
Each instance of State should get its own backend vars
* per-instance backend vars
Attempt to fix #958
2023-05-07 16:23:31 -07:00
Thomas Brandého
893c0b132e
Make argument optional for event handlers ( #950 )
2023-05-06 13:10:35 -07:00
Masen Furer
b4e534cc97
Cache ComputedVar fixup for dynamic route vars ( #952 )
2023-05-06 12:44:50 -07:00
Elijah Ahianyo
9ea1a64d22
Throw error for unannotated computed vars ( #941 )
2023-05-06 12:26:49 -07:00
Elijah Ahianyo
0d51f58c9f
pc datatable fix for python <=3.8 ( #949 )
2023-05-05 15:01:00 -07:00
Elijah Ahianyo
18c715670a
Revamp Imports ( #926 )
2023-05-04 22:11:01 -07:00
Masen Furer
c344a5c0d7
Cache ComputedVar ( #917 )
2023-05-04 00:11:39 -07:00
Nikhil Rao
34d77db541
Fix event handler string args ( #928 )
2023-05-01 17:06:42 -07:00
Nikhil Rao
1a254aca8e
Add pc.set_value ( #835 )
2023-04-29 19:01:37 -07:00
Nikhil Rao
a9ee9f6d44
Fix event handler calls to handlers ( #899 )
2023-04-27 19:30:52 -07:00
Nikhil Rao
60323a3aec
Revert fstrings change ( #895 )
2023-04-27 14:36:20 -07:00
Nikhil Rao
23a23d437c
Fix f-strings in props ( #891 )
2023-04-26 21:20:40 -07:00
Nikhil Rao
f0346506d7
Allow fstrings as component children ( #890 )
2023-04-26 19:32:51 -07:00
Nikhil Rao
e03e5f8033
Use Python truthiness in pc.cond ( #889 )
2023-04-26 17:16:38 -07:00
Elijah Ahianyo
29945504bc
Dynamic vars initialization unit tests( #880 )
2023-04-26 14:41:47 -07:00
Elijah Ahianyo
5ad3882898
Handle upload bugfix ( #886 )
2023-04-26 12:56:34 -07:00
Nikhil Rao
f504d6b4b1
Disable computed var deps ( #872 )
2023-04-25 21:24:40 -07:00
Nikhil Rao
f019e0e55a
Speed up computed var dependency tracking ( #864 )
2023-04-25 13:56:24 -07:00
Kasun Herath
fc9b03ebd7
Custom configuration support ( #792 )
2023-04-24 21:40:07 -07:00
Masen Furer
3c4fb256a2
Always emit a full dict() when hydrating ( #843 )
2023-04-24 21:28:30 -07:00
Kasun Herath
6631080a23
Drop default primary key is another is defined ( #812 ) ( #851 )
2023-04-24 18:49:43 -07:00
Nikhil Rao
1029d3483a
Fix substate event handler conversions ( #861 )
2023-04-24 17:54:16 -07:00
Alan Mond
73cfd2fdba
Modify some methods in state.py to prevent being overwritten ( #856 )
2023-04-24 10:45:35 -07:00
Masen Furer
b4755b8123
Only update ComputedVar when dependent vars change ( #840 )
2023-04-23 18:48:44 -06:00
Elijah Ahianyo
a52145e52a
Python 3.10 tag issubclass bug: ( #832 )
2023-04-17 10:08:43 -07:00
Masen Furer
c3148d348c
component.get_hooks: inject hook code into component func ( #810 )
2023-04-15 22:10:17 -07:00
Nikhil Rao
e4bf94464b
Fix event handler override ( #828 )
2023-04-15 11:33:52 -07:00
Elijah Ahianyo
4b7cc6ddf5
File upload to use single syntax ( #811 )
2023-04-13 09:27:02 -07:00
Elijah Ahianyo
e8387c8e26
Fix Event chaining in the on_load event handler return not working ( #773 )
...
* Fix Event chaining in the on_load event handler return not working
* added async tests
* addressed comments
2023-04-06 22:26:43 -07:00
Kasun Herath
e9928d9838
Add Database configuration object ( #763 )
...
* Add DB config object (#759 )
* Add DBConfig to base (#759 )
2023-04-03 21:39:44 -07:00
Nikhil Rao
8eea6ac822
Add component memoization ( #770 )
2023-04-03 17:38:56 -07:00
Elijah Ahianyo
50cdfac24c
bugfix/723: pc.data_table not working well with pandas as computed vars ( #745 )
...
* bugfix/723: pc.data_table not working well with pandas as computed vars
Turns out this isnt really a bug. You need to specify an annotation for the computed var to work. This Pr adds a check for annotations on computed vars for data tables
* added more validation for column field
2023-04-02 16:49:50 -07:00
jonatan
e811a84ed4
Use strict equality in generated JS ( #750 )
2023-04-02 15:40:52 -07:00
Elijah Ahianyo
50d480da1f
Allow upload event handler to have arbitrary arg name ( #755 )
2023-04-02 15:40:05 -07:00
Elijah Ahianyo
1fdc01fa56
Bugfix: 719-File-upload-props-not-working ( #738 )
2023-03-29 18:26:02 -07:00
Elijah Ahianyo
a2f86f9fbb
Feature/Multi File upload ( #712 )
...
* This PR adds a feature to upload multiple files
* modified function to support python 3.8
* change code to use types instead of arg name
2023-03-22 23:54:08 -07:00
Elijah Ahianyo
41e8afc92a
Handle file uploads with substates ( #703 )
2023-03-17 15:11:24 -07:00
Elijah Ahianyo
592be487c9
Call event handlers from other event handlers ( #691 )
2023-03-16 16:57:28 -07:00
iron3oxide
7067baf176
Refactor utils module ( #666 )
2023-03-16 14:59:27 -07:00