Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define widget properties as individual fields #47

Open
poirierlouis opened this issue Oct 28, 2024 · 0 comments · May be fixed by #53
Open

Define widget properties as individual fields #47

poirierlouis opened this issue Oct 28, 2024 · 0 comments · May be fixed by #53
Assignees
Labels
enhancement New feature or request refactor

Comments

@poirierlouis
Copy link
Owner

Currently, properties are defined as class members of a widget.
Each property is also defined explicitly for serialization/deserialization purpose.
Each widget requires a custom Angular component to layout and edit properties of the widget.

This proposal is to refactor properties of widgets as individual "component" (somehow like Entity Component System), named "field" thereafter. It will define a name, label, type of value, range of values, etc.

Each widget could be defined by attaching a set of fields.
A field could be bound to a widget member through getter/setter.
Fields could be reused for serialization/deserialization purpose.
A field could be mapped to an individual form-field component.
Layout of said form-field component should still be manually defined per widget, in fig-[widget]-properties component.

@poirierlouis poirierlouis added the enhancement New feature or request label Oct 28, 2024
@poirierlouis poirierlouis self-assigned this Nov 1, 2024
poirierlouis added a commit that referenced this issue Nov 4, 2024
Define properties of widgets as fields.
WIP.

Closes #47
@poirierlouis poirierlouis linked a pull request Nov 4, 2024 that will close this issue
42 tasks
poirierlouis added a commit that referenced this issue Nov 6, 2024
Define properties of widgets as fields.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 8, 2024
Define properties of widgets as fields.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 8, 2024
Define properties of widgets as fields.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 9, 2024
Define properties of widgets as fields.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 9, 2024
Define properties of widgets as fields.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 9, 2024
Define properties of widgets as fields.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 9, 2024
Define properties of widgets as fields.
Define <fig-*-field> components to bind widget's field by type.
Update <fig-*-properties> to bind widget's fields using field components.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 10, 2024
Define properties of widgets as fields.
Define <fig-*-field> components to bind widget's field by type.
Update <fig-*-properties> to bind widget's fields using field components.
WIP.

Closes #47
poirierlouis added a commit that referenced this issue Nov 15, 2024
Define properties of widgets as fields.
Define <fig-*-field> components to bind widget's field by type.
Update <fig-*-properties> to bind widget's fields using field components.
WIP.

Closes #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant