@inseefr/lunatic 3.0.0-rc.12 → 3.0.0-rc.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/lib/main.css +0 -2
  2. package/lib/main.css.map +1 -1
  3. package/lib/package.json +3 -3
  4. package/lib/src/components/Duration/durationUtils.js +1 -1
  5. package/lib/src/components/Radio/Radio.js +2 -2
  6. package/lib/src/components/Radio/Radio.js.map +1 -1
  7. package/lib/src/components/Suggester/CustomSuggester.d.ts +9 -8
  8. package/lib/src/components/Suggester/CustomSuggester.js +4 -31
  9. package/lib/src/components/Suggester/CustomSuggester.js.map +1 -1
  10. package/lib/src/components/Suggester/Suggester.d.ts +1 -1
  11. package/lib/src/components/Suggester/Suggester.js +57 -35
  12. package/lib/src/components/Suggester/Suggester.js.map +1 -1
  13. package/lib/src/components/Suggester/SuggesterNotification.d.ts +5 -6
  14. package/lib/src/components/Suggester/SuggesterNotification.js +5 -10
  15. package/lib/src/components/Suggester/SuggesterNotification.js.map +1 -1
  16. package/lib/src/components/Suggester/useSuggestions.d.ts +20 -0
  17. package/lib/src/components/Suggester/useSuggestions.js +86 -0
  18. package/lib/src/components/Suggester/useSuggestions.js.map +1 -0
  19. package/lib/src/components/shared/Combobox/Combobox.d.ts +2 -0
  20. package/lib/src/components/shared/Combobox/Combobox.js +5 -6
  21. package/lib/src/components/shared/Combobox/Combobox.js.map +1 -1
  22. package/lib/src/components/shared/Combobox/ComboboxType.d.ts +1 -0
  23. package/lib/src/components/shared/Combobox/Panel/ComboboxOption.js +4 -0
  24. package/lib/src/components/shared/Combobox/Panel/ComboboxOption.js.map +1 -1
  25. package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +1 -1
  26. package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.js +15 -1
  27. package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.js.map +1 -1
  28. package/lib/src/components/shared/Combobox/Selection/ComboboxLabelSelection.js +6 -0
  29. package/lib/src/components/shared/Combobox/Selection/ComboboxLabelSelection.js.map +1 -1
  30. package/lib/src/components/type.d.ts +8 -1
  31. package/lib/src/hooks/use-track-changes.js +1 -1
  32. package/lib/src/hooks/use-track-changes.js.map +1 -1
  33. package/lib/src/hooks/useDebounce.d.ts +4 -0
  34. package/lib/src/hooks/useDebounce.js +23 -0
  35. package/lib/src/hooks/useDebounce.js.map +1 -0
  36. package/lib/src/hooks/useDocumentEvent.js +1 -1
  37. package/lib/src/hooks/useDocumentEvent.js.map +1 -1
  38. package/lib/src/hooks/{use-ref-sync.js → useRefSync.js} +1 -1
  39. package/lib/src/hooks/useRefSync.js.map +1 -0
  40. package/lib/src/hooks/useSuggesterInfo.d.ts +1 -1
  41. package/lib/src/i18n/dictionary.d.ts +16 -0
  42. package/lib/src/i18n/dictionary.js +16 -0
  43. package/lib/src/i18n/dictionary.js.map +1 -1
  44. package/lib/src/i18n/index.d.ts +1 -1
  45. package/lib/src/use-lunatic/actions.d.ts +6 -6
  46. package/lib/src/use-lunatic/commons/check-pager.js +1 -1
  47. package/lib/src/use-lunatic/commons/check-pager.js.map +1 -1
  48. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.js +3 -0
  49. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -1
  50. package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +105 -83
  51. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.spec.js +2 -2
  52. package/lib/src/use-lunatic/commons/fill-components/fill-component-value.spec.js.map +1 -1
  53. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +124 -80
  54. package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +34 -32
  55. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +131 -65
  56. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.js +16 -0
  57. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.js.map +1 -1
  58. package/lib/src/use-lunatic/commons/is-First-last-page.js +1 -1
  59. package/lib/src/use-lunatic/commons/is-First-last-page.js.map +1 -1
  60. package/lib/src/use-lunatic/commons/page-navigation.js +11 -11
  61. package/lib/src/use-lunatic/commons/page-navigation.js.map +1 -1
  62. package/lib/src/use-lunatic/commons/page-navigation.spec.js +21 -21
  63. package/lib/src/use-lunatic/commons/page-navigation.spec.js.map +1 -1
  64. package/lib/src/use-lunatic/commons/page-tag.d.ts +9 -5
  65. package/lib/src/use-lunatic/commons/page-tag.js +19 -12
  66. package/lib/src/use-lunatic/commons/page-tag.js.map +1 -1
  67. package/lib/src/use-lunatic/commons/page-tag.spec.d.ts +1 -0
  68. package/lib/src/use-lunatic/commons/page-tag.spec.js +19 -0
  69. package/lib/src/use-lunatic/commons/page-tag.spec.js.map +1 -0
  70. package/lib/src/use-lunatic/commons/page.d.ts +1 -1
  71. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
  72. package/lib/src/use-lunatic/initial-state.js +2 -2
  73. package/lib/src/use-lunatic/initial-state.js.map +1 -1
  74. package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.js +1 -1
  75. package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.js.map +1 -1
  76. package/lib/src/use-lunatic/reducer/overview/overview-on-change.js +2 -2
  77. package/lib/src/use-lunatic/reducer/overview/overview-on-change.js.map +1 -1
  78. package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +4 -4
  79. package/lib/src/use-lunatic/reducer/overview/overview-on-init.js +1 -1
  80. package/lib/src/use-lunatic/reducer/overview/overview-on-init.js.map +1 -1
  81. package/lib/src/use-lunatic/reducer/reduce-go-to-page.js +7 -10
  82. package/lib/src/use-lunatic/reducer/reduce-go-to-page.js.map +1 -1
  83. package/lib/src/use-lunatic/reducer/reduce-on-init.js +2 -2
  84. package/lib/src/use-lunatic/reducer/reduce-on-init.js.map +1 -1
  85. package/lib/src/use-lunatic/replace-component-sequence.d.ts +4 -4
  86. package/lib/src/use-lunatic/type-source.d.ts +13 -3
  87. package/lib/src/use-lunatic/type.d.ts +5 -4
  88. package/lib/src/use-lunatic/use-lunatic.d.ts +29 -15
  89. package/lib/src/use-lunatic/use-lunatic.test.js +5 -5
  90. package/lib/src/use-lunatic/use-lunatic.test.js.map +1 -1
  91. package/lib/src/utils/function.d.ts +1 -0
  92. package/lib/src/utils/function.js +18 -0
  93. package/lib/src/utils/function.js.map +1 -1
  94. package/package.json +3 -3
  95. package/lib/src/components/Suggester/SuggesterStatus.d.ts +0 -23
  96. package/lib/src/components/Suggester/SuggesterStatus.js +0 -24
  97. package/lib/src/components/Suggester/SuggesterStatus.js.map +0 -1
  98. package/lib/src/hooks/use-ref-sync.js.map +0 -1
  99. /package/lib/src/hooks/{use-ref-sync.d.ts → useRefSync.d.ts} +0 -0
