@inseefr/lunatic 3.0.0-rc.1 → 3.0.0-rc.11
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.
- package/lib/components/CheckboxBoolean/CheckboxBoolean.js +39 -19
- package/lib/components/CheckboxGroup/CheckboxGroup.js +3 -2
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +4 -5
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +3 -0
- package/lib/components/CheckboxOne/CheckboxOne.js +6 -7
- package/lib/components/Datepicker/Datepicker.js +43 -29
- package/lib/components/Dropdown/Dropdown.js +37 -37
- package/lib/components/Duration/Duration.js +41 -17
- package/lib/components/FilterDescription/FilterDescription.js +2 -3
- package/lib/components/Input/Input.js +39 -22
- package/lib/components/InputNumber/InputNumber.js +45 -35
- package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +0 -2
- package/lib/components/Loop/Loop.js +52 -29
- package/lib/components/LunaticComponents.js +60 -51
- package/lib/components/Question/Question.js +23 -14
- package/lib/components/Radio/Radio.js +2 -2
- package/lib/components/RosterForLoop/RosterForLoop.js +13 -36
- package/lib/components/Roundabout/CustomRoundabout.js +2 -2
- package/lib/components/Roundabout/Roundabout.js +0 -1
- package/lib/components/Roundabout/RoundaboutItButton.js +2 -2
- package/lib/components/Roundabout/extra.js +6 -6
- package/lib/components/Sequence/Sequence.js +2 -3
- package/lib/components/Subsequence/Subsequence.js +2 -2
- package/lib/components/Subsequence/Subsequence.spec.js +1 -1
- package/lib/components/Suggester/CustomSuggester.js +9 -6
- package/lib/components/Suggester/Suggester.js +67 -4
- package/lib/components/Suggester/SuggesterNotification.js +2 -2
- package/lib/components/Summary/Summary.js +3 -3
- package/lib/components/Switch/Switch.js +42 -22
- package/lib/components/Textarea/Textarea.js +43 -24
- package/lib/components/library.js +0 -2
- package/lib/components/shared/Button/Button.js +2 -3
- package/lib/components/shared/Button/IconButton.js +0 -1
- package/lib/components/shared/Checkbox/CheckboxOption.js +2 -3
- package/lib/components/shared/Combobox/Combobox.js +5 -4
- package/lib/components/shared/Combobox/ComboboxContainer.js +2 -2
- package/lib/components/shared/Combobox/ComboboxContentBox.js +2 -2
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js +2 -2
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +2 -2
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +0 -1
- package/lib/components/shared/Declarations/Declarations.js +6 -7
- package/lib/components/shared/Declarations/Declarations.spec.js +5 -5
- package/lib/components/shared/Fieldset/Fieldset.js +2 -3
- package/lib/components/shared/HOC/{customizedComponent.js → slottableComponent.js} +35 -13
- package/lib/components/shared/Icons/lunatic-icon.js +0 -1
- package/lib/components/shared/Label/Label.js +2 -3
- package/lib/components/shared/MDLabel/RouterLink.js +2 -2
- package/lib/components/shared/Missing/Missing.js +0 -1
- package/lib/components/shared/ModalControls/ModalControls.js +0 -1
- package/lib/components/shared/Notification.js +2 -2
- package/lib/components/shared/Radio/RadioGroup.js +4 -4
- package/lib/components/shared/Radio/RadioOption.js +2 -2
- package/lib/components/shared/Table/Table.js +2 -3
- package/lib/components/shared/Table/Tbody.js +2 -2
- package/lib/components/shared/Table/Td.js +2 -2
- package/lib/components/shared/Table/Th.js +2 -2
- package/lib/components/shared/Table/Thead.js +2 -2
- package/lib/components/shared/Table/Tr.js +2 -2
- package/lib/components/shared/VariableStatus/VariableStatus.js +0 -1
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +0 -1
- package/lib/components/shared/suggester-loader-widget/widget.js +0 -1
- package/lib/css/components/Button.scss +24 -0
- package/lib/css/components/CheckboxGroup.scss +13 -0
- package/lib/css/components/CheckboxOne.scss +19 -0
- package/lib/css/components/CheckboxOption.scss +19 -0
- package/lib/css/components/Combobox.scss +206 -0
- package/lib/css/components/ComponentErrors.scss +5 -0
- package/lib/css/components/Datepicker.scss +19 -0
- package/lib/css/components/Declarations.scss +42 -0
- package/lib/css/components/Dragger.scss +8 -0
- package/lib/css/components/Dropdown.scss +38 -0
- package/lib/css/components/Duration.scss +9 -0
- package/lib/css/components/Fieldset.scss +5 -0
- package/lib/css/components/IconButton.scss +38 -0
- package/lib/css/components/Input.scss +42 -0
- package/lib/css/components/InputNumber.scss +11 -0
- package/lib/css/components/Label.scss +6 -0
- package/lib/css/components/Missing.scss +27 -0
- package/lib/css/components/ModalControls.scss +48 -0
- package/lib/css/components/RadioGroup.scss +21 -0
- package/lib/css/components/RosterForLoop.scss +39 -0
- package/lib/css/components/Roundabout.scss +13 -0
- package/lib/css/components/Sequence.scss +10 -0
- package/lib/css/components/Suggester.scss +170 -0
- package/lib/css/components/SuggesterWidget.scss +176 -0
- package/lib/css/components/Table.scss +27 -0
- package/lib/css/components/Textarea.scss +8 -0
- package/lib/css/components/VariableStatus.scss +36 -0
- package/lib/css/main.scss +181 -0
- package/lib/hooks/useSuggesterInfo.js +14 -12
- package/lib/main.css +1063 -0
- package/lib/main.css.map +1 -0
- package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +10 -5
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +5 -12
- package/lib/src/components/Datepicker/Datepicker.d.ts +8 -10
- package/lib/src/components/Dropdown/Dropdown.d.ts +9 -12
- package/lib/src/components/Duration/Duration.d.ts +9 -7
- package/lib/src/components/FilterDescription/FilterDescription.d.ts +1 -1
- package/lib/src/components/Input/Input.d.ts +9 -8
- package/lib/src/components/InputNumber/InputNumber.d.ts +9 -10
- package/lib/src/components/Loop/Loop.d.ts +11 -18
- package/lib/src/components/LunaticComponents.d.ts +4 -2
- package/lib/src/components/Question/Question.d.ts +6 -4
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +2 -22
- package/lib/src/components/Roundabout/Roundabout.d.ts +0 -1
- package/lib/src/components/Sequence/Sequence.d.ts +1 -2
- package/lib/src/components/Subsequence/Subsequence.d.ts +1 -1
- package/lib/src/components/Suggester/CustomSuggester.d.ts +7 -3
- package/lib/src/components/Suggester/Suggester.d.ts +1 -2
- package/lib/src/components/Suggester/SuggesterType.d.ts +6 -0
- package/lib/src/components/Suggester/helpers.d.ts +2 -2
- package/lib/src/components/Switch/Switch.d.ts +9 -0
- package/lib/src/components/Textarea/Textarea.d.ts +9 -10
- package/lib/src/components/library.d.ts +26 -93
- package/lib/src/components/shared/Button/Button.d.ts +0 -1
- package/lib/src/components/shared/Button/IconButton.d.ts +0 -1
- package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +0 -1
- package/lib/src/components/shared/Combobox/Combobox.d.ts +1 -1
- package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +0 -1
- package/lib/src/components/shared/Declarations/Declarations.d.ts +2 -3
- package/lib/src/components/shared/Fieldset/Fieldset.d.ts +0 -1
- package/lib/src/components/shared/HOC/slottableComponent.d.ts +105 -0
- package/lib/src/components/shared/Icons/lunatic-icon.d.ts +0 -1
- package/lib/src/components/shared/Label/Label.d.ts +0 -1
- package/lib/src/components/shared/Missing/Missing.d.ts +0 -1
- package/lib/src/components/shared/ModalControls/ModalControls.d.ts +0 -1
- package/lib/src/components/shared/Radio/RadioGroup.d.ts +1 -1
- package/lib/src/components/shared/Table/Table.d.ts +0 -1
- package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +0 -1
- package/lib/src/components/type.d.ts +7 -7
- package/lib/src/hooks/use-track-changes.d.ts +9 -1
- package/lib/src/hooks/useSuggesterInfo.d.ts +1 -1
- package/lib/src/index.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +106 -59
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +87 -58
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +47 -38
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +159 -87
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/lunatic-context.d.ts +1 -4
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +23 -5
- package/lib/src/use-lunatic/type-source.d.ts +55 -46
- package/lib/src/use-lunatic/type.d.ts +4 -4
- package/lib/src/use-lunatic/use-lunatic.d.ts +63 -32
- package/lib/src/utils/variables.d.ts +10 -2
- package/lib/stories/{component-set/component-set.stories.js → behaviour/slots.stories.js} +36 -25
- package/lib/stories/checkbox-group/checkbox-group.stories.js +1 -6
- package/lib/stories/disabled/source.json +1 -1
- package/lib/stories/loop/source-roster.json +2 -2
- package/lib/stories/pairwise/pairwise-links.stories.js +1 -9
- package/lib/stories/suggester/fakeReferentiel.json +12 -0
- package/lib/stories/suggester/source-option-responses.json +145 -0
- package/lib/stories/suggester/suggester.stories.js +45 -7
- package/lib/stories/utils/orchestrator.js +4 -4
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -1
- package/lib/use-lunatic/lunatic-context.js +2 -10
- package/lib/use-lunatic/replace-component-sequence.js +2 -3
- package/lib/use-lunatic/use-lunatic.js +1 -4
- package/lib/use-lunatic/use-lunatic.test.js +12 -37
- package/lib/use-lunatic/use-suggesters.js +23 -24
- package/package.json +2 -2
- package/lib/components/ComponentSet/ComponentSet.js +0 -68
- package/lib/components/Dropdown/DropdownWritable.js +0 -58
- package/lib/components/Dropdown/renderer/WritableLabelRenderer.js +0 -38
- package/lib/components/Dropdown/renderer/WritableOptionRenderer.js +0 -140
- package/lib/src/components/ComponentSet/ComponentSet.d.ts +0 -7
- package/lib/src/components/Dropdown/DropdownWritable.d.ts +0 -17
- package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +0 -8
- package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +0 -8
- package/lib/src/components/shared/HOC/customizedComponent.d.ts +0 -5
- package/lib/src/components/type-custom.d.ts +0 -101
- package/lib/stories/checkbox-group/sourceComponentset.json +0 -424
- package/lib/stories/component-set/data-loop.json +0 -18
- package/lib/stories/component-set/data-roundabout.json +0 -25
- package/lib/stories/component-set/data.json +0 -25
- package/lib/stories/component-set/source-loop.json +0 -308
- package/lib/stories/component-set/source-roundabout.json +0 -434
- package/lib/stories/component-set/source.json +0 -113
- package/lib/stories/pairwise/source-componentset.json +0 -292
- package/lib/stories/suggester/source-component-set.json +0 -113
- /package/lib/components/{type-custom.js → Suggester/SuggesterType.js} +0 -0
package/lib/main.css.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/css/main.scss","../src/css/components/Button.scss","../src/css/components/CheckboxGroup.scss","../src/css/components/CheckboxOne.scss","../src/css/components/CheckboxOption.scss","../src/css/components/Combobox.scss","../src/css/components/ComponentErrors.scss","../src/css/components/Datepicker.scss","../src/css/components/Declarations.scss","../src/css/components/Dropdown.scss","../src/css/components/Duration.scss","../src/css/components/Fieldset.scss","../src/css/components/IconButton.scss","../src/css/components/Input.scss","../src/css/components/InputNumber.scss","../src/css/components/Label.scss","../src/css/components/Missing.scss","../src/css/components/ModalControls.scss","../src/css/components/RadioGroup.scss","../src/css/components/RosterForLoop.scss","../src/css/components/Roundabout.scss","../src/css/components/Sequence.scss","../src/css/components/Suggester.scss","../src/css/components/Table.scss","../src/css/components/Textarea.scss","../src/css/components/VariableStatus.scss","../src/css/components/Dragger.scss","../src/css/components/SuggesterWidget.scss"],"names":[],"mappings":";AAAA;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;;;AAkBF;AA0BE;AA+BA;;AAxDA;EACE;EACA;;AAEF;EACE;EACA;;AAIF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AASF;EACE;;AAEA;EACE;EACA;;AACA;EACE;;AAGJ;EACE;EACA;;AACA;EACE;;AAGJ;EACE;;AAEF;EACE;;AAMJ;EAzEA;EACA;;AA2EA;EA5EA;EACA;;AA8EA;EACE;EA3EF;EACA;EACA;;AAEA;EACE;;AAyEF;EA9EA;EACA;EACA;;AAEA;EACE;;AA6EF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;;AACA;EACE;EACA;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEE;EACE;;AAEF;EACE;;;ACpJR;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EAEC;EACA;EACA;;AAED;EACC;EACA;EACA;;AAED;EACC;EACA;;;AClBE;EACE;EACA;;AAGJ;EACE;EACA;;;ACRF;EACC;;AAGF;EACC;;AAEA;EACC;EACA;EACA;;AACA;EACC;;;ACbH;EACC;;AACA;EACC;;AAGD;EACC;EACA;EACA;EACA;;;AAIH;EACC;EACA;;;ACMD;EACC;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EAEA;;AACA;EACC;EACA;EACA;;AAEC;EACC;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EApCL;;AAuCK;EAhDL;EASA;EAPA;EACA;EACA;EACA;;AAgDI;EACC;EACA;EACA;EACA;EACA;EAjDL;EAmDK;EACA;EACA;EA9DL;EASA;EAPA;EACA;EACA;EACA;;AA4DK;EACC;EACA;EACA;;AAGD;EACC;;AAKH;EApEH;EAsEI;EACA;EACA;EACA;;AAGA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;;AAED;EACC;EACA;;AAQN;EACC;EACA;EACA;EACA;;AACA;EACC;;AAIA;EACC;EACA;EACA;EACA;;AAKH;EACC;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;AAEA;EACC;;AACA;EACC;EACA;EACA;EACA;EAKA;;AAJA;EACC;;AAMF;EAEC;EACA;EACA;EACA;EACA;;AACA;EACC;;AAKH;AAAA;AAAA;AAAA;EAIC;EACA;EACA;EACA;;AAIA;EACC;;AAED;EACC;EAtMJ;EACA;EACA;;;ACFA;EACC;;;ACFF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AChBD;EACC;;AAGD;EACC;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;;AAIF;EACC;EACA;;AACA;EACC;;;ACxBD;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;;ACjCJ;AAAA;EAEE;EACA;EACA;;;AAEF;EACE;;;ACPF;EACC;EACA;EACA;;;ACHD;EACC;EACA;;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EACC;EACA;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;;AC9BA;AAAA;AAAA;AAAA;EACC;;AACA;AAAA;AAAA;AAAA;EACC;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;AAAA;AAAA;AAAA;EACC;EACA;;AAED;AAAA;AAAA;AAAA;EACC;;AAED;AAAA;AAAA;AAAA;EACC;;AAIF;AAAA;AAAA;AAAA;EACC;EACA;EACA;;;ACnCF;EACC;;AAEA;EACC;;;ACNF;EACC;EACA;;;ACHF;EACC;;;AAED;EACC;EACA;EACA;;;AAED;EACC;EACA;;;AAED;EACC;EACA;;;AAED;EACC;;;AAED;EACC;EACA;;;AAED;EACC;EACA;;;ACzBD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;EACA;;AAGD;EACC;EACA;;AACA;EACC;;AAMF;AAAA;AAAA;AAAA;EAIC;EACA;;AAGF;EACC;EACA;;;AC3CA;EACC;;AAGF;EACC;;AAEA;EACC;;AAGD;EACC;EACA;EACA;EACA;;;ACUH;EACC;EACA;EACA;EACA;;AAEC;EACC;EACA;;;ACnCH;EACC;;AAGC;EACC;;AAGD;EACC;;;ACRF;EACC;EACA;EACA;EACA;EACA;EACA;;;AC8BD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;EACC;;AACA;EACC;EACA;EACA;;AAQC;EACC;EACA;EACA;;AACA;EACC;;AAED;EACC;EACA;EACA;EACA;EAvEN;;AA0EM;EAlEN;EARA;EAUA;EACA;EACA;EACA;;AAkEK;EACC;EACA;EACA;EACA;EACA;EApFN;;AAuFM;EACC;EAhFP;EARA;EAUA;EACA;EACA;EACA;;AA8EM;EACC;EACA;EACA;;AAGD;EACC;;AAKH;EAvGJ;EAyGK;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AACA;EACC;EACA;;AAED;EACC;EACA;;AASP;EACC;EACA;EACA;;AAEA;EACC;;AAjIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAsHA;EACC;;AArIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA0HA;EACC;;AAzIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA+HA;EACC;EACA;;AACA;EACC;EACA;EACA;;;ACpKH;EACC;EACA;EACA;EACA;;AACA;AAAA;EAEC;EACA;EACA;;AAGA;AAAA;EAEC;EACA;EACA;;AAKH;EACC;EACA;;;ACrBD;EACC;EACA;;;ACLF;EACC;AAMA;AAUA;;AAdA;EACC;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEC;EACC;;AAED;EACC;;;AC/BJ;EACE;EACA;EACA;EACA;EACA;EACA;;;ACaD;EACC;EACA;;AAED;EACC;EACA;EACA,kBA1BO;EA2BP;EACA;EACA;EACA;;AAlBD;EACC;EACA;;AAoBA;EACC;EACA;EACA;EACA;;AACA;EACC;EACA,OAxCK;EAyCL;EACA;EACA;;AAED;EACC,OA9CK;EA+CL;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA,kBA1DK;;AA4DL;EACC;EACA;;AAGD;EACC,kBAjEI;EAkEJ;EACA;;AAIA;EACC;EACA;EACA,MA5EG;;AAiFN;EACC;EACA;EACA;EACA;;AAGC;EACC,cAvFG;EAwFH;EAMA;;AALA;EACC,kBA1FE;EA2FF;;AAOH;EACC;EACA;EACA;;AACA;EACC,kBAxGG;EAyGH;;AAMJ;EACC;EACA;EACA;EACA,kBApHM;EAqHN;EACA;EACA;EACA;EACA;;AAGC;EACC;;AAIF;EACC;EACA;EACA,MAnIK;;AAWR;EACC;EACA;;AA4HA;EACC;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA,kBAnJK;EAoJL;EACA;;AAEA;EACC;;AAGD;EACC,kBA1JI;EA2JJ;;AAGD;EACC;;AACA;EACC;;AAED;EACC;EACA;EACA,MAzKG","file":"main.css"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function CheckboxBoolean({ handleChange, response, errors, value, ...props }: LunaticComponentProps<'CheckboxBoolean'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'CheckboxBoolean'>, 'response' | 'handleChange' | 'errors' | 'value'> & {
|
|
6
|
+
onChange: () => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const CustomCheckboxBoolean: import("react").ComponentType<CustomProps>;
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
label: import("react").ReactNode;
|
|
7
|
-
value: string;
|
|
8
|
-
}[];
|
|
9
|
-
response: {
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
1
|
+
import type { LunaticComponentProps } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Checkbox acting as a radio (only one option can be checked at a time)
|
|
4
|
+
*/
|
|
5
|
+
export declare function CheckboxOne({ options, value, id, label, description, handleChange, errors, shortcut, response, }: LunaticComponentProps<'CheckboxOne'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import './Datepicker.scss';
|
|
3
2
|
import type { LunaticComponentProps } from '../type';
|
|
4
|
-
|
|
5
|
-
export declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>;
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function Datepicker({ dateFormat, response, handleChange, errors, ...props }: LunaticComponentProps<'Datepicker'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'Datepicker'>, 'response' | 'handleChange' | 'errors'> & {
|
|
6
|
+
onChange: (s: string | null) => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomDatepicker: import("react").ComponentType<CustomProps>;
|
|
10
|
+
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
writable?: boolean | undefined;
|
|
13
|
-
}>;
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function Dropdown({ handleChange, response, errors, ...props }: LunaticComponentProps<'Dropdown'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'Dropdown'>, 'response' | 'handleChange' | 'errors'> & {
|
|
6
|
+
onChange: (v: string | null) => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomDropdown: import("react").ComponentType<CustomProps>;
|
|
10
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function Duration({ handleChange, response, errors, ...props }: LunaticComponentProps<'Duration'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'Duration'>, 'response' | 'handleChange' | 'errors'> & {
|
|
6
|
+
onChange: (v: string | null) => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomDuration: import("react").ComponentType<CustomProps>;
|
|
10
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function Input({ handleChange, response, errors, ...props }: LunaticComponentProps<'Input'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'Input'>, 'response' | 'handleChange' | 'errors'> & {
|
|
6
|
+
onChange: (v: string) => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomInput: import("react").ComponentType<CustomProps>;
|
|
10
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}>;
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function InputNumber({ handleChange, response, errors, decimals, ...props }: LunaticComponentProps<'InputNumber'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'InputNumber'>, 'response' | 'handleChange' | 'errors'> & {
|
|
6
|
+
onChange: (v: number | null) => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomInputNumber: import("react").ComponentType<CustomProps>;
|
|
10
|
+
export {};
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
2
4
|
/**
|
|
3
5
|
* Loop without specific markup (stack of subcomponents)
|
|
4
6
|
*/
|
|
5
|
-
export declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
getComponents: (n: number) => import("../../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
12
|
-
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
13
|
-
iteration?: number | number[] | undefined;
|
|
14
|
-
bindingDependencies?: string[] | undefined;
|
|
15
|
-
deps?: string[] | undefined;
|
|
16
|
-
} | undefined) => T;
|
|
17
|
-
value: Record<string, unknown[]>;
|
|
18
|
-
header?: {
|
|
19
|
-
label: import("react").ReactNode;
|
|
20
|
-
}[] | undefined;
|
|
21
|
-
paginatedLoop?: boolean | undefined;
|
|
7
|
+
export declare function Loop({ lines, iterations, value, handleChange, getComponents, errors, ...props }: LunaticComponentProps<'Loop'>): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
type CustomProps = Omit<LunaticComponentProps<'Loop'>, 'response' | 'handleChange' | 'errors' | 'lines' | 'iterations' | 'value' | 'getComponents'> & PropsWithChildren<{
|
|
9
|
+
errors?: LunaticError[];
|
|
10
|
+
addRow?: () => void;
|
|
11
|
+
removeRow?: () => void;
|
|
12
|
+
canControlRows?: boolean;
|
|
22
13
|
}>;
|
|
14
|
+
export declare const CustomLoop: import("react").ComponentType<CustomProps>;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PropsWithChildren, type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
import type { FilledLunaticComponentProps } from '../use-lunatic/commons/fill-components/fill-components';
|
|
3
|
-
|
|
3
|
+
import { type LunaticSlotComponents } from './shared/HOC/slottableComponent';
|
|
4
|
+
type Props<T extends FilledLunaticComponentProps, V = unknown> = {
|
|
4
5
|
components: (FilledLunaticComponentProps | ReactElement | {
|
|
5
6
|
label: string;
|
|
6
7
|
[key: string]: unknown;
|
|
@@ -12,11 +13,12 @@ type Props<T extends FilledLunaticComponentProps, V = undefined> = {
|
|
|
12
13
|
wrapper?: (props: PropsWithChildren<FilledLunaticComponentProps & T & V & {
|
|
13
14
|
index: number;
|
|
14
15
|
}>) => ReactNode;
|
|
16
|
+
slots?: Partial<LunaticSlotComponents>;
|
|
15
17
|
};
|
|
16
18
|
/**
|
|
17
19
|
* Entry point for orchestrators, this component display the list of fields
|
|
18
20
|
*/
|
|
19
|
-
export declare function LunaticComponents<T extends FilledLunaticComponentProps, V = undefined>({ components, autoFocusKey, componentProps, blocklist, memo, wrapper, }: Props<T, V>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function LunaticComponents<T extends FilledLunaticComponentProps, V = undefined>({ components, autoFocusKey, componentProps, blocklist, memo, slots, wrapper, }: Props<T, V>): import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export declare function hasLabel(component: unknown): component is {
|
|
21
23
|
label: ReactNode;
|
|
22
24
|
} & FilledLunaticComponentProps;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LunaticComponentProps } from '../type';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
2
3
|
/**
|
|
3
4
|
* Surround a question giving additional context with label / description / declarations
|
|
4
5
|
*/
|
|
5
|
-
export declare const Question:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export declare const Question: ({ components, ...props }: LunaticComponentProps<'Question'>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type CustomProps = PropsWithChildren<Omit<LunaticComponentProps<'Question'>, 'components'>>;
|
|
8
|
+
export declare const CustomQuestion: import("react").ComponentType<CustomProps>;
|
|
9
|
+
export {};
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import './RosterForLoop.scss';
|
|
1
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
2
|
/**
|
|
4
3
|
* Loop displayed as a table
|
|
5
4
|
*/
|
|
6
|
-
export declare const RosterForLoop:
|
|
7
|
-
lines: {
|
|
8
|
-
min: number;
|
|
9
|
-
max: number;
|
|
10
|
-
};
|
|
11
|
-
iterations: number;
|
|
12
|
-
getComponents: (n: number) => import("../../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
13
|
-
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
14
|
-
iteration?: number | number[] | undefined;
|
|
15
|
-
bindingDependencies?: string[] | undefined;
|
|
16
|
-
deps?: string[] | undefined;
|
|
17
|
-
} | undefined) => T;
|
|
18
|
-
value: Record<string, unknown[]>;
|
|
19
|
-
header?: {
|
|
20
|
-
label: import("react").ReactNode;
|
|
21
|
-
rowspan?: number | undefined;
|
|
22
|
-
colspan?: number | undefined;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
paginatedLoop?: boolean | undefined;
|
|
25
|
-
}>;
|
|
5
|
+
export declare const RosterForLoop: (props: LunaticComponentProps<'RosterForLoop'>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const Sequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "id" | "label" | "style" | "description" | "declarations">>;
|
|
2
|
+
export declare const Sequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style">>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Subsequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "
|
|
2
|
+
export declare const Subsequence: import("react").ComponentType<Pick<import("../type").LunaticBaseProps<string>, "label" | "declarations" | "id">>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { LunaticError } from '../../use-lunatic/type';
|
|
3
3
|
import type { LunaticComponentProps } from '../type';
|
|
4
|
-
import type {
|
|
4
|
+
import type { SuggesterOptionType } from './SuggesterType';
|
|
5
5
|
type Props = {
|
|
6
6
|
className?: string;
|
|
7
7
|
classNamePrefix?: string;
|
|
8
8
|
placeholder?: string;
|
|
9
|
-
onSelect
|
|
9
|
+
onSelect: (option: string | null | {
|
|
10
|
+
id?: string;
|
|
11
|
+
[key: string]: ReactNode;
|
|
12
|
+
}) => void;
|
|
10
13
|
value: string | null;
|
|
11
14
|
labelRenderer: LunaticComponentProps<'Suggester'>['labelRenderer'];
|
|
12
15
|
optionRenderer: LunaticComponentProps<'Suggester'>['optionRenderer'];
|
|
@@ -14,12 +17,13 @@ type Props = {
|
|
|
14
17
|
readOnly?: boolean;
|
|
15
18
|
id?: string;
|
|
16
19
|
searching?: (s: string | null) => Promise<{
|
|
17
|
-
results:
|
|
20
|
+
results: SuggesterOptionType[];
|
|
18
21
|
search: string;
|
|
19
22
|
}>;
|
|
20
23
|
label?: ReactNode;
|
|
21
24
|
description?: ReactNode;
|
|
22
25
|
errors?: LunaticError[];
|
|
26
|
+
defaultOptions?: SuggesterOptionType[];
|
|
23
27
|
};
|
|
24
28
|
export declare const CustomSuggester: import("react").ComponentType<Props>;
|
|
25
29
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import type { LunaticComponentProps } from '../type';
|
|
2
|
-
|
|
3
|
-
export declare function Suggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, handleChange, disabled, value, label, description, getSuggesterStatus, errors, readOnly, workersBasePath, response, }: LunaticComponentProps<'Suggester'>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function Suggester({ storeName, idbVersion, id, className, optionRenderer, labelRenderer, handleChange, disabled, value, label, description, getSuggesterStatus, errors, readOnly, workersBasePath, response, optionResponses, executeExpression, iteration, }: LunaticComponentProps<'Suggester'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SuggesterOptionType } from './SuggesterType';
|
|
2
2
|
export declare function isWorkerCompatible(): boolean;
|
|
3
3
|
export declare function createSearching(name: string, version: string, workersBasePath?: string): (search: string | null) => Promise<{
|
|
4
|
-
results:
|
|
4
|
+
results: SuggesterOptionType[];
|
|
5
5
|
search: string;
|
|
6
6
|
}>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import type { LunaticComponentProps } from '../type';
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
type CustomProps = Omit<LunaticComponentProps<'Switch'>, 'response' | 'handleChange' | 'errors' | 'value'> & {
|
|
5
|
+
onChange: () => void;
|
|
6
|
+
errors?: LunaticError[];
|
|
7
|
+
checked: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomSwitch: React.ComponentType<CustomProps>;
|
|
2
10
|
export declare const Switch: React.ComponentType<import("../type").LunaticBaseProps<boolean> & {
|
|
3
11
|
response: {
|
|
4
12
|
name: string;
|
|
@@ -8,3 +16,4 @@ export declare const Switch: React.ComponentType<import("../type").LunaticBasePr
|
|
|
8
16
|
false: string;
|
|
9
17
|
} | undefined;
|
|
10
18
|
}>;
|
|
19
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}>;
|
|
2
|
+
import type { LunaticComponentProps } from '../type';
|
|
3
|
+
import type { LunaticError } from '../../use-lunatic/type';
|
|
4
|
+
export declare function Textarea({ handleChange, response, errors, ...props }: LunaticComponentProps<'Textarea'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type CustomProps = Omit<LunaticComponentProps<'Textarea'>, 'response' | 'handleChange' | 'errors'> & {
|
|
6
|
+
onChange: (v: string) => void;
|
|
7
|
+
errors?: LunaticError[];
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomTextarea: import("react").ComponentType<CustomProps>;
|
|
10
|
+
export {};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { Table } from './Table/Table';
|
|
2
|
+
import { Datepicker } from './Datepicker/Datepicker';
|
|
2
3
|
import { CheckboxGroup } from './CheckboxGroup/CheckboxGroup';
|
|
4
|
+
import { CheckboxBoolean } from './CheckboxBoolean/CheckboxBoolean';
|
|
5
|
+
import { Input } from './Input/Input';
|
|
6
|
+
import { Textarea } from './Textarea/Textarea';
|
|
3
7
|
import type { ComponentType } from 'react';
|
|
4
|
-
import {
|
|
8
|
+
import { InputNumber } from './InputNumber/InputNumber';
|
|
9
|
+
import { Duration } from './Duration/Duration';
|
|
10
|
+
import { Loop } from './Loop/Loop';
|
|
11
|
+
import { Dropdown } from './Dropdown/Dropdown';
|
|
5
12
|
import { Roundabout } from './Roundabout/Roundabout';
|
|
13
|
+
import { CheckboxOne } from './CheckboxOne/CheckboxOne';
|
|
6
14
|
import { Suggester } from './Suggester/Suggester';
|
|
7
15
|
import { Summary } from './Summary/Summary';
|
|
8
16
|
export declare const library: {
|
|
9
|
-
Sequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "
|
|
10
|
-
Subsequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "
|
|
11
|
-
RosterForLoop:
|
|
17
|
+
Sequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style">>;
|
|
18
|
+
Subsequence: ComponentType<Pick<import("./type").LunaticBaseProps<string>, "label" | "declarations" | "id">>;
|
|
19
|
+
RosterForLoop: (props: import("./type").LunaticBaseProps<unknown> & {
|
|
12
20
|
lines: {
|
|
13
21
|
min: number;
|
|
14
22
|
max: number;
|
|
@@ -27,59 +35,14 @@ export declare const library: {
|
|
|
27
35
|
colspan?: number | undefined;
|
|
28
36
|
}[] | undefined;
|
|
29
37
|
paginatedLoop?: boolean | undefined;
|
|
30
|
-
}
|
|
31
|
-
Loop:
|
|
32
|
-
lines: {
|
|
33
|
-
min: number;
|
|
34
|
-
max: number;
|
|
35
|
-
};
|
|
36
|
-
iterations: number;
|
|
37
|
-
getComponents: (n: number) => import("../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
38
|
-
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
39
|
-
iteration?: number | number[] | undefined;
|
|
40
|
-
bindingDependencies?: string[] | undefined;
|
|
41
|
-
deps?: string[] | undefined;
|
|
42
|
-
} | undefined) => T;
|
|
43
|
-
value: Record<string, unknown[]>;
|
|
44
|
-
header?: {
|
|
45
|
-
label: import("react").ReactNode;
|
|
46
|
-
}[] | undefined;
|
|
47
|
-
paginatedLoop?: boolean | undefined;
|
|
48
|
-
}>;
|
|
38
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
39
|
+
Loop: typeof Loop;
|
|
49
40
|
Table: typeof Table;
|
|
50
|
-
InputNumber:
|
|
51
|
-
|
|
52
|
-
max?: number | undefined;
|
|
53
|
-
decimals?: number | undefined;
|
|
54
|
-
unit?: string | undefined;
|
|
55
|
-
response: {
|
|
56
|
-
name: string;
|
|
57
|
-
};
|
|
58
|
-
}>;
|
|
59
|
-
Datepicker: ComponentType<import("./type").LunaticBaseProps<string | null> & {
|
|
60
|
-
dateFormat: "YYYY-MM-DD" | "YYYY" | "YYYY-MM";
|
|
61
|
-
min?: string | undefined;
|
|
62
|
-
max?: string | undefined;
|
|
63
|
-
response: {
|
|
64
|
-
name: string;
|
|
65
|
-
};
|
|
66
|
-
}>;
|
|
41
|
+
InputNumber: typeof InputNumber;
|
|
42
|
+
Datepicker: typeof Datepicker;
|
|
67
43
|
CheckboxGroup: typeof CheckboxGroup;
|
|
68
|
-
CheckboxOne:
|
|
69
|
-
|
|
70
|
-
description?: import("react").ReactNode;
|
|
71
|
-
label: import("react").ReactNode;
|
|
72
|
-
value: string;
|
|
73
|
-
}[];
|
|
74
|
-
response: {
|
|
75
|
-
name: string;
|
|
76
|
-
};
|
|
77
|
-
}>;
|
|
78
|
-
CheckboxBoolean: ComponentType<import("./type").LunaticBaseProps<boolean> & {
|
|
79
|
-
response: {
|
|
80
|
-
name: string;
|
|
81
|
-
};
|
|
82
|
-
}>;
|
|
44
|
+
CheckboxOne: typeof CheckboxOne;
|
|
45
|
+
CheckboxBoolean: typeof CheckboxBoolean;
|
|
83
46
|
Radio: ComponentType<import("./type").LunaticBaseProps<string | null> & {
|
|
84
47
|
options: {
|
|
85
48
|
description: import("react").ReactNode;
|
|
@@ -91,28 +54,9 @@ export declare const library: {
|
|
|
91
54
|
name: string;
|
|
92
55
|
};
|
|
93
56
|
}>;
|
|
94
|
-
Input:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
response: {
|
|
98
|
-
name: string;
|
|
99
|
-
};
|
|
100
|
-
}>;
|
|
101
|
-
Duration: ComponentType<import("./type").LunaticBaseProps<string | null> & {
|
|
102
|
-
format: "PTnHnM" | "PnYnM";
|
|
103
|
-
response: {
|
|
104
|
-
name: string;
|
|
105
|
-
};
|
|
106
|
-
}>;
|
|
107
|
-
Textarea: ComponentType<import("./type").LunaticBaseProps<string> & {
|
|
108
|
-
cols?: number | undefined;
|
|
109
|
-
placeHolder?: string | undefined;
|
|
110
|
-
maxLength?: number | undefined;
|
|
111
|
-
rows?: number | undefined;
|
|
112
|
-
response: {
|
|
113
|
-
name: string;
|
|
114
|
-
};
|
|
115
|
-
}>;
|
|
57
|
+
Input: typeof Input;
|
|
58
|
+
Duration: typeof Duration;
|
|
59
|
+
Textarea: typeof Textarea;
|
|
116
60
|
Switch: ComponentType<import("./type").LunaticBaseProps<boolean> & {
|
|
117
61
|
response: {
|
|
118
62
|
name: string;
|
|
@@ -122,25 +66,14 @@ export declare const library: {
|
|
|
122
66
|
false: string;
|
|
123
67
|
} | undefined;
|
|
124
68
|
}>;
|
|
125
|
-
Question:
|
|
69
|
+
Question: ({ components, ...props }: Pick<import("./type").LunaticBaseProps<unknown>, "label" | "description" | "declarations" | "id"> & {
|
|
126
70
|
components: import("../use-lunatic/commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
FilterDescription: ComponentType<{
|
|
71
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
FilterDescription: ({ id, label }: {
|
|
130
73
|
id: string;
|
|
131
74
|
label?: import("react").ReactNode;
|
|
132
|
-
}
|
|
133
|
-
Dropdown:
|
|
134
|
-
options: {
|
|
135
|
-
description: import("react").ReactNode;
|
|
136
|
-
label: import("react").ReactNode;
|
|
137
|
-
value: string;
|
|
138
|
-
}[];
|
|
139
|
-
response: {
|
|
140
|
-
name: string;
|
|
141
|
-
};
|
|
142
|
-
writable?: boolean | undefined;
|
|
143
|
-
}>;
|
|
75
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
Dropdown: typeof Dropdown;
|
|
144
77
|
PairwiseLinks: ({ declarations, xAxisIterations, yAxisIterations, id, getComponents, }: Omit<import("./type").LunaticBaseProps<unknown>, "value"> & {
|
|
145
78
|
components: import("..").LunaticComponentDefinition[];
|
|
146
79
|
features?: ["VTL"] | ["VTL", "MD"] | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import './Combobox.scss';
|
|
3
2
|
import type { ComboboxOptionType, ComboboxPanelProps, ComboboxSelectionProps } from './ComboboxType';
|
|
4
3
|
import type { LunaticError } from '../../../use-lunatic/type';
|
|
5
4
|
type Props = ComboboxSelectionProps & ComboboxPanelProps & {
|
|
@@ -14,6 +13,7 @@ type Props = ComboboxSelectionProps & ComboboxPanelProps & {
|
|
|
14
13
|
errors?: LunaticError[];
|
|
15
14
|
onChange?: (s: string | null) => void;
|
|
16
15
|
onSelect: (s: string | null) => void;
|
|
16
|
+
onBlur?: () => void;
|
|
17
17
|
options: ComboboxOptionType[];
|
|
18
18
|
readOnly?: boolean;
|
|
19
19
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import './Declarations.scss';
|
|
2
1
|
import { type PropsWithChildren, type ReactNode } from 'react';
|
|
3
2
|
export declare const Declaration: import("react").ComponentType<PropsWithChildren<{
|
|
4
|
-
|
|
3
|
+
declarationType: 'INSTRUCTION' | 'COMMENT' | 'HELP' | 'CODECARD' | 'WARNING' | 'STATEMENT';
|
|
5
4
|
}>>;
|
|
6
5
|
type Props = {
|
|
7
6
|
id?: string;
|
|
8
7
|
type?: 'AFTER_QUESTION_TEXT' | 'BEFORE_QUESTION_TEXT' | 'DETACHABLE';
|
|
9
8
|
declarations?: {
|
|
10
9
|
id: string;
|
|
11
|
-
declarationType:
|
|
10
|
+
declarationType: 'INSTRUCTION' | 'COMMENT' | 'HELP' | 'CODECARD' | 'WARNING' | 'STATEMENT';
|
|
12
11
|
position: string;
|
|
13
12
|
label: ReactNode;
|
|
14
13
|
}[];
|