Nikhil Rao
9485127c1c
Handle multi-select ( #1082 )
2023-05-26 10:50:16 -07:00
Elijah Ahianyo
368b79f160
pc table validation ( #1075 )
2023-05-24 13:14:27 -07:00
Elijah Ahianyo
fb69ddfd80
moved compiled constants into an env.json file ( #1051 )
2023-05-19 10:28:54 -07:00
Elijah Ahianyo
bb1cf4322e
Foreach support for other data structures(dict, set, tuple) ( #1029 )
2023-05-17 16:11:41 -07:00
Elijah Ahianyo
0c33ad19f6
bugfix for upload event ( #1042 )
2023-05-17 10:08:11 -07:00
Alek Petuskey
4a580b54ff
Visual CLI improvements ( #1032 )
2023-05-16 20:42:53 -07:00
Nikhil Rao
6209916795
Update max bun version ( #1038 )
2023-05-16 17:07:18 -07:00
Nikhil Rao
e6a679d3a3
Update pc.form on_submit args ( #1033 )
2023-05-16 12:09:15 -07:00
Nikhil Rao
98f1b30735
Fix event default call ( #1031 )
2023-05-15 21:10:42 -07:00
Nikhil Rao
948ec90fc4
Add pc.form component ( #929 )
2023-05-14 22:34:10 -07:00
Masen Furer
d0e383d23c
Fix db_url set to empty string in default pcconfig.py ( #1022 )
2023-05-14 19:03:36 -07:00
Elijah Ahianyo
139e4cf05b
Update upload event to use queue ( #1005 )
2023-05-12 16:44:16 -07:00
Elijah Ahianyo
7e8a4930ba
Bun version validation ( #1002 )
2023-05-12 16:43:11 -07:00
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
Nikhil Rao
2ee8c73d5a
Add error message for invalid var ops ( #664 )
2023-03-11 21:11:59 -08:00
Xiaojing Chen
3bf7d1f722
Throw better error for invalid child component ( #655 )
2023-03-10 13:02:17 -08:00
Xiaojing Chen
ae5b6426aa
Clean up json dumps ( #642 )
2023-03-07 14:37:34 -08:00
Elijah Ahianyo
e106b7aedf
Bugfix for properly rendering datatables ( #638 )
2023-03-07 13:50:04 -08:00
Nikhil Rao
3491955995
Fix format dict props ( #641 )
2023-03-06 17:38:21 -08:00
Nikhil Rao
d74efb9bff
Fix cond component render ( #639 )
2023-03-06 16:45:10 -08:00
Nikhil Rao
8ba22ed92d
Factor out responsive helpers ( #624 )
2023-03-03 13:29:17 -08:00
Nikhil Rao
46cdda4125
Fix issubclass check ( #618 )
2023-02-28 20:10:00 -08:00
Xiaojing Chen
55ac6e4973
Add unit test for style ( #615 )
2023-02-28 11:29:06 -08:00
Xiaojing Chen
b4c3cb5eb3
[Tests] add unit test for event ( #614 )
2023-02-27 19:13:49 -08:00
Nikhil Rao
6c8ce67b8b
Call special events from event triggers ( #601 )
2023-02-24 15:17:03 -08:00
Xiaojing Chen
37edaa2f6b
[Fix: issue 582] Icon tag should work despite case sensitivity. ( #588 )
2023-02-21 17:32:34 -08:00
Nikhil Rao
f88d4ce4b4
Add tests for pc.icon
( #562 )
2023-02-17 12:01:30 -08:00
Alek Petuskey
b36680fefd
Anonymous Telemetry Opt Out Available ( #550 )
...
* Added anonymous telemetry with opt-out.
2023-02-16 00:11:53 -08:00
Nikhil Rao
47eebe0ea5
Clean up cond vars ( #536 )
2023-02-13 15:27:03 -08:00
Nikhil Rao
0bd8f6acfc
Add keypress event handlers ( #523 )
2023-02-12 13:12:57 -08:00
Elijah Ahianyo
8de2163d84
Create PCDict ( #503 )
2023-02-12 12:52:45 -08:00
Elijah Ahianyo
69a9c95d73
Make PCList pickleable ( #500 )
2023-02-10 12:25:58 -08:00
advo-kat
8d9c75824c
Socket fixes and config options( #485 )
2023-02-09 23:59:20 -08:00
叶子
1529a23c1b
Switch linter to ruff ( #450 )
2023-02-09 11:33:18 -08:00
Nikhil Rao
eb723b6ebe
Add compile error for invalid event handlers ( #482 )
2023-02-08 16:27:13 -08:00
Robert Neumann
fdf0e9ea6b
Add --no-zip pc CLI Parameter ( #479 )
2023-02-08 14:39:38 -08:00
PeterYusuke
07289c8735
Solve windows env test fails ( #437 )
2023-02-06 13:41:59 -08:00
Nikhil Rao
8958f14778
Allow pc.cond without else case ( #453 )
2023-02-05 17:50:34 -08:00
lawrence-axb
d1ff7d481f
Allow plotly figures as state vars ( #440 )
2023-02-04 16:13:18 -08:00
Elijah Ahianyo
00479362df
Allow conditional props ( #359 )
2023-02-02 00:22:44 -08:00
Nikhil Rao
e578956b0c
Comment out pclist ( #407 )
2023-01-30 19:25:02 -08:00
Nikhil Rao
6b97de71a0
Fix format route and code cleanup ( #399 )
2023-01-30 14:35:06 -08:00
Thomas Brandého
4971f6d814
Support backend-only state vars ( #390 )
2023-01-29 18:55:34 -08:00
Nikhil Rao
2b7e2ecf30
Fix custom routes on Windows ( #389 )
2023-01-29 16:39:19 -08:00
Thomas Brandého
b06f612a7d
Dynamically add vars to a State ( #381 )
2023-01-29 11:20:06 -08:00
Tommy Dew
d5a76f103a
Add pc.list
for mutation detection ( #339 )
2023-01-28 10:50:52 -08:00
Alek Petuskey
cb61579f53
Added anonymous telemetry helpers. ( #340 )
2023-01-25 14:57:29 -08:00
Nikhil Rao
6f3d763f82
Rename path to route everywhere ( #329 )
2023-01-23 21:53:42 -08:00
Tommy Dew
f7e35771e9
Relax type requirement on pc.cond ( #323 )
2023-01-23 20:20:19 -08:00
Nikhil Rao
d376d2972b
Support dataframes as state vars ( #324 )
2023-01-23 18:47:21 -08:00
Thomas Brandého
554e6d919b
Add event token to router_data ( #316 )
2023-01-22 17:40:19 -08:00
Atharva Shah
2ccbfff223
General code cleanup ( #312 )
2023-01-22 10:58:07 -08:00
Nikhil Rao
8be411b81b
Implement var slicing ( #289 )
2023-01-18 17:53:04 -08:00
Elijah Ahianyo
c8936355f2
Remove assets dir symlink
2023-01-13 10:35:20 -08:00
Nikhil Rao
7f0aa4f5c4
Fix custom component imports ( #246 )
2023-01-11 11:34:46 -08:00
Alek Petuskey
876cf13344
Updated Victory Group/Stack ( #231 )
2023-01-08 23:36:51 -08:00
Thomas Brandého
1124067c12
Add router data to state ( #228 )
2023-01-08 13:48:09 -08:00
Alek Petuskey
2d5cb4a561
Added victory graphs. ( #214 )
2023-01-05 17:38:54 -08:00
Nikhil Rao
2543e48a30
Access parent state vars from substate ( #207 )
2023-01-04 15:41:05 -08:00
Nikhil Rao
3f27ce3442
Fix component decorator bugs ( #203 )
2023-01-04 15:20:33 -08:00
Nikhil Rao
d93e2cec00
Add decorator for custom components ( #193 )
2023-01-02 16:08:00 -08:00
Nikhil Rao
43bd4784dc
Fix substate event handlers ( #171 )
2022-12-22 16:10:15 -08:00
Nikhil Rao
974d2b4cbb
Improve event processing performance ( #163 )
2022-12-21 20:04:13 -08:00
Nikhil Rao
9ecadcc646
Improve prop error messages ( #84 )
...
* Add better error messages for component props
2022-12-13 11:31:57 -08:00
Nikhil Rao
dd26dd044b
Add style for code blocks. ( #32 )
...
* Rename github actions file
* Update custom code
* Add theme for code blocks
2022-12-06 01:22:57 -08:00
Nikhil Rao
5f9bbac11e
Fix state indexing ( #16 )
2022-11-28 20:12:08 -08:00
Nikhil Rao
c4b1f2c669
Create Github Action for pytest ( #12 )
2022-11-21 18:50:59 -08:00
Nikhil Rao
29e37350e5
Add basic unit tests ( #7 )
...
* Unit tests for components, state, and utils
2022-11-20 14:34:25 -08:00
Nikhil Rao
2008417bd7
Clean up tags.
2022-11-18 17:48:51 -08:00
Nikhil Rao
e8e8eaa010
Initial commit.
2022-11-18 12:44:06 -08:00