@@ -3,41 +3,43 @@ import type { LunaticComponentDefinition, LunaticState } from '../../type';
3
3
  * Fill the number of iterations for loop components without "iterations" expression
4
4
  */
5
5
  export declare function fillIterations(component: LunaticComponentDefinition, state: LunaticState): (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSequenceType & {
6
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
6
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
7
7
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSubSequenceType & {
8
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
8
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
9
9
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentTableType & {
10
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
10
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
11
11
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentNumberType & {
12
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
12
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
13
13
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDatePickerType & {
14
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
14
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
15
+ }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDurationType & {
16
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
15
17
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxGroupType & {
16
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
18
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
17
19
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxBooleanType & {
18
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
20
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
19
21
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRadioType & {
20
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
22
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
21
23
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentFilterDescriptionType & {
22
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
24
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
23
25
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDropdownType & {
24
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
26
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
25
27
  }) | (Omit<import("../../type-source").ComponentTypeBase, "label"> & import("../../type-source").ComponentPairWiseLinksType & {
26
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
28
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
27
29
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRoundaboutType & {
28
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
30
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
29
31
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSuggesterType & {
30
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
32
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
31
33
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentInputOrTextareaType & {
32
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
34
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
33
35
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxOneType & {
34
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
36
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
35
37
  }) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentQuestionType & {
36
- componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
38
+ componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
37
39
  }) | {
38
40
  iterations: number;
39
- label: import("../../type-source").LabelType;
40
- description?: import("../../type-source").LabelType | undefined;
41
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
42
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
41
43
  declarations?: import("../../type-source").DeclarationType[] | undefined;
42
44
  conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
43
45
  controls?: import("../../type-source").ControlType[] | undefined;
@@ -54,8 +56,8 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
54
56
  maxPage: string;
55
57
  } | {
56
58
  iterations: number;
57
- label: import("../../type-source").LabelType;
58
- description?: import("../../type-source").LabelType | undefined;
59
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
60
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
59
61
  declarations?: import("../../type-source").DeclarationType[] | undefined;
60
62
  conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
61
63
  controls?: import("../../type-source").ControlType[] | undefined;
@@ -67,11 +69,11 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
67
69
  componentType: "Roundabout";
68
70
  components: import("../../type-source").ComponentType[];
69
71
  locked: boolean;
70
- expressions: Record<string, import("../../type-source").LabelType>;
72
+ expressions: Record<string, import("../../type-source").LabelType<"VTL" | "VTL|MD">>;
71
73
  } | {
72
74
  iterations: number;
73
- label: import("../../type-source").LabelType;
74
- description?: import("../../type-source").LabelType | undefined;
75
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
76
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
75
77
  declarations?: import("../../type-source").DeclarationType[] | undefined;
76
78
  conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
77
79
  controls?: import("../../type-source").ControlType[] | undefined;
@@ -83,16 +85,16 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
83
85
  componentType: "RosterForLoop";
84
86
  components: import("../../type-source").ComponentType[];
85
87
  lines: {
86
- min: import("../../type-source").LabelType;
87
- max: import("../../type-source").LabelType;
88
+ min: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
89
+ max: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
88
90
  };
89
91
  header?: {
90
92
  value: string;
91
- label: string | import("../../type-source").LabelType;
93
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
92
94
  options: {
93
95
  value: string;
94
- label: import("../../type-source").LabelType;
95
- description?: import("../../type-source").LabelType | undefined;
96
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
97
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
96
98
  }[];
97
99
  colspan?: number | undefined;
98
100
  rowspan?: number | undefined;
@@ -100,8 +102,8 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
100
102
  positioning: "HORIZONTAL";
101
103
  } | {
102
104
  iterations: number;
103
- label: import("../../type-source").LabelType;
104
- description?: import("../../type-source").LabelType | undefined;
105
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
106
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
105
107
  declarations?: import("../../type-source").DeclarationType[] | undefined;
106
108
  conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
107
109
  controls?: import("../../type-source").ControlType[] | undefined;
@@ -116,7 +118,7 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
116
118
  depth: number;
117
119
  paginatedLoop: false;
118
120
  lines: {
119
- min: import("../../type-source").LabelType;
120
- max: import("../../type-source").LabelType;
121
+ min: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
122
+ max: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
121
123
  };
122
124
  };
@@ -32,7 +32,7 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
32
32
  iterations: import("react").ReactNode;
33
33
  locked: boolean;
34
34
  } | {
35
- components: import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
35
+ components: import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
36
36
  label: import("react").ReactNode;
37
37
  description: import("react").ReactNode;
38
38
  declarations?: import("../../type-source").DeclarationType[] | undefined;
@@ -56,7 +56,7 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
56
56
  page: string;
57
57
  componentType: "Question";
58
58
  } | {
59
- getComponents: (iteration: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
59
+ getComponents: (iteration: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
60
60
  label: import("react").ReactNode;
61
61
  description?: import("react").ReactNode;
62
62
  declarations?: import("../../type-source").DeclarationType[] | undefined;
@@ -86,11 +86,11 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
86
86
  };
87
87
  header?: {
88
88
  value: string;
89
- label: string | import("../../type-source").LabelType;
89
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
90
90
  options: {
91
91
  value: string;
92
- label: import("../../type-source").LabelType;
93
- description?: import("../../type-source").LabelType | undefined;
92
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
93
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
94
94
  }[];
95
95
  colspan?: number | undefined;
96
96
  rowspan?: number | undefined;
@@ -98,7 +98,7 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
98
98
  positioning: "HORIZONTAL";
99
99
  value?: Record<string, unknown[]> | undefined;
100
100
  } | {
101
- getComponents: (iteration: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
101
+ getComponents: (iteration: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
102
102
  label: import("react").ReactNode;
103
103
  description?: import("react").ReactNode;
104
104
  declarations?: import("../../type-source").DeclarationType[] | undefined;
@@ -129,7 +129,7 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
129
129
  iterations: import("react").ReactNode;
130
130
  value?: Record<string, unknown[]> | undefined;
131
131
  } | {
132
- getComponents: (iteration: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
132
+ getComponents: (iteration: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
133
133
  label: import("react").ReactNode;
134
134
  description?: import("react").ReactNode;
135
135
  declarations?: import("../../type-source").DeclarationType[] | undefined;
@@ -162,7 +162,7 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
162
162
  };
163
163
  value?: Record<string, unknown[]> | undefined;
164
164
  } | {
165
- getComponents: (x: number, y: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
165
+ getComponents: (x: number, y: number) => import("./fill-components").FilledLunaticComponentProps<"Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question">[];
166
166
  description?: import("react").ReactNode;
167
167
  declarations?: import("../../type-source").DeclarationType[] | undefined;
168
168
  conditionFilter?: import("react").ReactNode;
@@ -274,11 +274,11 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
274
274
  };
275
275
  header?: {
276
276
  value: string;
277
- label: string | import("../../type-source").LabelType;
277
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
278
278
  options: {
279
279
  value: string;
280
- label: import("../../type-source").LabelType;
281
- description?: import("../../type-source").LabelType | undefined;
280
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
281
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
282
282
  }[];
283
283
  colspan?: number | undefined;
284
284
  rowspan?: number | undefined;
@@ -375,17 +375,17 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
375
375
  componentType: "Table";
376
376
  header: {
377
377
  value: string;
378
- label: string | import("../../type-source").LabelType;
378
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
379
379
  options: {
380
380
  value: string;
381
- label: import("../../type-source").LabelType;
382
- description?: import("../../type-source").LabelType | undefined;
381
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
382
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
383
383
  }[];
384
384
  colspan?: number | undefined;
385
385
  rowspan?: number | undefined;
386
386
  }[] | undefined;
387
387
  body: ({
388
- label: import("../../type-source").LabelType;
388
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
389
389
  colspan?: number | undefined;
390
390
  rowspan?: number | undefined;
391
391
  } | (import("../../type-source").ComponentType & {
@@ -457,6 +457,35 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
457
457
  max?: string | undefined;
458
458
  } & import("./fill-management").FilledProps & import("./fill-component-value").FilledProps & import("./fill-missing-response").FilledProps & import("./fill-from-state").FilledProps & import("./fill-pagination").FilledProps & {
459
459
  conditionFilter?: boolean | undefined;
460
+ }) | ({
461
+ label: import("react").ReactNode;
462
+ description?: import("react").ReactNode;
463
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
464
+ conditionFilter?: import("react").ReactNode;
465
+ controls?: import("../../type-source").ControlType[] | undefined;
466
+ id: string;
467
+ bindingDependencies?: string[] | undefined;
468
+ hierarchy?: {
469
+ sequence: {
470
+ label: import("react").ReactNode;
471
+ id: string;
472
+ page: string;
473
+ };
474
+ subSequence?: {
475
+ label: import("react").ReactNode;
476
+ id: string;
477
+ page: string;
478
+ } | undefined;
479
+ } | undefined;
480
+ mandatory?: boolean | undefined;
481
+ page: string;
482
+ componentType: "Duration";
483
+ format: "PnYnM" | "PTnHnM";
484
+ response: {
485
+ name: string;
486
+ };
487
+ } & import("./fill-management").FilledProps & import("./fill-component-value").FilledProps & import("./fill-missing-response").FilledProps & import("./fill-from-state").FilledProps & import("./fill-pagination").FilledProps & {
488
+ conditionFilter?: boolean | undefined;
460
489
  }) | ({
461
490
  label: import("react").ReactNode;
462
491
  description?: import("react").ReactNode;
@@ -481,8 +510,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
481
510
  page: string;
482
511
  componentType: "CheckboxGroup";
483
512
  responses: {
484
- label: import("../../type-source").LabelType;
485
- description?: import("../../type-source").LabelType | undefined;
513
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
514
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
486
515
  response: import("../../type-source").ResponseType;
487
516
  id: string;
488
517
  }[];
@@ -544,8 +573,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
544
573
  componentType: "Radio";
545
574
  options: {
546
575
  value: string;
547
- label: import("../../type-source").LabelType;
548
- description?: import("../../type-source").LabelType | undefined;
576
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
577
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
549
578
  }[];
550
579
  response: {
551
580
  name: string;
@@ -606,8 +635,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
606
635
  componentType: "Dropdown";
607
636
  options: {
608
637
  value: string;
609
- label: import("../../type-source").LabelType;
610
- description?: import("../../type-source").LabelType | undefined;
638
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
639
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
611
640
  }[];
612
641
  response: {
613
642
  name: string;
@@ -707,6 +736,11 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
707
736
  response: {
708
737
  name: string;
709
738
  };
739
+ arbitrary?: {
740
+ response: {
741
+ name: string;
742
+ };
743
+ } | undefined;
710
744
  optionResponses: {
711
745
  name: string;
712
746
  attribute: string;
@@ -776,8 +810,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
776
810
  } | undefined;
777
811
  options: {
778
812
  value: string;
779
- label: import("../../type-source").LabelType;
780
- description?: import("../../type-source").LabelType | undefined;
813
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
814
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
781
815
  }[];
782
816
  } & import("./fill-management").FilledProps & import("./fill-component-value").FilledProps & import("./fill-missing-response").FilledProps & import("./fill-from-state").FilledProps & import("./fill-pagination").FilledProps & {
783
817
  conditionFilter?: boolean | undefined;
@@ -836,15 +870,51 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
836
870
  componentType: "Table";
837
871
  header: {
838
872
  value: string;
839
- label: string | import("../../type-source").LabelType;
873
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
840
874
  options: {
841
875
  value: string;
842
- label: import("../../type-source").LabelType;
843
- description?: import("../../type-source").LabelType | undefined;
876
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
877
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
844
878
  }[];
845
879
  colspan?: number | undefined;
846
880
  rowspan?: number | undefined;
847
881
  }[] | undefined;
882
+ } | {
883
+ label: import("react").ReactNode;
884
+ description?: import("react").ReactNode;
885
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
886
+ conditionFilter?: import("react").ReactNode;
887
+ controls?: import("../../type-source").ControlType[] | undefined;
888
+ id: string;
889
+ bindingDependencies?: string[] | undefined;
890
+ hierarchy?: {
891
+ sequence: {
892
+ label: import("react").ReactNode;
893
+ id: string;
894
+ page: string;
895
+ };
896
+ subSequence?: {
897
+ label: import("react").ReactNode;
898
+ id: string;
899
+ page: string;
900
+ } | undefined;
901
+ } | undefined;
902
+ mandatory?: boolean | undefined;
903
+ page: string;
904
+ componentType: "Suggester";
905
+ storeName: string;
906
+ response: {
907
+ name: string;
908
+ };
909
+ arbitrary?: {
910
+ response: {
911
+ name: string;
912
+ };
913
+ } | undefined;
914
+ optionResponses: {
915
+ name: string;
916
+ attribute: string;
917
+ }[];
848
918
  } | {
849
919
  label: import("react").ReactNode;
850
920
  description?: import("react").ReactNode;
@@ -951,6 +1021,33 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
951
1021
  };
952
1022
  min?: string | undefined;
953
1023
  max?: string | undefined;
1024
+ } | {
1025
+ label: import("react").ReactNode;
1026
+ description?: import("react").ReactNode;
1027
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
1028
+ conditionFilter?: import("react").ReactNode;
1029
+ controls?: import("../../type-source").ControlType[] | undefined;
1030
+ id: string;
1031
+ bindingDependencies?: string[] | undefined;
1032
+ hierarchy?: {
1033
+ sequence: {
1034
+ label: import("react").ReactNode;
1035
+ id: string;
1036
+ page: string;
1037
+ };
1038
+ subSequence?: {
1039
+ label: import("react").ReactNode;
1040
+ id: string;
1041
+ page: string;
1042
+ } | undefined;
1043
+ } | undefined;
1044
+ mandatory?: boolean | undefined;
1045
+ page: string;
1046
+ componentType: "Duration";
1047
+ format: "PnYnM" | "PTnHnM";
1048
+ response: {
1049
+ name: string;
1050
+ };
954
1051
  } | {
955
1052
  label: import("react").ReactNode;
956
1053
  description?: import("react").ReactNode;
@@ -975,8 +1072,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
975
1072
  page: string;
976
1073
  componentType: "CheckboxGroup";
977
1074
  responses: {
978
- label: import("../../type-source").LabelType;
979
- description?: import("../../type-source").LabelType | undefined;
1075
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
1076
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
980
1077
  response: import("../../type-source").ResponseType;
981
1078
  id: string;
982
1079
  }[];
@@ -1034,8 +1131,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
1034
1131
  componentType: "Radio";
1035
1132
  options: {
1036
1133
  value: string;
1037
- label: import("../../type-source").LabelType;
1038
- description?: import("../../type-source").LabelType | undefined;
1134
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
1135
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
1039
1136
  }[];
1040
1137
  response: {
1041
1138
  name: string;
@@ -1092,8 +1189,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
1092
1189
  componentType: "Dropdown";
1093
1190
  options: {
1094
1191
  value: string;
1095
- label: import("../../type-source").LabelType;
1096
- description?: import("../../type-source").LabelType | undefined;
1192
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
1193
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
1097
1194
  }[];
1098
1195
  response: {
1099
1196
  name: string;
@@ -1101,37 +1198,6 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
1101
1198
  missingResponse?: {
1102
1199
  name: string;
1103
1200
  } | undefined;
1104
- } | {
1105
- label: import("react").ReactNode;
1106
- description?: import("react").ReactNode;
1107
- declarations?: import("../../type-source").DeclarationType[] | undefined;
1108
- conditionFilter?: import("react").ReactNode;
1109
- controls?: import("../../type-source").ControlType[] | undefined;
1110
- id: string;
1111
- bindingDependencies?: string[] | undefined;
1112
- hierarchy?: {
1113
- sequence: {
1114
- label: import("react").ReactNode;
1115
- id: string;
1116
- page: string;
1117
- };
1118
- subSequence?: {
1119
- label: import("react").ReactNode;
1120
- id: string;
1121
- page: string;
1122
- } | undefined;
1123
- } | undefined;
1124
- mandatory?: boolean | undefined;
1125
- page: string;
1126
- componentType: "Suggester";
1127
- storeName: string;
1128
- response: {
1129
- name: string;
1130
- };
1131
- optionResponses: {
1132
- name: string;
1133
- attribute: string;
1134
- }[];
1135
1201
  } | {
1136
1202
  label: import("react").ReactNode;
1137
1203
  description?: import("react").ReactNode;
@@ -1193,8 +1259,8 @@ declare function fillSpecificExpressions(component: DeepTranslateExpression<Luna
1193
1259
  } | undefined;
1194
1260
  options: {
1195
1261
  value: string;
1196
- label: import("../../type-source").LabelType;
1197
- description?: import("../../type-source").LabelType | undefined;
1262
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
1263
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
1198
1264
  }[];
1199
1265
  };
1200
1266
  export default fillSpecificExpressions;
@@ -109,6 +109,20 @@ function fillTable(component, state) {
109
109
  })),
110
110
  };
111
111
  }
112
+ /**
113
+ * For suggester, inject the arbitrary value if necessary
114
+ */
115
+ function fillSuggester(component, state) {
116
+ if (!component.arbitrary) {
117
+ return component;
118
+ }
119
+ return {
120
+ ...component,
121
+ arbitraryValue: state.executeExpression(component.arbitrary.response.name, {
122
+ iteration: state.pager.iteration,
123
+ }),
124
+ };
125
+ }
112
126
  /**
113
127
  * Fill component specific props (RoundAbout for instance)
114
128
  */
@@ -125,6 +139,8 @@ function fillSpecificExpressions(component, state) {
125
139
  return fillPairwise(component, state);
126
140
  case 'Table':
127
141
  return fillTable(component, state);
142
+ case 'Suggester':
143
+ return fillSuggester(component, state);
128
144
  default:
129
145
  return component;
130
146
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fill-specific-expression.js","sourceRoot":"","sources":["../../../../../src/use-lunatic/commons/fill-components/fill-specific-expression.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,MAAM,8BAA8B,CAAC;AAC5E,OAAO,cAAc,EAAE,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;GAGG;AACH,SAAS,mBAAmB,CAC3B,SAA4E,EAC5E,KAA8C;IAE9C,MAAM,UAAU,GAAG,SAAS,CAAC,UAAoB,CAAC,CAAC,sEAAsE;IACzH,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,UAC7D,MAAM,EACN,CAAC,IAAI,EAAE,UAAU,CAAC;QAElB,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE;YACpE,OAAO,KAAK,CAAC,iBAAiB,CAAC,UAAU,EAAE;gBAC1C,SAAS;aACT,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IACtC,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,GAAG,SAAS,EAAE,WAAW,EAAE,QAAQ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AAE,CAChC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YACrB,IAAI,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAC;gBACjC,OAAO,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;YACxC,CAAC;YACD,6EAA6E;YAC7E,OAAO;gBACN,GAAG,SAAS;gBACZ,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAC7B,qBAAqB,CAAC,SAAS,CAAC,KAAK,CAAC,CACtC;aACD,CAAC;QACH,CAAC,CAAC,CACF;KACD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,uBAAuB,CAC/B,SAA8D,EAC9D,KAAmB;IAEnB,QAAQ,SAAS,CAAC,aAAa,EAAE,CAAC;QACjC,KAAK,YAAY;YAChB,OAAO,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC9C,KAAK,UAAU;YACd,OAAO,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC9C,KAAK,MAAM,CAAC;QACZ,KAAK,eAAe;YACnB,OAAO,gCAAgC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC3D,KAAK,eAAe;YACnB,OAAO,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACvC,KAAK,OAAO;YACX,OAAO,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACpC;YACC,OAAO,SAAS,CAAC;IACnB,CAAC;AACF,CAAC;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"fill-specific-expression.js","sourceRoot":"","sources":["../../../../../src/use-lunatic/commons/fill-components/fill-specific-expression.ts"],"names":[],"mappings":"AACA,OAAO,EAAgC,MAAM,8BAA8B,CAAC;AAC5E,OAAO,cAAc,EAAE,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,M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AS;QACZ,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;YAC1E,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS;SAChC,CAAC;KACF,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,uBAAuB,CAC/B,SAA8D,EAC9D,KAAmB;IAEnB,QAAQ,SAAS,CAAC,aAAa,EAAE,CAAC;QACjC,KAAK,YAAY;YAChB,OAAO,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC9C,KAAK,UAAU;YACd,OAAO,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC9C,KAAK,MAAM,CAAC;QACZ,KAAK,eAAe;YACnB,OAAO,gCAAgC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC3D,KAAK,eAAe;YACnB,OAAO,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACvC,KAAK,OAAO;YACX,OAAO,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACpC,KAAK,WAAW;YACf,OAAO,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACxC;YACC,OAAO,SAAS,CAAC;IACnB,CAAC;AACF,CAAC;AAED,eAAe,uBAAuB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  function isFirstLastPage(pager) {
2
2
  const { page, maxPage } = pager;
3
- const isFirstPage = page === '1';
3
+ const isFirstPage = page === 1;
4
4
  const isLastPage = page === maxPage;
5
5
  return { isFirstPage, isLastPage };
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"is-First-last-page.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/is-First-last-page.ts"],"names":[],"mappings":"AAEA,SAAS,eAAe,CAAC,KAA4B;IACpD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,WAAW,GAAG,IAAI,KAAK,GAAG,CAAC;IACjC,MAAM,UAAU,GAAG,IAAI,KAAK,OAAO,CAAC;IACpC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"is-First-last-page.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/is-First-last-page.ts"],"names":[],"mappings":"AAEA,SAAS,eAAe,CAAC,KAA4B;IACpD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAC/B,MAAM,UAAU,GAAG,IAAI,KAAK,OAAO,CAAC;IACpC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC;AAED,eAAe,eAAe,CAAC"}