@inseefr/lunatic 3.0.0-rc.9 → 3.0.1-rc.0
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/README.md +19 -59
- package/lib/components/CheckboxBoolean/CheckboxBoolean.d.ts +11 -0
- package/lib/components/CheckboxBoolean/CheckboxBoolean.js +18 -64
- package/lib/components/CheckboxBoolean/CheckboxBoolean.js.map +1 -0
- package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js +37 -71
- package/lib/components/CheckboxBoolean/CheckboxBoolean.spec.js.map +1 -0
- package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/lib/components/CheckboxGroup/CheckboxGroup.js +25 -49
- package/lib/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.d.ts +10 -0
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +13 -43
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js.map +1 -0
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +45 -46
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js.map +1 -0
- package/lib/components/CheckboxOne/CheckboxOne.d.ts +5 -0
- package/lib/components/CheckboxOne/CheckboxOne.js +7 -35
- package/lib/components/CheckboxOne/CheckboxOne.js.map +1 -0
- package/lib/components/CheckboxOne/CheckboxOne.spec.js +27 -53
- package/lib/components/CheckboxOne/CheckboxOne.spec.js.map +1 -0
- package/lib/components/Datepicker/Datepicker.d.ts +10 -0
- package/lib/components/Datepicker/Datepicker.js +60 -155
- package/lib/components/Datepicker/Datepicker.js.map +1 -0
- package/lib/components/Datepicker/Datepicker.spec.js +70 -87
- package/lib/components/Datepicker/Datepicker.spec.js.map +1 -0
- package/lib/components/Datepicker/DatepickerField.js +13 -47
- package/lib/components/Datepicker/DatepickerField.js.map +1 -0
- package/lib/components/Dropdown/Dropdown.d.ts +10 -0
- package/lib/components/Dropdown/Dropdown.js +14 -62
- package/lib/components/Dropdown/Dropdown.js.map +1 -0
- package/lib/components/Dropdown/Dropdown.spec.js +38 -49
- package/lib/components/Dropdown/Dropdown.spec.js.map +1 -0
- package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js +17 -32
- package/lib/components/Dropdown/renderer/SimpleLabelRenderer.js.map +1 -0
- package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js +10 -40
- package/lib/components/Dropdown/renderer/SimpleOptionRenderer.js.map +1 -0
- package/lib/components/Duration/Duration.d.ts +10 -0
- package/lib/components/Duration/Duration.js +29 -102
- package/lib/components/Duration/Duration.js.map +1 -0
- package/lib/components/Duration/durationUtils.js +22 -55
- package/lib/components/Duration/durationUtils.js.map +1 -0
- package/lib/components/Duration/formatDuration.js +17 -26
- package/lib/components/Duration/formatDuration.js.map +1 -0
- package/lib/components/Duration/formatDuration.spec.js +16 -38
- package/lib/components/Duration/formatDuration.spec.js.map +1 -0
- package/lib/components/Duration/getDurationFromValue.js +24 -49
- package/lib/components/Duration/getDurationFromValue.js.map +1 -0
- package/lib/components/FilterDescription/FilterDescription.js +4 -17
- package/lib/components/FilterDescription/FilterDescription.js.map +1 -0
- package/lib/components/FilterDescription/FilterDescription.spec.js +16 -21
- package/lib/components/FilterDescription/FilterDescription.spec.js.map +1 -0
- package/lib/components/Input/Input.d.ts +10 -0
- package/lib/components/Input/Input.js +14 -78
- package/lib/components/Input/Input.js.map +1 -0
- package/lib/components/Input/Input.spec.js +51 -83
- package/lib/components/Input/Input.spec.js.map +1 -0
- package/lib/components/InputNumber/InputNumber.d.ts +10 -0
- package/lib/components/InputNumber/InputNumber.js +14 -79
- package/lib/components/InputNumber/InputNumber.js.map +1 -0
- package/lib/components/InputNumber/InputNumber.spec.js +75 -112
- package/lib/components/InputNumber/InputNumber.spec.js.map +1 -0
- package/lib/components/InputNumber/InputNumberThousand.js +19 -55
- package/lib/components/InputNumber/InputNumberThousand.js.map +1 -0
- package/lib/components/Loop/Loop.d.ts +15 -0
- package/lib/components/Loop/Loop.js +49 -125
- package/lib/components/Loop/Loop.js.map +1 -0
- package/lib/components/Loop/constant.js +7 -7
- package/lib/components/Loop/constant.js.map +1 -0
- package/lib/components/LunaticComponents.d.ts +22 -0
- package/lib/components/LunaticComponents.js +72 -119
- package/lib/components/LunaticComponents.js.map +1 -0
- package/lib/components/PairwiseLinks/PairwiseLinks.js +42 -54
- package/lib/components/PairwiseLinks/PairwiseLinks.js.map +1 -0
- package/lib/components/Question/Question.js +16 -50
- package/lib/components/Question/Question.js.map +1 -0
- package/lib/components/Radio/Radio.d.ts +13 -0
- package/lib/components/Radio/Radio.js +8 -39
- package/lib/components/Radio/Radio.js.map +1 -0
- package/lib/components/RosterForLoop/RosterForLoop.js +53 -131
- package/lib/components/RosterForLoop/RosterForLoop.js.map +1 -0
- package/lib/components/RosterForLoop/RosterForLoop.spec.js +27 -45
- package/lib/components/RosterForLoop/RosterForLoop.spec.js.map +1 -0
- package/lib/components/Roundabout/CustomRoundabout.js +19 -66
- package/lib/components/Roundabout/CustomRoundabout.js.map +1 -0
- package/lib/components/Roundabout/Roundabout.js +15 -32
- package/lib/components/Roundabout/Roundabout.js.map +1 -0
- package/lib/components/Roundabout/RoundaboutItButton.js +37 -72
- package/lib/components/Roundabout/RoundaboutItButton.js.map +1 -0
- package/lib/components/Roundabout/RoundaboutItButton.spec.js +48 -101
- package/lib/components/Roundabout/RoundaboutItButton.spec.js.map +1 -0
- package/lib/components/Roundabout/RoundaboutRedirect.js +11 -21
- package/lib/components/Roundabout/RoundaboutRedirect.js.map +1 -0
- package/lib/components/Roundabout/extra.js +9 -44
- package/lib/components/Roundabout/extra.js.map +1 -0
- package/lib/components/Roundabout/redirect.spec.js +13 -17
- package/lib/components/Roundabout/redirect.spec.js.map +1 -0
- package/lib/components/Roundabout/roundabout.spec.js +49 -70
- package/lib/components/Roundabout/roundabout.spec.js.map +1 -0
- package/lib/components/Sequence/Sequence.d.ts +4 -0
- package/lib/components/Sequence/Sequence.js +8 -31
- package/lib/components/Sequence/Sequence.js.map +1 -0
- package/lib/components/Subsequence/Subsequence.d.ts +4 -0
- package/lib/components/Subsequence/Subsequence.js +7 -26
- package/lib/components/Subsequence/Subsequence.js.map +1 -0
- package/lib/components/Subsequence/Subsequence.spec.js +42 -59
- package/lib/components/Subsequence/Subsequence.spec.js.map +1 -0
- package/lib/components/Suggester/CustomSuggester.d.ts +31 -0
- package/lib/components/Suggester/CustomSuggester.js +15 -119
- package/lib/components/Suggester/CustomSuggester.js.map +1 -0
- package/lib/components/Suggester/Suggester.d.ts +2 -0
- package/lib/components/Suggester/Suggester.js +99 -136
- package/lib/components/Suggester/Suggester.js.map +1 -0
- package/lib/components/Suggester/SuggesterNotification.d.ts +9 -0
- package/lib/components/Suggester/SuggesterNotification.js +15 -59
- package/lib/components/Suggester/SuggesterNotification.js.map +1 -0
- package/lib/components/Suggester/SuggesterType.d.ts +5 -0
- package/lib/components/Suggester/SuggesterType.js +2 -5
- package/lib/components/Suggester/SuggesterType.js.map +1 -0
- package/lib/components/Suggester/useSuggestions.d.ts +17 -0
- package/lib/components/Suggester/useSuggestions.js +85 -0
- package/lib/components/Suggester/useSuggestions.js.map +1 -0
- package/lib/components/Summary/Summary.js +55 -105
- package/lib/components/Summary/Summary.js.map +1 -0
- package/lib/components/Switch/Switch.d.ts +20 -0
- package/lib/components/Switch/Switch.js +29 -105
- package/lib/components/Switch/Switch.js.map +1 -0
- package/lib/components/Table/Table.js +12 -65
- package/lib/components/Table/Table.js.map +1 -0
- package/lib/components/Text/Text.d.ts +3 -0
- package/lib/components/Text/Text.js +4 -0
- package/lib/components/Text/Text.js.map +1 -0
- package/lib/components/Textarea/Textarea.d.ts +10 -0
- package/lib/components/Textarea/Textarea.js +13 -78
- package/lib/components/Textarea/Textarea.js.map +1 -0
- package/lib/components/Textarea/Textarea.spec.js +31 -46
- package/lib/components/Textarea/Textarea.spec.js.map +1 -0
- package/lib/components/library.d.ts +106 -0
- package/lib/components/library.js +49 -52
- package/lib/components/library.js.map +1 -0
- package/lib/components/shared/Button/Button.d.ts +13 -0
- package/lib/components/shared/Button/Button.js +13 -44
- package/lib/components/shared/Button/Button.js.map +1 -0
- package/lib/components/shared/Button/Button.spec.js +51 -85
- package/lib/components/shared/Button/Button.spec.js.map +1 -0
- package/lib/components/shared/Button/IconButton.js +7 -32
- package/lib/components/shared/Button/IconButton.js.map +1 -0
- package/lib/components/shared/Button/IconButton.spec.js +53 -101
- package/lib/components/shared/Button/IconButton.spec.js.map +1 -0
- package/lib/components/shared/Checkbox/CheckboxOption.d.ts +15 -0
- package/lib/components/shared/Checkbox/CheckboxOption.js +24 -69
- package/lib/components/shared/Checkbox/CheckboxOption.js.map +1 -0
- package/lib/components/shared/Checkbox/CheckboxOption.spec.js +51 -68
- package/lib/components/shared/Checkbox/CheckboxOption.spec.js.map +1 -0
- package/lib/components/shared/Checkbox/getShortcutKey.js +3 -10
- package/lib/components/shared/Checkbox/getShortcutKey.js.map +1 -0
- package/lib/components/shared/Combobox/Combobox.d.ts +23 -0
- package/lib/components/shared/Combobox/Combobox.js +87 -199
- package/lib/components/shared/Combobox/Combobox.js.map +1 -0
- package/lib/components/shared/Combobox/Combobox.stories.js +42 -105
- package/lib/components/shared/Combobox/Combobox.stories.js.map +1 -0
- package/lib/components/shared/Combobox/ComboboxContainer.js +6 -27
- package/lib/components/shared/Combobox/ComboboxContainer.js.map +1 -0
- package/lib/components/shared/Combobox/ComboboxContainer.spec.js +24 -43
- package/lib/components/shared/Combobox/ComboboxContainer.spec.js.map +1 -0
- package/lib/components/shared/Combobox/ComboboxContent.js +33 -62
- package/lib/components/shared/Combobox/ComboboxContent.js.map +1 -0
- package/lib/components/shared/Combobox/ComboboxContentBox.js +8 -22
- package/lib/components/shared/Combobox/ComboboxContentBox.js.map +1 -0
- package/lib/components/shared/Combobox/ComboboxType.d.ts +51 -0
- package/lib/components/shared/Combobox/ComboboxType.js +2 -5
- package/lib/components/shared/Combobox/ComboboxType.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js +14 -41
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js +33 -63
- package/lib/components/shared/Combobox/Panel/ComboboxOption.spec.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js +30 -50
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js +18 -26
- package/lib/components/shared/Combobox/Panel/ComboboxOptionContainer.spec.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.d.ts +5 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.js +24 -41
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js +55 -108
- package/lib/components/shared/Combobox/Panel/ComboboxPanel.spec.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +9 -26
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js.map +1 -0
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js +31 -57
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.spec.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.d.ts +9 -0
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +22 -43
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js +52 -121
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.spec.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js +20 -56
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +28 -43
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js +26 -40
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.spec.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.js +14 -64
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.js.map +1 -0
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js +36 -68
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.spec.js.map +1 -0
- package/lib/components/shared/Combobox/constants.js +10 -15
- package/lib/components/shared/Combobox/constants.js.map +1 -0
- package/lib/components/shared/Combobox/index.js +2 -1
- package/lib/components/shared/Combobox/index.js.map +1 -0
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +19 -45
- package/lib/components/shared/ComponentErrors/ComponentErrors.js.map +1 -0
- package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js +40 -44
- package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js.map +1 -0
- package/lib/components/shared/ComponentWrapper.d.ts +25 -0
- package/lib/components/shared/ComponentWrapper.js +14 -53
- package/lib/components/shared/ComponentWrapper.js.map +1 -0
- package/lib/components/shared/Declarations/Declarations.js +13 -45
- package/lib/components/shared/Declarations/Declarations.js.map +1 -0
- package/lib/components/shared/Declarations/Declarations.spec.js +54 -77
- package/lib/components/shared/Declarations/Declarations.spec.js.map +1 -0
- package/lib/components/shared/Fieldset/Fieldset.js +25 -39
- package/lib/components/shared/Fieldset/Fieldset.js.map +1 -0
- package/lib/components/shared/Fieldset/Fieldset.spec.js +25 -37
- package/lib/components/shared/Fieldset/Fieldset.spec.js.map +1 -0
- package/lib/components/shared/HOC/slottableComponent.d.ts +107 -0
- package/lib/components/shared/HOC/slottableComponent.js +22 -45
- package/lib/components/shared/HOC/slottableComponent.js.map +1 -0
- package/lib/components/shared/Icons/checkbox-checked-icon.js +7 -35
- package/lib/components/shared/Icons/checkbox-checked-icon.js.map +1 -0
- package/lib/components/shared/Icons/checkbox-disabled-icon.d.ts +2 -0
- package/lib/components/shared/Icons/checkbox-disabled-icon.js +7 -0
- package/lib/components/shared/Icons/checkbox-disabled-icon.js.map +1 -0
- package/lib/components/shared/Icons/checkbox-unchecked-icon.js +7 -35
- package/lib/components/shared/Icons/checkbox-unchecked-icon.js.map +1 -0
- package/lib/components/shared/Icons/closed-icon.js +7 -32
- package/lib/components/shared/Icons/closed-icon.js.map +1 -0
- package/lib/components/shared/Icons/cross-icon.js +7 -32
- package/lib/components/shared/Icons/cross-icon.js.map +1 -0
- package/lib/components/shared/Icons/icon-props.js +2 -5
- package/lib/components/shared/Icons/icon-props.js.map +1 -0
- package/lib/components/shared/Icons/index.js +11 -75
- package/lib/components/shared/Icons/index.js.map +1 -0
- package/lib/components/shared/Icons/load-icon.js +7 -32
- package/lib/components/shared/Icons/load-icon.js.map +1 -0
- package/lib/components/shared/Icons/lunatic-icon.js +7 -17
- package/lib/components/shared/Icons/lunatic-icon.js.map +1 -0
- package/lib/components/shared/Icons/network-icon.js +7 -32
- package/lib/components/shared/Icons/network-icon.js.map +1 -0
- package/lib/components/shared/Icons/on-drag-icon.js +7 -32
- package/lib/components/shared/Icons/on-drag-icon.js.map +1 -0
- package/lib/components/shared/Icons/opened-icon.js +7 -32
- package/lib/components/shared/Icons/opened-icon.js.map +1 -0
- package/lib/components/shared/Icons/radio-checked-icon.js +7 -36
- package/lib/components/shared/Icons/radio-checked-icon.js.map +1 -0
- package/lib/components/shared/Icons/radio-unchecked-icon.js +7 -35
- package/lib/components/shared/Icons/radio-unchecked-icon.js.map +1 -0
- package/lib/components/shared/Label/Label.js +12 -31
- package/lib/components/shared/Label/Label.js.map +1 -0
- package/lib/components/shared/Label/Label.spec.js +19 -45
- package/lib/components/shared/Label/Label.spec.js.map +1 -0
- package/lib/components/shared/LabelDescription.js +11 -21
- package/lib/components/shared/LabelDescription.js.map +1 -0
- package/lib/components/shared/MDLabel/MDLabel.d.ts +5 -0
- package/lib/components/shared/MDLabel/MDLabel.js +19 -44
- package/lib/components/shared/MDLabel/MDLabel.js.map +1 -0
- package/lib/components/shared/MDLabel/MDLabel.spec.js +105 -101
- package/lib/components/shared/MDLabel/MDLabel.spec.js.map +1 -0
- package/lib/components/shared/MDLabel/MarkdownLink.d.ts +8 -0
- package/lib/components/shared/MDLabel/MarkdownLink.js +20 -0
- package/lib/components/shared/MDLabel/MarkdownLink.js.map +1 -0
- package/lib/components/shared/MDLabel/RouterLink.js +6 -26
- package/lib/components/shared/MDLabel/RouterLink.js.map +1 -0
- package/lib/components/shared/MDLabel/generateUniqueId.js +2 -1
- package/lib/components/shared/MDLabel/generateUniqueId.js.map +1 -0
- package/lib/components/shared/Missing/Missing.d.ts +14 -0
- package/lib/components/shared/Missing/Missing.js +48 -81
- package/lib/components/shared/Missing/Missing.js.map +1 -0
- package/lib/components/shared/Missing/Missing.spec.js +43 -79
- package/lib/components/shared/Missing/Missing.spec.js.map +1 -0
- package/lib/components/shared/ModalControls/ModalControls.d.ts +10 -0
- package/lib/components/shared/ModalControls/ModalControls.js +27 -81
- package/lib/components/shared/ModalControls/ModalControls.js.map +1 -0
- package/lib/components/shared/ModalControls/ModalControls.spec.js +61 -69
- package/lib/components/shared/ModalControls/ModalControls.spec.js.map +1 -0
- package/lib/components/shared/Notification.js +8 -28
- package/lib/components/shared/Notification.js.map +1 -0
- package/lib/components/shared/Radio/RadioGroup.d.ts +9 -0
- package/lib/components/shared/Radio/RadioGroup.js +19 -63
- package/lib/components/shared/Radio/RadioGroup.js.map +1 -0
- package/lib/components/shared/Radio/RadioOption.js +34 -113
- package/lib/components/shared/Radio/RadioOption.js.map +1 -0
- package/lib/components/shared/Radio/RadioOption.spec.js +45 -86
- package/lib/components/shared/Radio/RadioOption.spec.js.map +1 -0
- package/lib/components/shared/Table/Table.js +8 -21
- package/lib/components/shared/Table/Table.js.map +1 -0
- package/lib/components/shared/Table/Table.spec.js +15 -23
- package/lib/components/shared/Table/Table.spec.js.map +1 -0
- package/lib/components/shared/Table/TableHeader.d.ts +2 -0
- package/lib/components/shared/Table/TableHeader.js +14 -38
- package/lib/components/shared/Table/TableHeader.js.map +1 -0
- package/lib/components/shared/Table/Tbody.d.ts +6 -0
- package/lib/components/shared/Table/Tbody.js +7 -20
- package/lib/components/shared/Table/Tbody.js.map +1 -0
- package/lib/components/shared/Table/Tbody.spec.js +22 -32
- package/lib/components/shared/Table/Tbody.spec.js.map +1 -0
- package/lib/components/shared/Table/Td.d.ts +10 -0
- package/lib/components/shared/Table/Td.js +7 -26
- package/lib/components/shared/Table/Td.js.map +1 -0
- package/lib/components/shared/Table/Td.spec.js +20 -40
- package/lib/components/shared/Table/Td.spec.js.map +1 -0
- package/lib/components/shared/Table/Th.d.ts +10 -0
- package/lib/components/shared/Table/Th.js +7 -25
- package/lib/components/shared/Table/Th.js.map +1 -0
- package/lib/components/shared/Table/Th.spec.js +25 -44
- package/lib/components/shared/Table/Th.spec.js.map +1 -0
- package/lib/components/shared/Table/Thead.d.ts +6 -0
- package/lib/components/shared/Table/Thead.js +8 -20
- package/lib/components/shared/Table/Thead.js.map +1 -0
- package/lib/components/shared/Table/Thead.spec.js +12 -29
- package/lib/components/shared/Table/Thead.spec.js.map +1 -0
- package/lib/components/shared/Table/Tr.d.ts +7 -0
- package/lib/components/shared/Table/Tr.js +7 -21
- package/lib/components/shared/Table/Tr.js.map +1 -0
- package/lib/components/shared/Table/Tr.spec.js +19 -39
- package/lib/components/shared/Table/Tr.spec.js.map +1 -0
- package/lib/components/shared/Table/index.js +8 -54
- package/lib/components/shared/Table/index.js.map +1 -0
- package/lib/components/type.d.ts +296 -0
- package/lib/components/type.js +2 -5
- package/lib/components/type.js.map +1 -0
- package/lib/constants/component-types.js +2 -7
- package/lib/constants/component-types.js.map +1 -0
- package/lib/constants/declarations.js +10 -18
- package/lib/constants/declarations.js.map +1 -0
- package/lib/constants/event-types.js +11 -17
- package/lib/constants/event-types.js.map +1 -0
- package/lib/constants/index.js +6 -60
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/indexedDBStore.js +17 -22
- package/lib/constants/indexedDBStore.js.map +1 -0
- package/lib/constants/supported-preferences.js +9 -11
- package/lib/constants/supported-preferences.js.map +1 -0
- package/lib/constants/value-types.js +6 -11
- package/lib/constants/value-types.js.map +1 -0
- package/lib/constants/variable-types.js +4 -9
- package/lib/constants/variable-types.js.map +1 -0
- package/lib/hooks/use-auto-focus.js +16 -23
- package/lib/hooks/use-auto-focus.js.map +1 -0
- package/lib/hooks/use-track-changes.d.ts +17 -0
- package/lib/hooks/use-track-changes.js +37 -46
- package/lib/hooks/use-track-changes.js.map +1 -0
- package/lib/hooks/use-why-render.js +10 -16
- package/lib/hooks/use-why-render.js.map +1 -0
- package/lib/hooks/useDebounce.d.ts +4 -0
- package/lib/hooks/useDebounce.js +24 -0
- package/lib/hooks/useDebounce.js.map +1 -0
- package/lib/hooks/useDocumentEvent.js +16 -21
- package/lib/hooks/useDocumentEvent.js.map +1 -0
- package/lib/hooks/useKeyboardKey.d.ts +4 -0
- package/lib/hooks/useKeyboardKey.js +25 -0
- package/lib/hooks/useKeyboardKey.js.map +1 -0
- package/lib/hooks/useListKeyboardHandler.js +15 -21
- package/lib/hooks/useListKeyboardHandler.js.map +1 -0
- package/lib/hooks/useRefSync.js +10 -0
- package/lib/hooks/useRefSync.js.map +1 -0
- package/lib/i18n/build-dictionary.js +17 -35
- package/lib/i18n/build-dictionary.js.map +1 -0
- package/lib/i18n/dictionary.d.ts +57 -0
- package/lib/i18n/dictionary.js +26 -36
- package/lib/i18n/dictionary.js.map +1 -0
- package/lib/i18n/index.d.ts +7 -0
- package/lib/i18n/index.js +13 -26
- package/lib/i18n/index.js.map +1 -0
- package/lib/i18n/inputNumberProps.js +6 -17
- package/lib/i18n/inputNumberProps.js.map +1 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +10 -41
- package/lib/index.js.map +1 -0
- package/lib/main.css +77 -28
- package/lib/main.css.map +1 -1
- package/lib/tests/setup.d.ts +1 -0
- package/lib/tests/setup.js +18 -0
- package/lib/tests/setup.js.map +1 -0
- package/lib/tests/utils/lunatic.d.ts +19 -0
- package/lib/tests/utils/lunatic.js +31 -0
- package/lib/tests/utils/lunatic.js.map +1 -0
- package/lib/tests/utils/timer.d.ts +1 -0
- package/lib/tests/utils/timer.js +4 -0
- package/lib/tests/utils/timer.js.map +1 -0
- package/lib/type.source.d.ts +382 -0
- package/lib/type.source.js +8 -0
- package/lib/type.source.js.map +1 -0
- package/lib/type.utils.js +2 -5
- package/lib/type.utils.js.map +1 -0
- package/lib/use-lunatic/actions.d.ts +49 -0
- package/lib/use-lunatic/actions.js +21 -47
- package/lib/use-lunatic/actions.js.map +1 -0
- package/lib/use-lunatic/commons/check-loops.d.ts +30 -0
- package/lib/use-lunatic/commons/check-loops.js +55 -90
- package/lib/use-lunatic/commons/check-loops.js.map +1 -0
- package/lib/use-lunatic/commons/check-pager.d.ts +5 -0
- package/lib/use-lunatic/commons/check-pager.js +14 -20
- package/lib/use-lunatic/commons/check-pager.js.map +1 -0
- package/lib/use-lunatic/commons/compile-controls.d.ts +9 -0
- package/lib/use-lunatic/commons/compile-controls.js +117 -143
- package/lib/use-lunatic/commons/compile-controls.js.map +1 -0
- package/lib/use-lunatic/commons/component.js +19 -19
- package/lib/use-lunatic/commons/component.js.map +1 -0
- package/lib/use-lunatic/commons/compose.d.ts +3 -0
- package/lib/use-lunatic/commons/compose.js +6 -18
- package/lib/use-lunatic/commons/compose.js.map +1 -0
- package/lib/use-lunatic/commons/create-map-pages.d.ts +6 -0
- package/lib/use-lunatic/commons/create-map-pages.js +40 -62
- package/lib/use-lunatic/commons/create-map-pages.js.map +1 -0
- package/lib/use-lunatic/commons/execute-condition-filter.d.ts +3 -0
- package/lib/use-lunatic/commons/execute-condition-filter.js +9 -19
- package/lib/use-lunatic/commons/execute-condition-filter.js.map +1 -0
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +34 -0
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +129 -110
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -0
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +81 -38
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js.map +1 -0
- package/lib/use-lunatic/commons/fill-components/fill-components.d.ts +25 -0
- package/lib/use-lunatic/commons/fill-components/fill-components.js +31 -47
- package/lib/use-lunatic/commons/fill-components/fill-components.js.map +1 -0
- package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +12 -21
- package/lib/use-lunatic/commons/get-compatible-vtl-expression.js.map +1 -0
- package/lib/use-lunatic/commons/get-components-from-state.d.ts +5 -0
- package/lib/use-lunatic/commons/get-components-from-state.js +16 -40
- package/lib/use-lunatic/commons/get-components-from-state.js.map +1 -0
- package/lib/use-lunatic/commons/index.d.ts +6 -0
- package/lib/use-lunatic/commons/index.js +7 -81
- package/lib/use-lunatic/commons/index.js.map +1 -0
- package/lib/use-lunatic/commons/is-First-last-page.d.ts +6 -0
- package/lib/use-lunatic/commons/is-First-last-page.js +6 -15
- package/lib/use-lunatic/commons/is-First-last-page.js.map +1 -0
- package/lib/use-lunatic/commons/is-paginated-loop.js +3 -8
- package/lib/use-lunatic/commons/is-paginated-loop.js.map +1 -0
- package/lib/use-lunatic/commons/is-roundabout.js +5 -10
- package/lib/use-lunatic/commons/is-roundabout.js.map +1 -0
- package/lib/use-lunatic/commons/page-navigation.d.ts +7 -0
- package/lib/use-lunatic/commons/page-navigation.js +87 -103
- package/lib/use-lunatic/commons/page-navigation.js.map +1 -0
- package/lib/use-lunatic/commons/page-navigation.spec.js +134 -127
- package/lib/use-lunatic/commons/page-navigation.spec.js.map +1 -0
- package/lib/use-lunatic/commons/page-tag.d.ts +23 -0
- package/lib/use-lunatic/commons/page-tag.js +60 -65
- package/lib/use-lunatic/commons/page-tag.js.map +1 -0
- package/lib/use-lunatic/commons/page-tag.spec.js +38 -0
- package/lib/use-lunatic/commons/page-tag.spec.js.map +1 -0
- package/lib/use-lunatic/commons/page.d.ts +11 -0
- package/lib/use-lunatic/commons/page.js +25 -41
- package/lib/use-lunatic/commons/page.js.map +1 -0
- package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +7 -0
- package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +44 -50
- package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -0
- package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +7 -0
- package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js +21 -42
- package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js.map +1 -0
- package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +7 -0
- package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +51 -74
- package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -0
- package/lib/use-lunatic/commons/variables/get-questionnaire-data.d.ts +3 -0
- package/lib/use-lunatic/commons/variables/get-questionnaire-data.js +51 -68
- package/lib/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -0
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.d.ts +88 -0
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +284 -364
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -0
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +354 -382
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -0
- package/lib/use-lunatic/hooks/use-loop-variables.d.ts +5 -0
- package/lib/use-lunatic/hooks/use-loop-variables.js +14 -23
- package/lib/use-lunatic/hooks/use-loop-variables.js.map +1 -0
- package/lib/use-lunatic/hooks/use-page-has-response.d.ts +6 -0
- package/lib/use-lunatic/hooks/use-page-has-response.js +66 -107
- package/lib/use-lunatic/hooks/use-page-has-response.js.map +1 -0
- package/lib/use-lunatic/hooks/useOverview.d.ts +16 -0
- package/lib/use-lunatic/hooks/useOverview.js +91 -0
- package/lib/use-lunatic/hooks/useOverview.js.map +1 -0
- package/lib/use-lunatic/index.js +2 -13
- package/lib/use-lunatic/index.js.map +1 -0
- package/lib/use-lunatic/lunatic-context.js +38 -66
- package/lib/use-lunatic/lunatic-context.js.map +1 -0
- package/lib/use-lunatic/props/getComponentTypeProps.d.ts +314 -0
- package/lib/use-lunatic/props/getComponentTypeProps.js +164 -0
- package/lib/use-lunatic/props/getComponentTypeProps.js.map +1 -0
- package/lib/use-lunatic/props/propIterations.d.ts +7 -0
- package/lib/use-lunatic/props/propIterations.js +26 -0
- package/lib/use-lunatic/props/propIterations.js.map +1 -0
- package/lib/use-lunatic/props/propMissingResponse.d.ts +9 -0
- package/lib/use-lunatic/props/propMissingResponse.js +13 -0
- package/lib/use-lunatic/props/propMissingResponse.js.map +1 -0
- package/lib/use-lunatic/props/propValue.d.ts +6 -0
- package/lib/use-lunatic/props/propValue.js +28 -0
- package/lib/use-lunatic/props/propValue.js.map +1 -0
- package/lib/use-lunatic/props/propValue.spec.js +54 -0
- package/lib/use-lunatic/props/propValue.spec.js.map +1 -0
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.d.ts +5 -0
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +42 -52
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js.map +1 -0
- package/lib/use-lunatic/reducer/commons/index.js +3 -28
- package/lib/use-lunatic/reducer/commons/index.js.map +1 -0
- package/lib/use-lunatic/reducer/commons/resize-array-variable.js +16 -26
- package/lib/use-lunatic/reducer/commons/resize-array-variable.js.map +1 -0
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.d.ts +6 -0
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +11 -28
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js.map +1 -0
- package/lib/use-lunatic/reducer/controls/check-base-control.d.ts +2 -0
- package/lib/use-lunatic/reducer/controls/check-base-control.js +35 -39
- package/lib/use-lunatic/reducer/controls/check-base-control.js.map +1 -0
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.d.ts +9 -0
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.js +16 -46
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.js.map +1 -0
- package/lib/use-lunatic/reducer/overview/overviewOnInit.d.ts +6 -0
- package/lib/use-lunatic/reducer/overview/overviewOnInit.js +49 -0
- package/lib/use-lunatic/reducer/overview/overviewOnInit.js.map +1 -0
- package/lib/use-lunatic/reducer/reduce-go-next-page.d.ts +2 -0
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +32 -52
- package/lib/use-lunatic/reducer/reduce-go-next-page.js.map +1 -0
- package/lib/use-lunatic/reducer/reduce-go-previous-page.d.ts +2 -0
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +28 -46
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js.map +1 -0
- package/lib/use-lunatic/reducer/reduce-go-to-page.d.ts +3 -0
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +52 -68
- package/lib/use-lunatic/reducer/reduce-go-to-page.js.map +1 -0
- package/lib/use-lunatic/reducer/reduce-handle-changes.d.ts +6 -0
- package/lib/use-lunatic/reducer/reduce-handle-changes.js +24 -0
- package/lib/use-lunatic/reducer/reduce-handle-changes.js.map +1 -0
- package/lib/use-lunatic/reducer/reducer.d.ts +3 -0
- package/lib/use-lunatic/reducer/reducer.js +19 -35
- package/lib/use-lunatic/reducer/reducer.js.map +1 -0
- package/lib/use-lunatic/reducer/reducerInitializer.d.ts +11 -0
- package/lib/use-lunatic/reducer/reducerInitializer.js +121 -0
- package/lib/use-lunatic/reducer/reducerInitializer.js.map +1 -0
- package/lib/use-lunatic/replace-component-sequence.d.ts +9 -0
- package/lib/use-lunatic/replace-component-sequence.js +12 -23
- package/lib/use-lunatic/replace-component-sequence.js.map +1 -0
- package/lib/use-lunatic/type.d.ts +165 -0
- package/lib/use-lunatic/type.js +2 -5
- package/lib/use-lunatic/type.js.map +1 -0
- package/lib/use-lunatic/use-lunatic.d.ts +56 -0
- package/lib/use-lunatic/use-lunatic.js +135 -214
- package/lib/use-lunatic/use-lunatic.js.map +1 -0
- package/lib/utils/array.d.ts +28 -0
- package/lib/utils/array.js +63 -102
- package/lib/utils/array.js.map +1 -0
- package/lib/utils/array.spec.js +39 -32
- package/lib/utils/array.spec.js.map +1 -0
- package/lib/utils/constants/alphabet.js +2 -7
- package/lib/utils/constants/alphabet.js.map +1 -0
- package/lib/utils/constants/features.d.ts +4 -0
- package/lib/utils/constants/features.js +5 -9
- package/lib/utils/constants/features.js.map +1 -0
- package/lib/utils/constants/index.js +6 -60
- package/lib/utils/constants/index.js.map +1 -0
- package/lib/utils/constants/links.js +3 -8
- package/lib/utils/constants/links.js.map +1 -0
- package/lib/utils/constants/missing.js +3 -8
- package/lib/utils/constants/missing.js.map +1 -0
- package/lib/utils/constants/variable-status.js +6 -11
- package/lib/utils/constants/variable-status.js.map +1 -0
- package/lib/utils/constants/variable-types.js +2 -7
- package/lib/utils/constants/variable-types.js.map +1 -0
- package/lib/utils/dom.js +16 -20
- package/lib/utils/dom.js.map +1 -0
- package/lib/utils/env.js +13 -17
- package/lib/utils/env.js.map +1 -0
- package/lib/utils/function.d.ts +5 -0
- package/lib/utils/function.js +20 -7
- package/lib/utils/function.js.map +1 -0
- package/lib/utils/is-element.js +5 -9
- package/lib/utils/is-element.js.map +1 -0
- package/lib/utils/is-object.js +4 -10
- package/lib/utils/is-object.js.map +1 -0
- package/lib/utils/logger.js +11 -39
- package/lib/utils/logger.js.map +1 -0
- package/lib/utils/number.js +23 -33
- package/lib/utils/number.js.map +1 -0
- package/lib/utils/number.spec.js +10 -11
- package/lib/utils/number.spec.js.map +1 -0
- package/lib/utils/object.d.ts +6 -0
- package/lib/utils/object.js +20 -31
- package/lib/utils/object.js.map +1 -0
- package/lib/utils/search/SearchInterface.d.ts +12 -0
- package/lib/utils/search/SearchInterface.js +2 -0
- package/lib/utils/search/SearchInterface.js.map +1 -0
- package/lib/utils/search/SearchMinisearch.d.ts +11 -0
- package/lib/utils/search/SearchMinisearch.js +40 -0
- package/lib/utils/search/SearchMinisearch.js.map +1 -0
- package/lib/utils/search/SuggestersDatabase.d.ts +15 -0
- package/lib/utils/search/SuggestersDatabase.js +37 -0
- package/lib/utils/search/SuggestersDatabase.js.map +1 -0
- package/lib/utils/search/melauto.d.ts +15 -0
- package/lib/utils/search/melauto.js +41 -0
- package/lib/utils/search/melauto.js.map +1 -0
- package/lib/utils/search/tokenizer.d.ts +14 -0
- package/lib/utils/search/tokenizer.js +57 -0
- package/lib/utils/search/tokenizer.js.map +1 -0
- package/lib/utils/to-number.js +10 -15
- package/lib/utils/to-number.js.map +1 -0
- package/lib/utils/variables.d.ts +13 -0
- package/lib/utils/variables.js +16 -23
- package/lib/utils/variables.js.map +1 -0
- package/lib/utils/variables.spec.js +75 -66
- package/lib/utils/variables.spec.js.map +1 -0
- package/lib/utils/vtl.js +76 -83
- package/lib/utils/vtl.js.map +1 -0
- package/package.json +54 -107
- package/README.fr.md +0 -186
- package/lib/components/CheckboxGroup/CheckboxGroup.scss +0 -13
- package/lib/components/CheckboxOne/CheckboxOne.scss +0 -19
- package/lib/components/Datepicker/Datepicker.scss +0 -19
- package/lib/components/Datepicker/__snapshots__/Datepicker.spec.tsx.snap +0 -166
- package/lib/components/Dropdown/Dropdown.scss +0 -38
- package/lib/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap +0 -85
- package/lib/components/Dropdown/helpers.js +0 -94
- package/lib/components/Duration/Duration.scss +0 -9
- package/lib/components/Input/Input.scss +0 -42
- package/lib/components/Input/__snapshots__/Input.spec.tsx.snap +0 -36
- package/lib/components/InputNumber/InputNumber.scss +0 -11
- package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +0 -40
- package/lib/components/Radio/Radio.scss +0 -19
- package/lib/components/RosterForLoop/RosterForLoop.scss +0 -39
- package/lib/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +0 -95
- package/lib/components/Roundabout/Roundabout.scss +0 -13
- package/lib/components/Sequence/Sequence.scss +0 -10
- package/lib/components/Suggester/Suggester.scss +0 -170
- package/lib/components/Suggester/SuggesterStatus.js +0 -46
- package/lib/components/Suggester/helpers.js +0 -50
- package/lib/components/Switch/switch.scss +0 -45
- package/lib/components/Textarea/Textarea.scss +0 -8
- package/lib/components/Textarea/__snapshots__/Textarea.spec.tsx.snap +0 -32
- package/lib/components/index.scss +0 -154
- package/lib/components/shared/Button/Button.scss +0 -24
- package/lib/components/shared/Button/IconButton.scss +0 -33
- package/lib/components/shared/Button/__snapshots__/Button.spec.tsx.snap +0 -80
- package/lib/components/shared/Checkbox/CheckboxOption.scss +0 -19
- package/lib/components/shared/Combobox/Combobox.scss +0 -206
- package/lib/components/shared/Combobox/Selection/__snapshots__/ComboboxSelection.spec.tsx.snap +0 -76
- package/lib/components/shared/ComponentErrors/ComponentErrors.scss +0 -5
- package/lib/components/shared/Declarations/Declarations.scss +0 -42
- package/lib/components/shared/Fieldset/Fieldset.scss +0 -5
- package/lib/components/shared/Icons/lunatic-icon.scss +0 -4
- package/lib/components/shared/Label/Label.scss +0 -6
- package/lib/components/shared/MDLabel/MDLabelLink.js +0 -75
- package/lib/components/shared/Missing/Missing.scss +0 -27
- package/lib/components/shared/ModalControls/ModalControls.scss +0 -48
- package/lib/components/shared/Radio/RadioGroup.scss +0 -21
- package/lib/components/shared/Table/Table.scss +0 -27
- package/lib/components/shared/VariableStatus/VariableStatus.js +0 -72
- package/lib/components/shared/VariableStatus/VariableStatus.scss +0 -39
- package/lib/components/shared/VariableStatus/VariableStatus.spec.js +0 -24
- package/lib/components/shared/VariableStatus/icons/edited.png +0 -0
- package/lib/components/shared/VariableStatus/icons/forced.png +0 -0
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +0 -84
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.scss +0 -8
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.spec.js +0 -89
- package/lib/components/shared/suggester-loader-widget/dragger/index.js +0 -13
- package/lib/components/shared/suggester-loader-widget/index.js +0 -13
- package/lib/components/shared/suggester-loader-widget/is-network/index.js +0 -13
- package/lib/components/shared/suggester-loader-widget/is-network/is-network.js +0 -52
- package/lib/components/shared/suggester-loader-widget/is-network/is-network.spec.js +0 -34
- package/lib/components/shared/suggester-loader-widget/is-network/use-online-status.js +0 -45
- package/lib/components/shared/suggester-loader-widget/is-network/use-online-status.spec.js +0 -40
- package/lib/components/shared/suggester-loader-widget/loader-row.js +0 -103
- package/lib/components/shared/suggester-loader-widget/loader.js +0 -132
- package/lib/components/shared/suggester-loader-widget/progress.js +0 -40
- package/lib/components/shared/suggester-loader-widget/tools/action-tool.js +0 -29
- package/lib/components/shared/suggester-loader-widget/tools/index.js +0 -20
- package/lib/components/shared/suggester-loader-widget/tools/tools.js +0 -17
- package/lib/components/shared/suggester-loader-widget/widget-container.js +0 -43
- package/lib/components/shared/suggester-loader-widget/widget.js +0 -133
- package/lib/components/shared/suggester-loader-widget/widget.scss +0 -176
- package/lib/css/components/Button.scss +0 -24
- package/lib/css/components/CheckboxGroup.scss +0 -13
- package/lib/css/components/CheckboxOne.scss +0 -19
- package/lib/css/components/CheckboxOption.scss +0 -19
- package/lib/css/components/Combobox.scss +0 -206
- package/lib/css/components/ComponentErrors.scss +0 -5
- package/lib/css/components/Datepicker.scss +0 -19
- package/lib/css/components/Declarations.scss +0 -42
- package/lib/css/components/Dragger.scss +0 -8
- package/lib/css/components/Dropdown.scss +0 -38
- package/lib/css/components/Duration.scss +0 -9
- package/lib/css/components/Fieldset.scss +0 -5
- package/lib/css/components/IconButton.scss +0 -38
- package/lib/css/components/Input.scss +0 -42
- package/lib/css/components/InputNumber.scss +0 -11
- package/lib/css/components/Label.scss +0 -6
- package/lib/css/components/Missing.scss +0 -27
- package/lib/css/components/ModalControls.scss +0 -48
- package/lib/css/components/RadioGroup.scss +0 -21
- package/lib/css/components/RosterForLoop.scss +0 -39
- package/lib/css/components/Roundabout.scss +0 -13
- package/lib/css/components/Sequence.scss +0 -10
- package/lib/css/components/Suggester.scss +0 -170
- package/lib/css/components/SuggesterWidget.scss +0 -176
- package/lib/css/components/Table.scss +0 -27
- package/lib/css/components/Textarea.scss +0 -8
- package/lib/css/components/VariableStatus.scss +0 -36
- package/lib/css/main.scss +0 -181
- package/lib/hooks/use-ref-sync.js +0 -15
- package/lib/hooks/useSuggesterInfo.js +0 -69
- package/lib/insee.d.js +0 -1
- package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +0 -11
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +0 -11
- package/lib/src/components/CheckboxGroup/CustomCheckboxGroup.d.ts +0 -13
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +0 -5
- package/lib/src/components/Datepicker/Datepicker.d.ts +0 -10
- package/lib/src/components/Dropdown/Dropdown.d.ts +0 -10
- package/lib/src/components/Dropdown/helpers.d.ts +0 -19
- package/lib/src/components/Duration/Duration.d.ts +0 -10
- package/lib/src/components/Input/Input.d.ts +0 -10
- package/lib/src/components/InputNumber/InputNumber.d.ts +0 -10
- package/lib/src/components/Loop/Loop.d.ts +0 -15
- package/lib/src/components/LunaticComponents.d.ts +0 -25
- package/lib/src/components/Radio/Radio.d.ts +0 -12
- package/lib/src/components/Sequence/Sequence.d.ts +0 -2
- package/lib/src/components/Subsequence/Subsequence.d.ts +0 -2
- package/lib/src/components/Suggester/CustomSuggester.d.ts +0 -29
- package/lib/src/components/Suggester/Suggester.d.ts +0 -2
- package/lib/src/components/Suggester/SuggesterNotification.d.ts +0 -10
- package/lib/src/components/Suggester/SuggesterStatus.d.ts +0 -23
- package/lib/src/components/Suggester/SuggesterType.d.ts +0 -6
- package/lib/src/components/Suggester/helpers.d.ts +0 -6
- package/lib/src/components/Switch/Switch.d.ts +0 -19
- package/lib/src/components/Textarea/Textarea.d.ts +0 -10
- package/lib/src/components/library.d.ts +0 -94
- package/lib/src/components/shared/Button/Button.d.ts +0 -11
- package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +0 -14
- package/lib/src/components/shared/Combobox/Combobox.d.ts +0 -21
- package/lib/src/components/shared/Combobox/ComboboxType.d.ts +0 -50
- package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +0 -5
- package/lib/src/components/shared/Combobox/Selection/ComboboxClearButton.d.ts +0 -9
- package/lib/src/components/shared/ComponentWrapper.d.ts +0 -26
- package/lib/src/components/shared/HOC/slottableComponent.d.ts +0 -105
- package/lib/src/components/shared/MDLabel/MDLabel.d.ts +0 -7
- package/lib/src/components/shared/MDLabel/MDLabelLink.d.ts +0 -8
- package/lib/src/components/shared/Missing/Missing.d.ts +0 -13
- package/lib/src/components/shared/ModalControls/ModalControls.d.ts +0 -10
- package/lib/src/components/shared/Radio/RadioGroup.d.ts +0 -22
- package/lib/src/components/shared/Table/TableHeader.d.ts +0 -2
- package/lib/src/components/shared/Table/Tbody.d.ts +0 -7
- package/lib/src/components/shared/Table/Td.d.ts +0 -11
- package/lib/src/components/shared/Table/Th.d.ts +0 -11
- package/lib/src/components/shared/Table/Thead.d.ts +0 -7
- package/lib/src/components/shared/Table/Tr.d.ts +0 -8
- package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +0 -6
- package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +0 -16
- package/lib/src/components/shared/suggester-loader-widget/dragger/index.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/index.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/is-network/index.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/is-network/is-network.d.ts +0 -6
- package/lib/src/components/shared/suggester-loader-widget/is-network/is-network.spec.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/is-network/use-online-status.d.ts +0 -2
- package/lib/src/components/shared/suggester-loader-widget/is-network/use-online-status.spec.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/loader-row.d.ts +0 -11
- package/lib/src/components/shared/suggester-loader-widget/loader.d.ts +0 -13
- package/lib/src/components/shared/suggester-loader-widget/progress.d.ts +0 -7
- package/lib/src/components/shared/suggester-loader-widget/tools/action-tool.d.ts +0 -9
- package/lib/src/components/shared/suggester-loader-widget/tools/index.d.ts +0 -2
- package/lib/src/components/shared/suggester-loader-widget/tools/tools.d.ts +0 -3
- package/lib/src/components/shared/suggester-loader-widget/widget-container.d.ts +0 -8
- package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +0 -15
- package/lib/src/components/type.d.ts +0 -275
- package/lib/src/hooks/use-track-changes.d.ts +0 -17
- package/lib/src/hooks/useSuggesterInfo.d.ts +0 -9
- package/lib/src/i18n/dictionary.d.ts +0 -41
- package/lib/src/i18n/index.d.ts +0 -7
- package/lib/src/index.d.ts +0 -13
- package/lib/src/use-lunatic/actions.d.ts +0 -117
- package/lib/src/use-lunatic/commons/check-loops.d.ts +0 -3
- package/lib/src/use-lunatic/commons/check-pager.d.ts +0 -5
- package/lib/src/use-lunatic/commons/compile-controls.d.ts +0 -9
- package/lib/src/use-lunatic/commons/compose.d.ts +0 -3
- package/lib/src/use-lunatic/commons/create-map-pages.d.ts +0 -7
- package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +0 -3
- package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +0 -15
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +0 -419
- package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +0 -5
- package/lib/src/use-lunatic/commons/fill-components/fill-component-value.spec.d.ts +0 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +0 -23
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -827
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +0 -122
- package/lib/src/use-lunatic/commons/fill-components/fill-management.d.ts +0 -6
- package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +0 -12
- package/lib/src/use-lunatic/commons/fill-components/fill-pagination.d.ts +0 -9
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +0 -1200
- package/lib/src/use-lunatic/commons/fill-components/index.d.ts +0 -1
- package/lib/src/use-lunatic/commons/get-components-from-state.d.ts +0 -6
- package/lib/src/use-lunatic/commons/getOverview.d.ts +0 -19
- package/lib/src/use-lunatic/commons/index.d.ts +0 -9
- package/lib/src/use-lunatic/commons/is-First-last-page.d.ts +0 -6
- package/lib/src/use-lunatic/commons/page-navigation.d.ts +0 -7
- package/lib/src/use-lunatic/commons/page-tag.d.ts +0 -12
- package/lib/src/use-lunatic/commons/page.d.ts +0 -11
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +0 -3
- package/lib/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +0 -7
- package/lib/src/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +0 -7
- package/lib/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +0 -7
- package/lib/src/use-lunatic/commons/variables/get-questionnaire-data.d.ts +0 -4
- package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +0 -86
- package/lib/src/use-lunatic/hooks/use-loop-variables.d.ts +0 -5
- package/lib/src/use-lunatic/hooks/use-page-has-response.d.ts +0 -6
- package/lib/src/use-lunatic/initial-state.d.ts +0 -3
- package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.d.ts +0 -5
- package/lib/src/use-lunatic/reducer/commons/validate-condition-filter.d.ts +0 -6
- package/lib/src/use-lunatic/reducer/controls/check-base-control.d.ts +0 -2
- package/lib/src/use-lunatic/reducer/controls/check-roundabout-control.d.ts +0 -10
- package/lib/src/use-lunatic/reducer/index.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/overview/overview-on-change.d.ts +0 -2
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +0 -107
- package/lib/src/use-lunatic/reducer/reduce-go-next-page.d.ts +0 -2
- package/lib/src/use-lunatic/reducer/reduce-go-previous-page.d.ts +0 -3
- package/lib/src/use-lunatic/reducer/reduce-go-to-page.d.ts +0 -4
- package/lib/src/use-lunatic/reducer/reduce-handle-change.d.ts +0 -6
- package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +0 -4
- package/lib/src/use-lunatic/reducer/reduce-on-set-waiting.d.ts +0 -4
- package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +0 -3
- package/lib/src/use-lunatic/reducer/reducer.d.ts +0 -4
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +0 -29
- package/lib/src/use-lunatic/type-source.d.ts +0 -304
- package/lib/src/use-lunatic/type.d.ts +0 -148
- package/lib/src/use-lunatic/use-lunatic.d.ts +0 -589
- package/lib/src/use-lunatic/use-lunatic.test.d.ts +0 -1
- package/lib/src/use-lunatic/use-suggesters.d.ts +0 -20
- package/lib/src/utils/array.d.ts +0 -28
- package/lib/src/utils/constants/features.d.ts +0 -3
- package/lib/src/utils/function.d.ts +0 -4
- package/lib/src/utils/idb-tools/clear-store.d.ts +0 -2
- package/lib/src/utils/idb-tools/create-db-opener.d.ts +0 -13
- package/lib/src/utils/idb-tools/create-open-db.d.ts +0 -2
- package/lib/src/utils/idb-tools/get-entity.d.ts +0 -2
- package/lib/src/utils/idb-tools/get-idb.d.ts +0 -2
- package/lib/src/utils/idb-tools/idb-bulk-insert.d.ts +0 -16
- package/lib/src/utils/idb-tools/idb-types.d.ts +0 -16
- package/lib/src/utils/idb-tools/index.d.ts +0 -7
- package/lib/src/utils/idb-tools/insert-entity.d.ts +0 -2
- package/lib/src/utils/idb-tools/open-db.d.ts +0 -2
- package/lib/src/utils/idb-tools/open-or-create-db.d.ts +0 -2
- package/lib/src/utils/object.d.ts +0 -5
- package/lib/src/utils/store-tools/clear-store-data.d.ts +0 -2
- package/lib/src/utils/store-tools/clear-store-info.d.ts +0 -2
- package/lib/src/utils/store-tools/create/create.d.ts +0 -4
- package/lib/src/utils/store-tools/create/index.d.ts +0 -2
- package/lib/src/utils/store-tools/create/update-store-info.d.ts +0 -2
- package/lib/src/utils/store-tools/get-store-count.d.ts +0 -2
- package/lib/src/utils/store-tools/index.d.ts +0 -7
- package/lib/src/utils/store-tools/initStore.d.ts +0 -2
- package/lib/src/utils/store-tools/open-or-create-store.d.ts +0 -2
- package/lib/src/utils/store-tools/use-store-index.d.ts +0 -4
- package/lib/src/utils/suggester-workers/append-to-index/append.d.ts +0 -6
- package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +0 -7
- package/lib/src/utils/suggester-workers/append-to-index/index.d.ts +0 -2
- package/lib/src/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.d.ts +0 -2
- package/lib/src/utils/suggester-workers/create-worker.d.ts +0 -1
- package/lib/src/utils/suggester-workers/searching/compute-score.d.ts +0 -3
- package/lib/src/utils/suggester-workers/searching/meloto-order.d.ts +0 -25
- package/lib/src/utils/suggester-workers/worker-path.d.ts +0 -6
- package/lib/src/utils/variables.d.ts +0 -13
- package/lib/stories/behaviour/cleaning/cleaning.stories.js +0 -90
- package/lib/stories/behaviour/cleaning/source-loop.json +0 -130
- package/lib/stories/behaviour/cleaning/source.json +0 -151
- package/lib/stories/behaviour/controls/V2_Controles_BouclesLiees2_PasPageFin.json +0 -709
- package/lib/stories/behaviour/controls/boucles-n.json +0 -202
- package/lib/stories/behaviour/controls/controls-externes.json +0 -75
- package/lib/stories/behaviour/controls/controls-externes.stories.js +0 -60
- package/lib/stories/behaviour/controls/controls.stories.js +0 -98
- package/lib/stories/behaviour/controls/loop.json +0 -130
- package/lib/stories/behaviour/controls/simple-numeric.json +0 -1966
- package/lib/stories/behaviour/controls/simple.json +0 -666
- package/lib/stories/behaviour/missing/missing.stories.js +0 -90
- package/lib/stories/behaviour/missing/source.json +0 -822
- package/lib/stories/behaviour/others/V2_DeclarationsSimples.json +0 -964
- package/lib/stories/behaviour/others/V2_MinMaxSum_Boucles.json +0 -509
- package/lib/stories/behaviour/others/V2_QuestSimple_Boucles.json +0 -4354
- package/lib/stories/behaviour/others/V2_TCMRallyeGames.json +0 -2892
- package/lib/stories/behaviour/others/test-dylan.json +0 -558
- package/lib/stories/behaviour/others/test.stories.js +0 -87
- package/lib/stories/behaviour/paste/source.json +0 -44949
- package/lib/stories/behaviour/paste/test.stories.js +0 -83
- package/lib/stories/behaviour/performance/performance.stories.js +0 -47
- package/lib/stories/behaviour/performance/source.json +0 -172
- package/lib/stories/behaviour/resizing/resizing.stories.js +0 -90
- package/lib/stories/behaviour/resizing/source-resizing-cleaning.json +0 -171
- package/lib/stories/behaviour/resizing/source.json +0 -789
- package/lib/stories/behaviour/slots.stories.js +0 -64
- package/lib/stories/checkbox-boolean/checkboxBoolean.stories.js +0 -32
- package/lib/stories/checkbox-boolean/source.json +0 -58
- package/lib/stories/checkbox-group/checkbox-group.stories.js +0 -46
- package/lib/stories/checkbox-group/source.json +0 -402
- package/lib/stories/checkbox-group/sourceLoop.json +0 -83
- package/lib/stories/checkbox-one/checkboxOne.stories.js +0 -41
- package/lib/stories/checkbox-one/source.json +0 -52
- package/lib/stories/date-picker/data.json +0 -3
- package/lib/stories/date-picker/datepicker.stories.js +0 -38
- package/lib/stories/date-picker/source.json +0 -65
- package/lib/stories/declaration/data.json +0 -1
- package/lib/stories/declaration/input.stories.js +0 -34
- package/lib/stories/declaration/source.json +0 -84
- package/lib/stories/disabled/data.json +0 -32
- package/lib/stories/disabled/disabled.stories.js +0 -34
- package/lib/stories/disabled/source.json +0 -382
- package/lib/stories/dropdown/data.json +0 -16
- package/lib/stories/dropdown/dropdown.stories.js +0 -37
- package/lib/stories/dropdown/source.json +0 -141
- package/lib/stories/duration/duration.stories.js +0 -38
- package/lib/stories/duration/mois.json +0 -32
- package/lib/stories/duration/time.json +0 -32
- package/lib/stories/filter-description/filter-description.stories.js +0 -47
- package/lib/stories/filter-description/source-options.json +0 -81
- package/lib/stories/filter-description/source.json +0 -12
- package/lib/stories/input/data.json +0 -1
- package/lib/stories/input/input.stories.js +0 -34
- package/lib/stories/input/source.json +0 -35
- package/lib/stories/input-number/input-number.stories.js +0 -32
- package/lib/stories/input-number/source.json +0 -31
- package/lib/stories/loop/loop.stories.js +0 -46
- package/lib/stories/loop/roster-for-loop.stories.js +0 -126
- package/lib/stories/loop/source-bloc.json +0 -85
- package/lib/stories/loop/source-paginated.json +0 -113
- package/lib/stories/loop/source-roster.json +0 -114
- package/lib/stories/loop/source-with-header.json +0 -127
- package/lib/stories/markdown/markdown.stories.js +0 -32
- package/lib/stories/markdown/source.json +0 -40
- package/lib/stories/overview/data.json +0 -1
- package/lib/stories/overview/overview.stories.js +0 -35
- package/lib/stories/overview/source.json +0 -28
- package/lib/stories/overview/sourceWithHierarchy.json +0 -6298
- package/lib/stories/pairwise/data.json +0 -12
- package/lib/stories/pairwise/pairwise-links.stories.js +0 -134
- package/lib/stories/pairwise/source.json +0 -266
- package/lib/stories/question/question.stories.js +0 -28
- package/lib/stories/question/source.json +0 -220
- package/lib/stories/questionnaires/logement/data.json +0 -2686
- package/lib/stories/questionnaires/logement/logement.stories.js +0 -72
- package/lib/stories/questionnaires/logement/source-sequence.json +0 -34181
- package/lib/stories/questionnaires/logement/source-sum.json +0 -31806
- package/lib/stories/questionnaires/logement/source.json +0 -34191
- package/lib/stories/questionnaires/recensement/data.json +0 -12
- package/lib/stories/questionnaires/recensement/recensement.stories.js +0 -50
- package/lib/stories/questionnaires/recensement/source.json +0 -15190
- package/lib/stories/questionnaires/rp/data.json +0 -5
- package/lib/stories/questionnaires/rp/rp.stories.js +0 -35
- package/lib/stories/questionnaires/rp/source.json +0 -262
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +0 -547
- package/lib/stories/questionnaires/simpsons/source.json +0 -6296
- package/lib/stories/questionnaires2023/bySequence/source.json +0 -5054
- package/lib/stories/questionnaires2023/bySequence/ticWeb.stories.js +0 -62
- package/lib/stories/questionnaires2023/famille/famille.stories.js +0 -62
- package/lib/stories/questionnaires2023/famille/source.json +0 -50344
- package/lib/stories/questionnaires2023/simpsons/simpsons.stories.js +0 -62
- package/lib/stories/questionnaires2023/simpsons/source.json +0 -5176
- package/lib/stories/questionnaires2023/ticTel/source.json +0 -12888
- package/lib/stories/questionnaires2023/ticTel/ticWeb.stories.js +0 -62
- package/lib/stories/questionnaires2023/ticWeb/source.json +0 -11331
- package/lib/stories/questionnaires2023/ticWeb/ticWeb.stories.js +0 -62
- package/lib/stories/radio/radio.stories.js +0 -41
- package/lib/stories/radio/source.json +0 -51
- package/lib/stories/roundabout/data1.json +0 -25
- package/lib/stories/roundabout/data2.json +0 -25
- package/lib/stories/roundabout/roundabout.stories.js +0 -42
- package/lib/stories/roundabout/source.json +0 -286
- package/lib/stories/sequence/sequence.stories.js +0 -38
- package/lib/stories/sequence/source-declarations.json +0 -40
- package/lib/stories/sequence/source.json +0 -17
- package/lib/stories/suggester/SuggesterNotification.js +0 -26
- package/lib/stories/suggester/fakeReferentiel.json +0 -12
- package/lib/stories/suggester/source-option-responses.json +0 -145
- package/lib/stories/suggester/source.json +0 -398
- package/lib/stories/suggester/suggester-workers.stories.js +0 -249
- package/lib/stories/suggester/suggester.stories.js +0 -81
- package/lib/stories/summary/data.json +0 -32
- package/lib/stories/summary/source.json +0 -368
- package/lib/stories/summary/summary.stories.js +0 -35
- package/lib/stories/switch/README.md +0 -31
- package/lib/stories/switch/data-forced.json +0 -48
- package/lib/stories/switch/source.json +0 -80
- package/lib/stories/switch/switch.stories.js +0 -32
- package/lib/stories/table/data-roster.json +0 -1
- package/lib/stories/table/data.json +0 -1
- package/lib/stories/table/source-colspan.json +0 -314
- package/lib/stories/table/source-roster.json +0 -513
- package/lib/stories/table/source.json +0 -31
- package/lib/stories/table/table-dynamique.json +0 -67
- package/lib/stories/table/table.stories.js +0 -54
- package/lib/stories/textarea/data.json +0 -1
- package/lib/stories/textarea/source.json +0 -35
- package/lib/stories/textarea/textarea.stories.js +0 -34
- package/lib/stories/utils/custom-lunatic.scss +0 -28
- package/lib/stories/utils/default-arg-types.js +0 -21
- package/lib/stories/utils/options.js +0 -28
- package/lib/stories/utils/orchestrator.js +0 -319
- package/lib/stories/utils/orchestrator.scss +0 -54
- package/lib/stories/utils/overview.js +0 -53
- package/lib/stories/utils/overview.scss +0 -30
- package/lib/stories/utils/referentiel.js +0 -33
- package/lib/stories/utils/waiting/index.js +0 -13
- package/lib/stories/utils/waiting/preloader.svg +0 -1
- package/lib/stories/utils/waiting/waiting.js +0 -32
- package/lib/stories/utils/waiting/waiting.scss +0 -21
- package/lib/test.d.js +0 -3
- package/lib/use-lunatic/commons/fill-components/fill-component-required.js +0 -23
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js +0 -46
- package/lib/use-lunatic/commons/fill-components/fill-component-value.spec.js +0 -67
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +0 -38
- package/lib/use-lunatic/commons/fill-components/fill-iterations.js +0 -45
- package/lib/use-lunatic/commons/fill-components/fill-management.js +0 -22
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +0 -29
- package/lib/use-lunatic/commons/fill-components/fill-pagination.js +0 -23
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -162
- package/lib/use-lunatic/commons/fill-components/index.js +0 -13
- package/lib/use-lunatic/commons/getOverview.js +0 -39
- package/lib/use-lunatic/commons/use-components-from-state.js +0 -28
- package/lib/use-lunatic/initial-state.js +0 -54
- package/lib/use-lunatic/reducer/index.js +0 -13
- package/lib/use-lunatic/reducer/overview/overview-on-change.js +0 -48
- package/lib/use-lunatic/reducer/overview/overview-on-init.js +0 -106
- package/lib/use-lunatic/reducer/reduce-handle-change.js +0 -29
- package/lib/use-lunatic/reducer/reduce-on-init.js +0 -148
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +0 -20
- package/lib/use-lunatic/reducer/reduce-update-state.js +0 -22
- package/lib/use-lunatic/type-source.js +0 -5
- package/lib/use-lunatic/use-lunatic.test.js +0 -352
- package/lib/use-lunatic/use-suggesters.js +0 -178
- package/lib/utils/idb-tools/clear-store.js +0 -39
- package/lib/utils/idb-tools/create-db-opener.js +0 -53
- package/lib/utils/idb-tools/create-open-db.js +0 -28
- package/lib/utils/idb-tools/get-entity.js +0 -20
- package/lib/utils/idb-tools/get-idb.js +0 -12
- package/lib/utils/idb-tools/idb-bulk-insert.js +0 -126
- package/lib/utils/idb-tools/idb-types.js +0 -5
- package/lib/utils/idb-tools/index.js +0 -64
- package/lib/utils/idb-tools/insert-entity.js +0 -20
- package/lib/utils/idb-tools/open-db.js +0 -24
- package/lib/utils/idb-tools/open-or-create-db.js +0 -43
- package/lib/utils/store-tools/clear-store-data.js +0 -32
- package/lib/utils/store-tools/clear-store-info.js +0 -32
- package/lib/utils/store-tools/create/create.js +0 -50
- package/lib/utils/store-tools/create/index.js +0 -20
- package/lib/utils/store-tools/create/update-store-info.js +0 -26
- package/lib/utils/store-tools/get-store-count.js +0 -23
- package/lib/utils/store-tools/index.js +0 -54
- package/lib/utils/store-tools/initStore.js +0 -57
- package/lib/utils/store-tools/open-or-create-store.js +0 -51
- package/lib/utils/store-tools/use-store-index.js +0 -57
- package/lib/utils/suggester-workers/append-to-index/append.js +0 -78
- package/lib/utils/suggester-workers/append-to-index/append.worker.js +0 -32
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +0 -70
- package/lib/utils/suggester-workers/append-to-index/index.js +0 -20
- package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +0 -87
- package/lib/utils/suggester-workers/append-to-index/store-messages.js +0 -44
- package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +0 -53
- package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +0 -76
- package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +0 -35
- package/lib/utils/suggester-workers/commons-tokenizer/filters/compose-filters.js +0 -20
- package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +0 -35
- package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.spec.js +0 -15
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.js +0 -18
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.spec.js +0 -17
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.js +0 -24
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.spec.js +0 -24
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.js +0 -14
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.spec.js +0 -24
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.js +0 -22
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.spec.js +0 -17
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +0 -52
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +0 -13
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.js +0 -15
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.spec.js +0 -15
- package/lib/utils/suggester-workers/commons-tokenizer/filters/index.js +0 -20
- package/lib/utils/suggester-workers/commons-tokenizer/filters/stop-words.js +0 -8
- package/lib/utils/suggester-workers/commons-tokenizer/get-regexp-from-pattern.js +0 -13
- package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.js +0 -22
- package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.spec.js +0 -11
- package/lib/utils/suggester-workers/commons-tokenizer/index.js +0 -69
- package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.js +0 -17
- package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.spec.js +0 -10
- package/lib/utils/suggester-workers/commons-tokenizer/soft-tokenizer.js +0 -11
- package/lib/utils/suggester-workers/create-worker.js +0 -60
- package/lib/utils/suggester-workers/find-best-label/find-best-label.js +0 -62
- package/lib/utils/suggester-workers/find-best-label/find-best-label.worker.js +0 -53
- package/lib/utils/suggester-workers/find-best-label/index.js +0 -1
- package/lib/utils/suggester-workers/find-best-label/tokenize.js +0 -44
- package/lib/utils/suggester-workers/find-best-label/tokenize.spec.js +0 -25
- package/lib/utils/suggester-workers/searching/compute-score.js +0 -30
- package/lib/utils/suggester-workers/searching/get-db.js +0 -47
- package/lib/utils/suggester-workers/searching/index.js +0 -13
- package/lib/utils/suggester-workers/searching/meloto-order.js +0 -54
- package/lib/utils/suggester-workers/searching/meloto-order.spec.js +0 -67
- package/lib/utils/suggester-workers/searching/order/create-alphanumeric-orderer.js +0 -27
- package/lib/utils/suggester-workers/searching/order/index.js +0 -24
- package/lib/utils/suggester-workers/searching/query-parser/index.js +0 -20
- package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.js +0 -11
- package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.spec.js +0 -27
- package/lib/utils/suggester-workers/searching/query-parser/query-parser-tokenized.js +0 -34
- package/lib/utils/suggester-workers/searching/resolve-query-parser.js +0 -56
- package/lib/utils/suggester-workers/searching/search-in-index.js +0 -21
- package/lib/utils/suggester-workers/searching/searching.js +0 -150
- package/lib/utils/suggester-workers/searching/searching.worker.js +0 -26
- package/lib/utils/suggester-workers/worker-path.js +0 -29
- package/scripts/build/add-workers-to-public.js +0 -44
- package/scripts/build/workers-paths.js +0 -53
- package/workers-release/lunatic-append-worker-0.3.0.js +0 -2
- package/workers-release/lunatic-append-worker-0.3.0.js.LICENSE.txt +0 -24
- package/workers-release/lunatic-label-worker-0.3.0.js +0 -2
- package/workers-release/lunatic-label-worker-0.3.0.js.LICENSE.txt +0 -13
- package/workers-release/lunatic-search-worker-0.3.0.js +0 -2
- package/workers-release/lunatic-search-worker-0.3.0.js.LICENSE.txt +0 -24
- /package/lib/{src/components → components}/CheckboxBoolean/CheckboxBoolean.spec.d.ts +0 -0
- /package/lib/{src/components → components}/CheckboxGroup/CustomCheckboxGroup.spec.d.ts +0 -0
- /package/lib/{src/components → components}/CheckboxOne/CheckboxOne.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Datepicker/Datepicker.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Datepicker/DatepickerField.d.ts +0 -0
- /package/lib/{src/components → components}/Dropdown/Dropdown.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Dropdown/renderer/SimpleLabelRenderer.d.ts +0 -0
- /package/lib/{src/components → components}/Dropdown/renderer/SimpleOptionRenderer.d.ts +0 -0
- /package/lib/{src/components → components}/Duration/durationUtils.d.ts +0 -0
- /package/lib/{src/components → components}/Duration/formatDuration.d.ts +0 -0
- /package/lib/{src/components → components}/Duration/formatDuration.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Duration/getDurationFromValue.d.ts +0 -0
- /package/lib/{src/components → components}/FilterDescription/FilterDescription.d.ts +0 -0
- /package/lib/{src/components → components}/FilterDescription/FilterDescription.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Input/Input.spec.d.ts +0 -0
- /package/lib/{src/components → components}/InputNumber/InputNumber.spec.d.ts +0 -0
- /package/lib/{src/components → components}/InputNumber/InputNumberThousand.d.ts +0 -0
- /package/lib/{src/components → components}/Loop/constant.d.ts +0 -0
- /package/lib/{src/components → components}/PairwiseLinks/PairwiseLinks.d.ts +0 -0
- /package/lib/{src/components → components}/Question/Question.d.ts +0 -0
- /package/lib/{src/components → components}/RosterForLoop/RosterForLoop.d.ts +0 -0
- /package/lib/{src/components → components}/RosterForLoop/RosterForLoop.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/CustomRoundabout.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/Roundabout.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/RoundaboutItButton.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/RoundaboutItButton.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/RoundaboutRedirect.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/extra.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/redirect.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Roundabout/roundabout.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Subsequence/Subsequence.spec.d.ts +0 -0
- /package/lib/{src/components → components}/Summary/Summary.d.ts +0 -0
- /package/lib/{src/components → components}/Table/Table.d.ts +0 -0
- /package/lib/{src/components → components}/Textarea/Textarea.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Button/Button.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Button/IconButton.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Button/IconButton.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Checkbox/CheckboxOption.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Checkbox/getShortcutKey.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Combobox.stories.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/ComboboxContainer.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/ComboboxContainer.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/ComboboxContent.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/ComboboxContentBox.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOption.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOption.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOptionContainer.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxPanel.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxPanelContainer.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxClearButton.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxInput.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxSelection.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/Selection/ComboboxSelection.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/constants.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Combobox/index.d.ts +0 -0
- /package/lib/{src/components → components}/shared/ComponentErrors/ComponentErrors.d.ts +0 -0
- /package/lib/{src/components → components}/shared/ComponentErrors/ComponentErrors.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Declarations/Declarations.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Declarations/Declarations.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Fieldset/Fieldset.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Fieldset/Fieldset.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/checkbox-checked-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/checkbox-unchecked-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/closed-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/cross-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/icon-props.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/index.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/load-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/lunatic-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/network-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/on-drag-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/opened-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/radio-checked-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Icons/radio-unchecked-icon.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Label/Label.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Label/Label.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/LabelDescription.d.ts +0 -0
- /package/lib/{src/components → components}/shared/MDLabel/MDLabel.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/MDLabel/RouterLink.d.ts +0 -0
- /package/lib/{src/components → components}/shared/MDLabel/generateUniqueId.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Missing/Missing.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/ModalControls/ModalControls.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Notification.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Radio/RadioOption.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Radio/RadioOption.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Table.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Table.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Tbody.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Td.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Th.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Thead.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/Tr.spec.d.ts +0 -0
- /package/lib/{src/components → components}/shared/Table/index.d.ts +0 -0
- /package/lib/{src/constants → constants}/component-types.d.ts +0 -0
- /package/lib/{src/constants → constants}/declarations.d.ts +0 -0
- /package/lib/{src/constants → constants}/event-types.d.ts +0 -0
- /package/lib/{src/constants → constants}/index.d.ts +0 -0
- /package/lib/{src/constants → constants}/indexedDBStore.d.ts +0 -0
- /package/lib/{src/constants → constants}/supported-preferences.d.ts +0 -0
- /package/lib/{src/constants → constants}/value-types.d.ts +0 -0
- /package/lib/{src/constants → constants}/variable-types.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/use-auto-focus.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/use-why-render.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/useDocumentEvent.d.ts +0 -0
- /package/lib/{src/hooks → hooks}/useListKeyboardHandler.d.ts +0 -0
- /package/lib/{src/hooks/use-ref-sync.d.ts → hooks/useRefSync.d.ts} +0 -0
- /package/lib/{src/i18n → i18n}/build-dictionary.d.ts +0 -0
- /package/lib/{src/i18n → i18n}/inputNumberProps.d.ts +0 -0
- /package/lib/{components/Suggester/icons → icons}/alert-icon.svg +0 -0
- /package/lib/{components/Suggester/icons → icons}/wait-icon.svg +0 -0
- /package/lib/{components/Suggester/icons → icons}/warn-icon.svg +0 -0
- /package/lib/{src/type.utils.d.ts → type.utils.d.ts} +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/component.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/fill-components/fill-component-expressions.spec.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/get-compatible-vtl-expression.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/is-paginated-loop.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/is-roundabout.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/page-navigation.spec.d.ts +0 -0
- /package/lib/{src/components/shared/VariableStatus/VariableStatus.spec.d.ts → use-lunatic/commons/page-tag.spec.d.ts} +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/commons/variables/lunatic-variables-store.spec.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/index.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/lunatic-context.d.ts +0 -0
- /package/lib/{src/components/shared/suggester-loader-widget/dragger/dragger.spec.d.ts → use-lunatic/props/propValue.spec.d.ts} +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/reducer/commons/index.d.ts +0 -0
- /package/lib/{src/use-lunatic → use-lunatic}/reducer/commons/resize-array-variable.d.ts +0 -0
- /package/lib/{src/utils → utils}/array.spec.d.ts +0 -0
- /package/lib/{src/utils → utils}/constants/alphabet.d.ts +0 -0
- /package/lib/{src/utils → utils}/constants/index.d.ts +0 -0
- /package/lib/{src/utils → utils}/constants/links.d.ts +0 -0
- /package/lib/{src/utils → utils}/constants/missing.d.ts +0 -0
- /package/lib/{src/utils → utils}/constants/variable-status.d.ts +0 -0
- /package/lib/{src/utils → utils}/constants/variable-types.d.ts +0 -0
- /package/lib/{src/utils → utils}/dom.d.ts +0 -0
- /package/lib/{src/utils → utils}/env.d.ts +0 -0
- /package/lib/{src/utils → utils}/is-element.d.ts +0 -0
- /package/lib/{src/utils → utils}/is-object.d.ts +0 -0
- /package/lib/{src/utils → utils}/logger.d.ts +0 -0
- /package/lib/{src/utils → utils}/number.d.ts +0 -0
- /package/lib/{src/utils → utils}/number.spec.d.ts +0 -0
- /package/lib/{src/utils → utils}/to-number.d.ts +0 -0
- /package/lib/{src/utils → utils}/variables.spec.d.ts +0 -0
- /package/lib/{src/utils → utils}/vtl.d.ts +0 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LunaticComponentDefinition } from '../type';
|
|
3
|
+
import { type DeepTranslateExpression } from '../commons/fill-components/fill-component-expressions';
|
|
4
|
+
import { fillComponent } from '../commons/fill-components/fill-components';
|
|
5
|
+
type State = Parameters<typeof fillComponent>[1];
|
|
6
|
+
/**
|
|
7
|
+
* Get component specific props (RoundAbout for instance)
|
|
8
|
+
*/
|
|
9
|
+
export declare function getComponentTypeProps(component: DeepTranslateExpression<LunaticComponentDefinition>, state: State): {
|
|
10
|
+
expressions: {};
|
|
11
|
+
page: number;
|
|
12
|
+
} | {
|
|
13
|
+
components: import("../..").LunaticComponentProps[];
|
|
14
|
+
} | {
|
|
15
|
+
getComponents: (x: number, y: number) => import("../..").LunaticComponentProps[];
|
|
16
|
+
} | {
|
|
17
|
+
body: ((import("../../components/type").LunaticBaseProps<string> & {
|
|
18
|
+
maxLength?: number | undefined;
|
|
19
|
+
value: string | null;
|
|
20
|
+
response: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
componentType?: "Input" | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
conditionFilter?: boolean | undefined;
|
|
26
|
+
}) | (import("../../components/type").LunaticBaseProps<string> & {
|
|
27
|
+
cols?: number | undefined;
|
|
28
|
+
placeHolder?: string | undefined;
|
|
29
|
+
maxLength?: number | undefined;
|
|
30
|
+
rows?: number | undefined;
|
|
31
|
+
response: {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
componentType?: "Textarea" | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
conditionFilter?: boolean | undefined;
|
|
37
|
+
}) | (Pick<import("../../components/type").LunaticBaseProps<string>, "description" | "declarations" | "id" | "label" | "style"> & {
|
|
38
|
+
componentType?: "Sequence" | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
conditionFilter?: boolean | undefined;
|
|
41
|
+
}) | (Pick<import("../../components/type").LunaticBaseProps<string>, "description" | "declarations" | "id" | "label"> & {
|
|
42
|
+
componentType?: "Subsequence" | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
conditionFilter?: boolean | undefined;
|
|
45
|
+
}) | (import("../../components/type").LunaticBaseProps<string> & {
|
|
46
|
+
iterations: number;
|
|
47
|
+
goToPage: (page: {
|
|
48
|
+
page: number | import("../type").PageTag;
|
|
49
|
+
iteration?: number | undefined;
|
|
50
|
+
nbIterations?: number | undefined;
|
|
51
|
+
subPage?: number | undefined;
|
|
52
|
+
}) => void;
|
|
53
|
+
page: number;
|
|
54
|
+
locked?: boolean | undefined;
|
|
55
|
+
expressions: {
|
|
56
|
+
unnecessary?: boolean[] | undefined;
|
|
57
|
+
complete?: boolean[] | undefined;
|
|
58
|
+
partial?: boolean[] | undefined;
|
|
59
|
+
label?: string[] | undefined;
|
|
60
|
+
};
|
|
61
|
+
componentType?: "Roundabout" | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
conditionFilter?: boolean | undefined;
|
|
64
|
+
}) | (import("../../components/type").LunaticBaseProps<unknown> & {
|
|
65
|
+
lines: {
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
};
|
|
69
|
+
iterations: number;
|
|
70
|
+
getComponents: (n: number) => import("../..").LunaticComponentProps<keyof import("../../components/type").ComponentPropsByType>[];
|
|
71
|
+
executeExpression: <T extends unknown = unknown>(expression: import("../../type.source").VTLExpression, args?: {
|
|
72
|
+
iteration?: number | number[] | undefined;
|
|
73
|
+
bindingDependencies?: string[] | undefined;
|
|
74
|
+
deps?: string[] | undefined;
|
|
75
|
+
} | undefined) => T;
|
|
76
|
+
value: Record<string, unknown[]>;
|
|
77
|
+
header?: {
|
|
78
|
+
label: import("react").ReactNode;
|
|
79
|
+
}[] | undefined;
|
|
80
|
+
paginatedLoop?: boolean | undefined;
|
|
81
|
+
componentType?: "Loop" | undefined;
|
|
82
|
+
} & {
|
|
83
|
+
conditionFilter?: boolean | undefined;
|
|
84
|
+
}) | (import("../../components/type").LunaticBaseProps<unknown> & {
|
|
85
|
+
lines: {
|
|
86
|
+
min: number;
|
|
87
|
+
max: number;
|
|
88
|
+
};
|
|
89
|
+
iterations: number;
|
|
90
|
+
getComponents: (n: number) => import("../..").LunaticComponentProps<keyof import("../../components/type").ComponentPropsByType>[];
|
|
91
|
+
executeExpression: <T extends unknown = unknown>(expression: import("../../type.source").VTLExpression, args?: {
|
|
92
|
+
iteration?: number | number[] | undefined;
|
|
93
|
+
bindingDependencies?: string[] | undefined;
|
|
94
|
+
deps?: string[] | undefined;
|
|
95
|
+
} | undefined) => T;
|
|
96
|
+
value: Record<string, unknown[]>;
|
|
97
|
+
header?: {
|
|
98
|
+
label: import("react").ReactNode;
|
|
99
|
+
rowspan?: number | undefined;
|
|
100
|
+
colspan?: number | undefined;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
paginatedLoop?: boolean | undefined;
|
|
103
|
+
componentType?: "RosterForLoop" | undefined;
|
|
104
|
+
} & {
|
|
105
|
+
conditionFilter?: boolean | undefined;
|
|
106
|
+
}) | (import("../../components/type").LunaticBaseProps<unknown> & {
|
|
107
|
+
value: Record<string, unknown>;
|
|
108
|
+
header: {
|
|
109
|
+
label: import("react").ReactNode;
|
|
110
|
+
rowspan?: number | undefined;
|
|
111
|
+
colspan?: number | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
body: (import("../..").LunaticComponentProps<keyof import("../../components/type").ComponentPropsByType> & {
|
|
114
|
+
colspan?: number | undefined;
|
|
115
|
+
rowspan?: number | undefined;
|
|
116
|
+
})[][];
|
|
117
|
+
executeExpression: <T extends unknown = unknown>(expression: import("../../type.source").VTLExpression, args?: {
|
|
118
|
+
iteration?: number | number[] | undefined;
|
|
119
|
+
bindingDependencies?: string[] | undefined;
|
|
120
|
+
deps?: string[] | undefined;
|
|
121
|
+
} | undefined) => T;
|
|
122
|
+
iteration: number | undefined;
|
|
123
|
+
componentType?: "Table" | undefined;
|
|
124
|
+
} & {
|
|
125
|
+
conditionFilter?: boolean | undefined;
|
|
126
|
+
}) | (import("../../components/type").LunaticBaseProps<number | null> & {
|
|
127
|
+
min?: number | undefined;
|
|
128
|
+
max?: number | undefined;
|
|
129
|
+
decimals?: number | undefined;
|
|
130
|
+
unit?: string | undefined;
|
|
131
|
+
response: {
|
|
132
|
+
name: string;
|
|
133
|
+
};
|
|
134
|
+
componentType?: "InputNumber" | undefined;
|
|
135
|
+
} & {
|
|
136
|
+
conditionFilter?: boolean | undefined;
|
|
137
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
138
|
+
format: "PnYnM" | "PTnHnM";
|
|
139
|
+
response: {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
componentType?: "Duration" | undefined;
|
|
143
|
+
} & {
|
|
144
|
+
conditionFilter?: boolean | undefined;
|
|
145
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
146
|
+
dateFormat: "YYYY-MM-DD" | "YYYY" | "YYYY-MM";
|
|
147
|
+
min?: string | undefined;
|
|
148
|
+
max?: string | undefined;
|
|
149
|
+
response: {
|
|
150
|
+
name: string;
|
|
151
|
+
};
|
|
152
|
+
componentType?: "Datepicker" | undefined;
|
|
153
|
+
} & {
|
|
154
|
+
conditionFilter?: boolean | undefined;
|
|
155
|
+
}) | (import("../../components/type").LunaticBaseProps<Record<string, boolean | null>> & {
|
|
156
|
+
responses: {
|
|
157
|
+
id: string;
|
|
158
|
+
label: import("react").ReactNode;
|
|
159
|
+
description?: import("react").ReactNode;
|
|
160
|
+
response: {
|
|
161
|
+
name: string;
|
|
162
|
+
};
|
|
163
|
+
}[];
|
|
164
|
+
componentType?: "CheckboxGroup" | undefined;
|
|
165
|
+
} & {
|
|
166
|
+
conditionFilter?: boolean | undefined;
|
|
167
|
+
}) | (import("../../components/type").LunaticBaseProps<boolean> & {
|
|
168
|
+
response: {
|
|
169
|
+
name: string;
|
|
170
|
+
};
|
|
171
|
+
componentType?: "CheckboxBoolean" | undefined;
|
|
172
|
+
} & {
|
|
173
|
+
conditionFilter?: boolean | undefined;
|
|
174
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
175
|
+
options: {
|
|
176
|
+
description?: import("react").ReactNode;
|
|
177
|
+
label: import("react").ReactNode;
|
|
178
|
+
value: string;
|
|
179
|
+
}[];
|
|
180
|
+
checkboxStyle?: boolean | undefined;
|
|
181
|
+
response: {
|
|
182
|
+
name: string;
|
|
183
|
+
};
|
|
184
|
+
componentType?: "Radio" | undefined;
|
|
185
|
+
} & {
|
|
186
|
+
conditionFilter?: boolean | undefined;
|
|
187
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
188
|
+
options: {
|
|
189
|
+
description?: import("react").ReactNode;
|
|
190
|
+
label: import("react").ReactNode;
|
|
191
|
+
value: string;
|
|
192
|
+
}[];
|
|
193
|
+
response: {
|
|
194
|
+
name: string;
|
|
195
|
+
};
|
|
196
|
+
componentType?: "Dropdown" | undefined;
|
|
197
|
+
} & {
|
|
198
|
+
conditionFilter?: boolean | undefined;
|
|
199
|
+
}) | (Pick<import("../../components/type").LunaticBaseProps<unknown>, "description" | "declarations" | "id" | "label" | "errors" | "disabled" | "readOnly"> & {
|
|
200
|
+
components: import("../..").LunaticComponentProps<keyof import("../../components/type").ComponentPropsByType>[];
|
|
201
|
+
componentType?: "Question" | undefined;
|
|
202
|
+
} & {
|
|
203
|
+
conditionFilter?: boolean | undefined;
|
|
204
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
205
|
+
options: {
|
|
206
|
+
description?: import("react").ReactNode;
|
|
207
|
+
label: import("react").ReactNode;
|
|
208
|
+
value: string;
|
|
209
|
+
}[];
|
|
210
|
+
response: {
|
|
211
|
+
name: string;
|
|
212
|
+
};
|
|
213
|
+
componentType?: "CheckboxOne" | undefined;
|
|
214
|
+
} & {
|
|
215
|
+
conditionFilter?: boolean | undefined;
|
|
216
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
217
|
+
componentType?: "Suggester" | undefined;
|
|
218
|
+
storeName: string;
|
|
219
|
+
optionRenderer: import("react").FunctionComponent<{
|
|
220
|
+
option: import("../../components/type").SuggesterOption;
|
|
221
|
+
placeholder?: string | undefined;
|
|
222
|
+
search?: string | undefined;
|
|
223
|
+
}>;
|
|
224
|
+
labelRenderer: import("react").FunctionComponent<{
|
|
225
|
+
option?: import("../../components/type").SuggesterOption | undefined;
|
|
226
|
+
selected?: boolean | undefined;
|
|
227
|
+
search?: string | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
focused: boolean;
|
|
230
|
+
response: {
|
|
231
|
+
name: string;
|
|
232
|
+
};
|
|
233
|
+
optionResponses?: {
|
|
234
|
+
name: string;
|
|
235
|
+
attribute: string;
|
|
236
|
+
}[] | undefined;
|
|
237
|
+
arbitrary?: {
|
|
238
|
+
response: {
|
|
239
|
+
name: string;
|
|
240
|
+
};
|
|
241
|
+
} | undefined;
|
|
242
|
+
arbitraryValue?: string | undefined;
|
|
243
|
+
allowArbitrary?: boolean | undefined;
|
|
244
|
+
executeExpression: <T extends unknown = unknown>(expression: import("../../type.source").VTLExpression, args?: {
|
|
245
|
+
iteration?: number | number[] | undefined;
|
|
246
|
+
bindingDependencies?: string[] | undefined;
|
|
247
|
+
deps?: string[] | undefined;
|
|
248
|
+
} | undefined) => T;
|
|
249
|
+
iteration: number | undefined;
|
|
250
|
+
} & {
|
|
251
|
+
conditionFilter?: boolean | undefined;
|
|
252
|
+
}) | (Omit<import("../../components/type").LunaticBaseProps<unknown>, "value"> & {
|
|
253
|
+
components: LunaticComponentDefinition[];
|
|
254
|
+
features?: ("VTL" | "MD")[] | undefined;
|
|
255
|
+
executeExpression: <T extends unknown = unknown>(expression: import("../../type.source").VTLExpression, args?: {
|
|
256
|
+
iteration?: number | number[] | undefined;
|
|
257
|
+
bindingDependencies?: string[] | undefined;
|
|
258
|
+
deps?: string[] | undefined;
|
|
259
|
+
} | undefined) => T;
|
|
260
|
+
xAxisIterations: number;
|
|
261
|
+
yAxisIterations: number;
|
|
262
|
+
symLinks: Record<string, Record<string, string>>;
|
|
263
|
+
value: Record<string, unknown[]>;
|
|
264
|
+
getComponents: (x: number, y: number) => import("../..").LunaticComponentProps<keyof import("../../components/type").ComponentPropsByType>[];
|
|
265
|
+
componentType?: "PairwiseLinks" | undefined;
|
|
266
|
+
} & {
|
|
267
|
+
conditionFilter?: boolean | undefined;
|
|
268
|
+
}) | (import("../../components/type").LunaticBaseProps<string | null> & {
|
|
269
|
+
componentType?: "Summary" | undefined;
|
|
270
|
+
executeExpression: <T extends unknown = unknown>(expression: import("../../type.source").VTLExpression, args?: {
|
|
271
|
+
iteration?: number | number[] | undefined;
|
|
272
|
+
bindingDependencies?: string[] | undefined;
|
|
273
|
+
deps?: string[] | undefined;
|
|
274
|
+
} | undefined) => T;
|
|
275
|
+
sections: {
|
|
276
|
+
id: string;
|
|
277
|
+
responses?: {
|
|
278
|
+
id: string;
|
|
279
|
+
label: import("../../components/type").VtlExpression;
|
|
280
|
+
value: import("../../components/type").VtlExpression;
|
|
281
|
+
}[] | undefined;
|
|
282
|
+
title?: import("../../components/type").VtlExpression | undefined;
|
|
283
|
+
iterations?: import("../../components/type").VtlExpression | undefined;
|
|
284
|
+
}[];
|
|
285
|
+
} & {
|
|
286
|
+
conditionFilter?: boolean | undefined;
|
|
287
|
+
}) | (import("../../components/type").LunaticBaseProps<string> & {
|
|
288
|
+
componentType?: "Text" | undefined;
|
|
289
|
+
} & {
|
|
290
|
+
conditionFilter?: boolean | undefined;
|
|
291
|
+
}) | (import("../../components/type").LunaticBaseProps<boolean> & {
|
|
292
|
+
response: {
|
|
293
|
+
name: string;
|
|
294
|
+
};
|
|
295
|
+
statusLabel?: {
|
|
296
|
+
true: string;
|
|
297
|
+
false: string;
|
|
298
|
+
} | undefined;
|
|
299
|
+
componentType?: "Switch" | undefined;
|
|
300
|
+
} & {
|
|
301
|
+
conditionFilter?: boolean | undefined;
|
|
302
|
+
}) | (Pick<import("../../components/type").LunaticBaseProps<string>, "id" | "label"> & {
|
|
303
|
+
componentType?: "FilterDescription" | undefined;
|
|
304
|
+
} & {
|
|
305
|
+
conditionFilter?: boolean | undefined;
|
|
306
|
+
}) | {
|
|
307
|
+
label: unknown;
|
|
308
|
+
})[][];
|
|
309
|
+
} | {
|
|
310
|
+
arbitraryValue?: undefined;
|
|
311
|
+
} | {
|
|
312
|
+
arbitraryValue: unknown;
|
|
313
|
+
};
|
|
314
|
+
export {};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {} from '../commons/fill-components/fill-component-expressions';
|
|
2
|
+
import { hasComponentType } from '../commons/component';
|
|
3
|
+
import { fillComponent, fillComponents, } from '../commons/fill-components/fill-components';
|
|
4
|
+
/**
|
|
5
|
+
* Fill props for roundabout
|
|
6
|
+
* - expressions, VTL that states the level of completion for each iteration
|
|
7
|
+
*/
|
|
8
|
+
function getRoundaboutProps(component, state) {
|
|
9
|
+
const iterations = component.iterations; // iterations is the result of an expression but we know it's a number
|
|
10
|
+
const compiled = Object.entries(component.expressions).reduce(function (result, [name, expression]) {
|
|
11
|
+
const values = Array.from({ length: iterations }, (_, iteration) => {
|
|
12
|
+
return state.executeExpression(expression, {
|
|
13
|
+
iteration,
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
return { ...result, [name]: values };
|
|
17
|
+
}, {});
|
|
18
|
+
return {
|
|
19
|
+
expressions: compiled,
|
|
20
|
+
page: parseInt(component.page ?? '1', 10),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Fill child components for nested component type
|
|
25
|
+
*/
|
|
26
|
+
function getChildComponents(component, state) {
|
|
27
|
+
return {
|
|
28
|
+
components: fillComponents(component.components, state),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* For loops, inject a method to retrieve component at a specific iteration
|
|
33
|
+
*/
|
|
34
|
+
function getChildComponentsWithIteration(component, state) {
|
|
35
|
+
return {
|
|
36
|
+
getComponents: (iteration) => fillComponents(component.components, {
|
|
37
|
+
...state,
|
|
38
|
+
handleChanges: createChangeHandlerForIteration(state.handleChanges, iteration),
|
|
39
|
+
pager: {
|
|
40
|
+
...state.pager,
|
|
41
|
+
iteration: iteration,
|
|
42
|
+
subPage: 0, // Fake a subpage to simulate an iteration
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
// Create change handler memoized for every iteration
|
|
48
|
+
let changeHandler = null;
|
|
49
|
+
const changeHandlerMap = new Map();
|
|
50
|
+
function createChangeHandlerForIteration(handleChanges, iteration) {
|
|
51
|
+
if (handleChanges !== changeHandler) {
|
|
52
|
+
changeHandler = handleChanges;
|
|
53
|
+
changeHandlerMap.clear();
|
|
54
|
+
}
|
|
55
|
+
let handler = changeHandlerMap.get(iteration);
|
|
56
|
+
if (handler) {
|
|
57
|
+
return handler;
|
|
58
|
+
}
|
|
59
|
+
// Inject iteration in the child components
|
|
60
|
+
handler = (responses) => {
|
|
61
|
+
handleChanges(responses.map((r) => ({ ...r, iteration: [iteration] })));
|
|
62
|
+
};
|
|
63
|
+
changeHandlerMap.set(iteration, handler);
|
|
64
|
+
return handler;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* For pairwise, inject a method to retrieve component at a specific iteration combination
|
|
68
|
+
*/
|
|
69
|
+
function getPairwiseProps(component, state) {
|
|
70
|
+
return {
|
|
71
|
+
getComponents: (x, y) => {
|
|
72
|
+
if (x === y) {
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
return fillComponents(component.components, {
|
|
76
|
+
...state,
|
|
77
|
+
handleChanges: (responses) => {
|
|
78
|
+
// Add iteration on each response
|
|
79
|
+
state.handleChanges(responses.reduce((acc, r) => {
|
|
80
|
+
if (r.name in component.symLinks &&
|
|
81
|
+
r.value in component.symLinks[r.name]) {
|
|
82
|
+
return [
|
|
83
|
+
...acc,
|
|
84
|
+
// Add iteration to the response
|
|
85
|
+
{ ...r, iteration: [x, y] },
|
|
86
|
+
// Add linked response (symetrical iteration)
|
|
87
|
+
{
|
|
88
|
+
name: r.name,
|
|
89
|
+
value: component.symLinks[r.name][r.value],
|
|
90
|
+
iteration: [y, x],
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
return [
|
|
95
|
+
...acc,
|
|
96
|
+
// Add iteration to the response
|
|
97
|
+
{ ...r, iteration: [x, y] },
|
|
98
|
+
];
|
|
99
|
+
}, []));
|
|
100
|
+
},
|
|
101
|
+
pager: {
|
|
102
|
+
...state.pager,
|
|
103
|
+
linksIterations: [x, y],
|
|
104
|
+
subPage: 0, // Fake a subpage to simulate an iteration
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* For pairwise, inject a method to retrieve component at a specific iteration combination
|
|
112
|
+
*/
|
|
113
|
+
function getTableProps(component, state) {
|
|
114
|
+
return {
|
|
115
|
+
body: component.body.map((row) => row.map((component) => {
|
|
116
|
+
if (hasComponentType(component)) {
|
|
117
|
+
return fillComponent(component, state);
|
|
118
|
+
}
|
|
119
|
+
// We can have a non typed component with extra attributes (colspan, rowspan)
|
|
120
|
+
return {
|
|
121
|
+
...component,
|
|
122
|
+
label: state.executeExpression(component.label, {
|
|
123
|
+
iteration: state.pager.iteration,
|
|
124
|
+
}),
|
|
125
|
+
};
|
|
126
|
+
})),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* For suggester, inject the arbitrary value if necessary
|
|
131
|
+
*/
|
|
132
|
+
function getSuggesterProps(component, state) {
|
|
133
|
+
if (!component.arbitrary) {
|
|
134
|
+
return {};
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
arbitraryValue: state.executeExpression({ type: 'VTL', value: component.arbitrary.response.name }, {
|
|
138
|
+
iteration: state.pager.iteration,
|
|
139
|
+
}),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Get component specific props (RoundAbout for instance)
|
|
144
|
+
*/
|
|
145
|
+
export function getComponentTypeProps(component, state) {
|
|
146
|
+
switch (component.componentType) {
|
|
147
|
+
case 'Roundabout':
|
|
148
|
+
return getRoundaboutProps(component, state);
|
|
149
|
+
case 'Question':
|
|
150
|
+
return getChildComponents(component, state);
|
|
151
|
+
case 'Loop':
|
|
152
|
+
case 'RosterForLoop':
|
|
153
|
+
return getChildComponentsWithIteration(component, state);
|
|
154
|
+
case 'PairwiseLinks':
|
|
155
|
+
return getPairwiseProps(component, state);
|
|
156
|
+
case 'Table':
|
|
157
|
+
return getTableProps(component, state);
|
|
158
|
+
case 'Suggester':
|
|
159
|
+
return getSuggesterProps(component, state);
|
|
160
|
+
default:
|
|
161
|
+
return {};
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=getComponentTypeProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getComponentTypeProps.js","sourceRoot":"","sources":["../../../src/use-lunatic/props/getComponentTypeProps.ts"],"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AAC,CAAC;QACxC,KAAK,WAAW;YACf,OAAO,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC5C;YACC,OAAO,EAAE,CAAC;IACZ,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LunaticComponentDefinition, LunaticPager, LunaticReducerState } from '../type';
|
|
2
|
+
import type { LunaticVariablesStore } from '../commons/variables/lunatic-variables-store';
|
|
3
|
+
export declare function getIterationsProp(definition: LunaticComponentDefinition, state: {
|
|
4
|
+
pager: LunaticPager;
|
|
5
|
+
variables: LunaticVariablesStore;
|
|
6
|
+
executeExpression: LunaticReducerState['executeExpression'];
|
|
7
|
+
}): number | undefined;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { forceInt, isNumber } from '../../utils/number';
|
|
2
|
+
import { hasResponse } from '../commons/component';
|
|
3
|
+
export function getIterationsProp(definition, state) {
|
|
4
|
+
if ('iterations' in definition && definition.iterations) {
|
|
5
|
+
return forceInt(state.executeExpression(definition.iterations, {
|
|
6
|
+
iteration: state.pager.iteration,
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
if (definition.componentType !== 'RosterForLoop' &&
|
|
10
|
+
definition.componentType !== 'Loop') {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
// Iterations expression is not present on the component definition
|
|
14
|
+
// infer it from the value of child components
|
|
15
|
+
return definition.components.reduce((acc, component) => {
|
|
16
|
+
if (!hasResponse(component)) {
|
|
17
|
+
return acc;
|
|
18
|
+
}
|
|
19
|
+
const value = state.variables.get(component.response.name, isNumber(state.pager.iteration) ? [state.pager.iteration] : undefined);
|
|
20
|
+
if (Array.isArray(value) && value.length > acc) {
|
|
21
|
+
return value.length;
|
|
22
|
+
}
|
|
23
|
+
return acc;
|
|
24
|
+
}, 0);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=propIterations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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AAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LunaticComponentDefinition, LunaticPager } from '../type';
|
|
2
|
+
import type { LunaticVariablesStore } from '../commons/variables/lunatic-variables-store';
|
|
3
|
+
export declare function getMissingResponseProp(component: LunaticComponentDefinition, { pager, variables, }: {
|
|
4
|
+
pager: LunaticPager;
|
|
5
|
+
variables: LunaticVariablesStore;
|
|
6
|
+
}): {
|
|
7
|
+
value: unknown;
|
|
8
|
+
name: string;
|
|
9
|
+
} | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isNumber } from '../../utils/number';
|
|
2
|
+
export function getMissingResponseProp(component, { pager, variables, }) {
|
|
3
|
+
// Component does not have a missing response
|
|
4
|
+
if (!('missingResponse' in component) || !component.missingResponse) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
const missingResponse = component.missingResponse;
|
|
8
|
+
return {
|
|
9
|
+
...missingResponse,
|
|
10
|
+
value: variables.get(missingResponse.name, isNumber(pager.iteration) ? [pager.iteration] : undefined),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=propMissingResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propMissingResponse.js","sourceRoot":"","sources":["../../../src/use-lunatic/props/propMissingResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,MAAM,UAAU,sBAAsB,CACrC,SAAqC,EACrC,EACC,KAAK,EACL,SAAS,GAIT;IAED,6CAA6C;IAC7C,IAAI,CAAC,CAAC,iBAAiB,IAAI,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QACrE,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,MAAM,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC;IAClD,OAAO;QACN,GAAG,eAAe;QAClB,KAAK,EAAE,SAAS,CAAC,GAAG,CACnB,eAAe,CAAC,IAAI,EACpB,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CACzD;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LunaticComponentDefinition, LunaticPager } from '../type';
|
|
2
|
+
import type { LunaticVariablesStore } from '../commons/variables/lunatic-variables-store';
|
|
3
|
+
export declare function getValueProp(component: LunaticComponentDefinition, args: {
|
|
4
|
+
pager: LunaticPager;
|
|
5
|
+
variables: LunaticVariablesStore;
|
|
6
|
+
}): unknown;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isNumber } from '../../utils/number';
|
|
2
|
+
import { hasResponse, hasResponses } from '../commons/component';
|
|
3
|
+
export function getValueProp(component, args) {
|
|
4
|
+
let iteration = isNumber(args.pager.iteration)
|
|
5
|
+
? [args.pager.iteration]
|
|
6
|
+
: undefined;
|
|
7
|
+
if (args.pager.linksIterations) {
|
|
8
|
+
iteration = args.pager.linksIterations;
|
|
9
|
+
}
|
|
10
|
+
if (hasResponses(component)) {
|
|
11
|
+
return Object.fromEntries(component.responses?.map(({ response }) => [
|
|
12
|
+
response.name,
|
|
13
|
+
args.variables.get(response.name, iteration),
|
|
14
|
+
]) ?? []);
|
|
15
|
+
}
|
|
16
|
+
if (hasResponse(component)) {
|
|
17
|
+
return args.variables.get(component.response.name, iteration);
|
|
18
|
+
}
|
|
19
|
+
// For loop, value will be a map of child component values
|
|
20
|
+
if ('components' in component) {
|
|
21
|
+
return Object.fromEntries(component.components
|
|
22
|
+
.map((c) => ('response' in c ? c.response.name : null))
|
|
23
|
+
.filter((name) => name !== null)
|
|
24
|
+
.map((name) => [name, args.variables.get(name)]));
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=propValue.js.map
|
|
@@ -0,0 +1 @@
|
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AAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACtD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC;aAC/B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC,CAAC,CAClD,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { getValueProp } from './propValue';
|
|
3
|
+
import { LunaticVariablesStore } from '../commons/variables/lunatic-variables-store';
|
|
4
|
+
import { times } from '../../utils/array';
|
|
5
|
+
describe('fillComponentValue', () => {
|
|
6
|
+
// Helper to avoid repetition
|
|
7
|
+
const expectFilledComponent = (component,
|
|
8
|
+
// Value in the lunatic state
|
|
9
|
+
values = {},
|
|
10
|
+
// Pager iteration
|
|
11
|
+
iteration) => {
|
|
12
|
+
return expect(getValueProp(component, {
|
|
13
|
+
variables: LunaticVariablesStore.makeFromObject(values),
|
|
14
|
+
pager: {
|
|
15
|
+
maxPage: 2,
|
|
16
|
+
page: 1,
|
|
17
|
+
iteration,
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
describe('response', () => {
|
|
22
|
+
const component = {
|
|
23
|
+
response: { name: 'PRENOM' },
|
|
24
|
+
};
|
|
25
|
+
it('Should work with simple response', () => {
|
|
26
|
+
expectFilledComponent(component, { PRENOM: 'John' }).toBe('John');
|
|
27
|
+
expectFilledComponent(component).toBe(null);
|
|
28
|
+
});
|
|
29
|
+
it('Should work with simple response as Array', () => {
|
|
30
|
+
expectFilledComponent(component, { PRENOM: ['John', 'Renaud'] }, 1).toBe('Renaud');
|
|
31
|
+
expectFilledComponent(component, { PRENOM: ['John', 'Renaud'] }, 3).toBe(undefined);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
describe('responses', () => {
|
|
35
|
+
const component = {
|
|
36
|
+
responses: times(3, (k) => ({
|
|
37
|
+
response: { name: `NAME${k}` },
|
|
38
|
+
})),
|
|
39
|
+
};
|
|
40
|
+
it('should work with multiple responses', () => {
|
|
41
|
+
expectFilledComponent(component).toEqual({
|
|
42
|
+
NAME0: null,
|
|
43
|
+
NAME1: null,
|
|
44
|
+
NAME2: null,
|
|
45
|
+
});
|
|
46
|
+
expectFilledComponent(component, { NAME1: true }).toEqual({
|
|
47
|
+
NAME0: null,
|
|
48
|
+
NAME1: true,
|
|
49
|
+
NAME2: null,
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=propValue.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propValue.spec.js","sourceRoot":"","sources":["../../../src/use-lunatic/props/propValue.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,6BAA6B;IAC7B,MAAM,qBAAqB,GAAG,CAC7B,SAAqC;IACrC,6BAA6B;IAC7B,SAAkC,EAAE;IACpC,kBAAkB;IAClB,SAAkB,EACjB,EAAE;QACH,OAAO,MAAM,CACZ,YAAY,CAAC,SAAS,EAAE;YACvB,SAAS,EAAE,qBAAqB,CAAC,cAAc,CAAC,MAAM,CAAC;YACvD,KAAK,EAAE;gBACN,OAAO,EAAE,CAAC;gBACV,IAAI,EAAE,CAAC;gBACP,SAAS;aACT;SACD,CAAC,CACF,CAAC;IAC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