Commit Graph

726 Commits

Author SHA1 Message Date
883ec6d6ae updates MethodComponent
Keyword arguments have a default value now which is displayed in the frontend. The following types can be rendered now:
- numbers (ints, floats, quantities)
- enums (including coloured enums)

I still have to fix the `convert_argument_to_hinted_types` method to make Quantity and Enums work.
2024-02-21 16:30:47 +01:00
22fd2d099d stores enum value within component - now usable within method form 2024-02-21 16:20:58 +01:00
f8926ea823 prevents Enter key within StringComponent to submit form in MethodComponent 2024-02-21 16:09:28 +01:00
ceed62c8f2 merges NumberInputField back into NumberComponent 2024-02-21 15:46:27 +01:00
5313ef6e8c fixes StringComponent for use as method argument (adds name to control form) 2024-02-21 15:46:14 +01:00
2d98ba51f4 moves displayName and id to GenericComponent and pass them as props 2024-02-21 15:45:37 +01:00
2f2544b978 removes unnecessary props from button 2024-02-21 09:36:29 +01:00
fffe679bf0 defines changeCallback function in GenericComponent and passes it to components (instead of setAttribute)
The components do not use the setAttribute method themselves anymore. This way, you can provide
the changeCallback function if you want and thus reuse the components.
2024-02-21 08:32:59 +01:00
2bb02a5558 separating out NumberInputField from NumberComponent (to be used in MethodComponent) 2024-02-20 17:20:20 +01:00
1c029e301b updates types 2024-02-20 16:39:06 +01:00
f0384b817c updates method serialization 2024-02-20 14:49:35 +01:00
8042f9b390 removes card header of root component 2024-02-20 14:49:35 +01:00
838145a778 allows to use .env file to configure ServiceConfig 2024-02-20 12:54:04 +01:00
7d753b2fc6 Merge pull request #102 from tiqi-group/fix/dynamic_list_entry_with_property
Fix: dynamic list entry with property
2024-02-20 12:53:08 +01:00
72f6a8ddee ignores some ruff rule 2024-02-20 12:51:52 +01:00
dfb6f966aa adds test for dynamic list entries with properties 2024-02-20 12:29:44 +01:00
dc42bfaa9b removes changed_attribute path after on_change method 2024-02-20 12:29:30 +01:00
c0ba23b0b2 appending to a list now also triggers _notify_change_start
This helps in understanding if the list entries being added are "changing" themselves. Properties within
the added objects will trigger property changes when they are serialized, so we have to tell the observer
that he should not listen to them.
2024-02-20 12:28:34 +01:00
bd7a46ddc1 changes are only registered if the containing object is not being changed as a whole 2024-02-20 12:26:43 +01:00
5bea0892c7 Merge pull request #94 from tiqi-group/92-add-connection-component
feat: adds device connection component
2024-02-15 09:24:17 +01:00
9631a7d467 adds device connection image 2024-02-15 09:23:14 +01:00
1e8c7bd141 Merge pull request #101 from tiqi-group/fix/ruff_config_for_2.0
fixes pyproject.toml ruff configuration
2024-02-15 09:11:15 +01:00
10dc1436d0 fixes pyproject.toml ruff configuration 2024-02-15 09:08:16 +01:00
551b8f0158 udpates ruff configuration 2024-02-15 09:01:53 +01:00
25139b3d4d adds device connection test 2024-02-15 08:56:13 +01:00
6b1227fcbb fixes mypy error 2024-02-15 08:43:08 +01:00
fd3338f99f updates DeviceConnection Readme section 2024-02-15 08:33:39 +01:00
c23d0372a5 updates DeviceConnection Readme section 2024-02-14 16:03:09 +01:00
b646acc994 updates device connection component
DeviceConnection is not an ABC anymore. I have updated the docstring to highlight that the
user should mostly just override the "connect" method, but the "connected" property can also
be overridden if necessary. The user is not required though to override any of those methods
and thus can make use of the "connected" frontend property only.
2024-02-14 15:50:47 +01:00
9b31362f5b moving device connection component out of module 2024-02-14 14:39:49 +01:00
63edcffe7e adds DeviceConnection section to Readme 2024-02-01 13:33:22 +01:00
8c5c6d0f6d npm run build 2024-02-01 13:33:22 +01:00
71b84525dd updates DeviceConnection docstring 2024-02-01 13:33:22 +01:00
e78dc2defb moves device_connection.py to device_connection module 2024-02-01 13:33:22 +01:00
529d61c77d fixes DeviceConnection overlay message when directly exposed 2024-02-01 13:33:22 +01:00
c7c88178d4 npm run build 2024-02-01 13:33:22 +01:00
7f082b6f95 fixes border radius of DeviceComponent when directly exposed 2024-02-01 13:33:22 +01:00
30138bcb45 renaming file containing DeviceConnection, updating component 2024-02-01 13:33:22 +01:00
1318bbc8a8 update Readme (autostart code) 2024-02-01 13:33:22 +01:00
ae9761bd11 adds docstring to DeviceConnection 2024-02-01 13:33:22 +01:00
04d19a853f renaming available to connected 2024-02-01 13:33:22 +01:00
fc28b83bc5 adds handle_connection autostart task to DeviceConnection 2024-02-01 13:33:22 +01:00
f1384b25a1 updates DeviceConnection component 2024-02-01 13:33:22 +01:00
7ef82e61e5 frontend styling 2024-02-01 13:33:22 +01:00
6d9191fe18 npm run build 2024-02-01 13:33:22 +01:00
4f71633c5e adds backend DeviceConnection component 2024-02-01 13:33:22 +01:00
2c95a2496c adds frontend DeviceConnection component 2024-02-01 13:33:22 +01:00
aca5aab1ef removes unused attribute v0.6.0 2024-02-01 13:25:53 +01:00
4f1cc4787d Merge pull request #99 from tiqi-group/cleanup/removes_deprecated_code
Cleanup/removes deprecated code
2024-02-01 11:11:43 +01:00
8efd67d9f3 fixes tests 2024-02-01 10:18:58 +01:00