Skip to content

Commit

Permalink
refactor: mark table positioning property as 'for removal' (#260)
Browse files Browse the repository at this point in the history
Removed in docs and marked as for removal in the code.
  • Loading branch information
nsenave committed Aug 12, 2024
1 parent d351d19 commit 881b09c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docs/fr/components/Table.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Le composant `Table`

Il s'agit du composants le plus complexe de Lunatic.
Comme tous les composants, il a les attributs communs des composants. Il dispose en plus d'un attribut `positioning` pouvant être égale à "HORIZONTAL" ou "VERTICAL".

Il y a deux types de composants `Table` Lunatic :

Expand Down Expand Up @@ -36,7 +35,6 @@ Dans le dernier cas :
"id" : "j4nwc63q",
"componentType" : "Table",
"mandatory" : false,
"positioning" : "HORIZONTAL",
"label" : "\"label de la question\"",
"declarations": [...],
"conditionFilter" : "if ((not(cast(READY,integer) <> 1) )) then \"normal\" else \"hidden\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"goToPage",
"label",
"orientation",
"positioning",
"maxLength",
"min",
"max",
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/fr/insee/lunatic/model/flat/RosterForLoop.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ public class RosterForLoop
protected LinesRoster lines;
protected List<HeaderType> header;
protected List<BodyCell> components;

/**
* Metadata on how the table should be displayed.
* Value should be one of "HORIZONTAL", "VERTICAL" or "DEFAULT".
* @deprecated Unused in Lunatic, to be removed.
*/
@Deprecated(forRemoval = true, since = "3.14.0")
protected String positioning;

public RosterForLoop() {
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/fr/insee/lunatic/model/flat/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ public class Table
protected List<HeaderType> header;
@JsonProperty("body")
protected List<BodyLine> bodyLines;

/**
* Metadata on how the table should be displayed.
* Value should be one of "HORIZONTAL", "VERTICAL" or "DEFAULT".
* @deprecated Unused in Lunatic, to be removed.
*/
@Deprecated(forRemoval = true, since = "3.14.0")
protected String positioning;

public Table() {
Expand Down

0 comments on commit 881b09c

Please sign in to comment.