Mose Müller
acd0c80316
updated use of method components
2024-02-27 12:58:28 +01:00
Mose Müller
2337aa9d6d
only methods without arguments can be rendered
2024-02-27 12:58:08 +01:00
Mose Müller
b6f6b3058e
updates render_in_frontend method (takes async functions into account)
2024-02-27 11:32:18 +01:00
Mose Müller
d33e9f9dbf
method serialization contains signature instead of parameter key-value pair
2024-02-27 11:30:00 +01:00
Mose Müller
53676131a6
replaces no_frontend decorator with "frontend" decorator
2024-02-27 11:28:42 +01:00
Mose Müller
7f407ae6e7
extracts method to get default value of function keyword argument
2024-02-27 09:20:22 +01:00
Mose Müller
3c2f425dee
adds "no_frontend" decorator for emitting frontend rendering of method
...
The method serialization now contains a "frontend_render" key with boolean value.
2024-02-27 08:25:11 +01:00
Mose Müller
ccc53c395e
adds "name" key-value pair to DataService serialization
2024-02-27 08:13:09 +01:00
Mose Müller
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
Mose Müller
22fd2d099d
stores enum value within component - now usable within method form
2024-02-21 16:20:58 +01:00
Mose Müller
f8926ea823
prevents Enter key within StringComponent to submit form in MethodComponent
2024-02-21 16:09:28 +01:00
Mose Müller
ceed62c8f2
merges NumberInputField back into NumberComponent
2024-02-21 15:46:27 +01:00
Mose Müller
5313ef6e8c
fixes StringComponent for use as method argument (adds name to control form)
2024-02-21 15:46:14 +01:00
Mose Müller
2d98ba51f4
moves displayName and id to GenericComponent and pass them as props
2024-02-21 15:45:37 +01:00
Mose Müller
2f2544b978
removes unnecessary props from button
2024-02-21 09:36:29 +01:00
Mose Müller
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
Mose Müller
2bb02a5558
separating out NumberInputField from NumberComponent (to be used in MethodComponent)
2024-02-20 17:20:20 +01:00
Mose Müller
1c029e301b
updates types
2024-02-20 16:39:06 +01:00
Mose Müller
f0384b817c
updates method serialization
2024-02-20 14:49:35 +01:00
Mose Müller
8042f9b390
removes card header of root component
2024-02-20 14:49:35 +01:00
Mose Müller
838145a778
allows to use .env file to configure ServiceConfig
2024-02-20 12:54:04 +01:00
Mose Müller
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
Mose Müller
72f6a8ddee
ignores some ruff rule
2024-02-20 12:51:52 +01:00
Mose Müller
dfb6f966aa
adds test for dynamic list entries with properties
2024-02-20 12:29:44 +01:00
Mose Müller
dc42bfaa9b
removes changed_attribute path after on_change method
2024-02-20 12:29:30 +01:00
Mose Müller
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
Mose Müller
bd7a46ddc1
changes are only registered if the containing object is not being changed as a whole
2024-02-20 12:26:43 +01:00
Mose Müller
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
Mose Müller
9631a7d467
adds device connection image
2024-02-15 09:23:14 +01:00
Mose Müller
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
Mose Müller
10dc1436d0
fixes pyproject.toml ruff configuration
2024-02-15 09:08:16 +01:00
Mose Müller
551b8f0158
udpates ruff configuration
2024-02-15 09:01:53 +01:00
Mose Müller
25139b3d4d
adds device connection test
2024-02-15 08:56:13 +01:00
Mose Müller
6b1227fcbb
fixes mypy error
2024-02-15 08:43:08 +01:00
Mose Müller
fd3338f99f
updates DeviceConnection Readme section
2024-02-15 08:33:39 +01:00
Mose Müller
c23d0372a5
updates DeviceConnection Readme section
2024-02-14 16:03:09 +01:00
Mose Müller
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
Mose Müller
9b31362f5b
moving device connection component out of module
2024-02-14 14:39:49 +01:00
Mose Müller
63edcffe7e
adds DeviceConnection section to Readme
2024-02-01 13:33:22 +01:00
Mose Müller
8c5c6d0f6d
npm run build
2024-02-01 13:33:22 +01:00
Mose Müller
71b84525dd
updates DeviceConnection docstring
2024-02-01 13:33:22 +01:00
Mose Müller
e78dc2defb
moves device_connection.py to device_connection module
2024-02-01 13:33:22 +01:00
Mose Müller
529d61c77d
fixes DeviceConnection overlay message when directly exposed
2024-02-01 13:33:22 +01:00
Mose Müller
c7c88178d4
npm run build
2024-02-01 13:33:22 +01:00
Mose Müller
7f082b6f95
fixes border radius of DeviceComponent when directly exposed
2024-02-01 13:33:22 +01:00
Mose Müller
30138bcb45
renaming file containing DeviceConnection, updating component
2024-02-01 13:33:22 +01:00
Mose Müller
1318bbc8a8
update Readme (autostart code)
2024-02-01 13:33:22 +01:00
Mose Müller
ae9761bd11
adds docstring to DeviceConnection
2024-02-01 13:33:22 +01:00
Mose Müller
04d19a853f
renaming available to connected
2024-02-01 13:33:22 +01:00
Mose Müller
fc28b83bc5
adds handle_connection autostart task to DeviceConnection
2024-02-01 13:33:22 +01:00