27 Commits

Author SHA1 Message Date
Mose Müller
65f63e08ae fixes changing Quantity from frontend 2024-03-28 08:55:58 +01:00
Mose Müller
6397307690 restructuring EnumComponent (now for both Enum and ColouredEnum) 2024-03-27 15:20:50 +01:00
Mose Müller
ff3a509132 passing fullAccessPath instead of parentPath and name 2024-03-27 15:20:23 +01:00
Mose Müller
1a01222cb3 updates changeCallback and SerializedObject in GenericComponent.tsx 2024-03-27 12:08:10 +01:00
Mose Müller
4a948f9155 adds "display" web settings support to frontend
Components with a "display" equals false in the web settings will not be displayed
in the frontend.
2024-03-11 15:37:56 +01:00
Mose Müller
6ed6fe5be1 cleanup: changing some frontend components 2024-02-28 10:59:28 +01:00
Mose Müller
acd0c80316 updated use of method components 2024-02-27 12:58:28 +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
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
1c029e301b updates types 2024-02-20 16:39:06 +01:00
Mose Müller
2c95a2496c adds frontend DeviceConnection component 2024-02-01 13:33:22 +01:00
Mose Müller
0ecaeac3fb replaces js interfaces with types 2024-01-16 12:57:35 +01:00
Mose Müller
0e9832e2f1 updates DocStringComponent placement 2024-01-16 12:55:18 +01:00
Mose Müller
9d90fd2b81 displayName of components is now taken from WebSettingsContext 2023-12-21 10:30:21 +01:00
Mose Müller
729f375901 adds support for quantities in slider component (passing object instead of number) 2023-12-13 10:35:28 +01:00
Mose Müller
613b1dd6a4 updates addNotification type hints in components 2023-11-27 15:41:30 +01:00
Mose Müller
b149c1b411 fix: component ids adhere to html guidelines now 2023-10-30 14:05:39 +01:00
Mose Müller
7dcec88c9a frontend: updating addNotification type hints 2023-10-30 13:26:25 +01:00
Mose Müller
34e46e05ee feat: adding ColouredEnum component 2023-10-11 14:03:07 +02:00
Mose Müller
f7579c3a89 feat: components implement their notifications now
- removing nestedObjectUtils and useNotification hook
- passing addNotification method to all components
- components can use the addNotification method to create their
  notifications
2023-08-10 15:07:49 +02:00
Mose Müller
8205e4d463 chore: changing parent_path to parentPath 2023-08-10 14:24:30 +02:00
Mose Müller
a333de9957 feat: updating ImageComponent
- adding format
- adding method to read image from file
- adding method to load image from base64 byte string
2023-08-10 10:43:38 +02:00
Mose Müller
8d55f3b853 feat: adding first version of Image component 2023-08-09 17:48:27 +02:00
Mose Müller
eed309590e feat: adding support for units
With `pint` as the unit package, the user can now define Quantities as
attributes of their DataService class. This will be rendered as a float
in the frontend application with the unit as an additional field
appended to the form.
2023-08-07 14:05:48 +02:00
Mose Müller
5cb30688cf feat: adding instant_update switch 2023-08-02 12:06:22 +02:00
Mose Müller
717939e902 fixing GenericComponent exports 2023-08-02 12:06:21 +02:00
Mose Müller
837f02b0d3 frontend: adding GenericComponent 2023-08-02 12:06:20 +02:00