@inseefr/lunatic 2.7.20 → 3.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/{commons/components/orchestrated-component.js → CheckboxBoolean/CheckboxBoolean.js} +49 -24
- package/lib/components/{checkbox/checkbox-boolean/html/checkbox-boolean.spec.js → CheckboxBoolean/CheckboxBoolean.spec.js} +25 -14
- package/lib/components/CheckboxGroup/CheckboxGroup.js +50 -0
- package/lib/components/CheckboxGroup/CheckboxGroup.scss +13 -0
- package/lib/components/{declarations/declarations-after-text.js → CheckboxGroup/CustomCheckboxGroup.js} +33 -11
- package/lib/components/{checkbox/checkbox-group/html/checkbox-group-content.spec.js → CheckboxGroup/CustomCheckboxGroup.spec.js} +2 -3
- package/lib/components/CheckboxOne/CheckboxOne.js +39 -0
- package/lib/components/{checkbox/checkbox-one/html/checkbox-one.spec.js → CheckboxOne/CheckboxOne.spec.js} +14 -7
- package/lib/components/{datepicker/html/datepicker.js → Datepicker/Datepicker.js} +51 -25
- package/lib/components/Datepicker/Datepicker.spec.js +92 -0
- package/lib/components/{datepicker/html/__snapshots__/datepicker.spec.tsx.snap → Datepicker/__snapshots__/Datepicker.spec.tsx.snap} +0 -63
- package/lib/components/Dropdown/Dropdown.js +80 -0
- package/lib/{stories/modal/modal.stories.js → components/Dropdown/Dropdown.spec.js} +40 -23
- package/lib/components/{dropdown/html/dropdown-writable/dropdown-writable.js → Dropdown/DropdownWritable.js} +10 -12
- package/lib/components/{dropdown/html/__snapshots__/dropdown.spec.tsx.snap → Dropdown/__snapshots__/Dropdown.spec.tsx.snap} +3 -3
- package/lib/components/Dropdown/helpers.js +94 -0
- package/lib/components/{dropdown/html/dropdown-simple/simple-label-renderer.js → Dropdown/renderer/SimpleLabelRenderer.js} +2 -3
- package/lib/components/{dropdown/html/dropdown-simple/simple-option-renderer.js → Dropdown/renderer/SimpleOptionRenderer.js} +2 -4
- package/lib/components/{dropdown/html/dropdown-writable/writable-label-renderer.js → Dropdown/renderer/WritableLabelRenderer.js} +2 -3
- package/lib/components/{dropdown/html/dropdown-writable/writable-option-renderer.js → Dropdown/renderer/WritableOptionRenderer.js} +6 -9
- package/lib/components/{duration/durationInput.js → Duration/Duration.js} +43 -15
- package/lib/components/{filter-description/component.js → FilterDescription/FilterDescription.js} +3 -5
- package/lib/components/{filter-description/component.spec.js → FilterDescription/FilterDescription.spec.js} +3 -5
- package/lib/components/Input/Input.js +80 -0
- package/lib/components/{input/html/input.spec.js → Input/Input.spec.js} +26 -23
- package/lib/components/InputNumber/InputNumber.js +81 -0
- package/lib/components/{input-number/html/input-number.spec.js → InputNumber/InputNumber.spec.js} +40 -46
- package/lib/components/{input-number/html/input-number-thousand.js → InputNumber/InputNumberThousand.js} +4 -5
- package/lib/components/{input-number/html/__snapshots__/input-number.spec.tsx.snap → InputNumber/__snapshots__/InputNumber.spec.tsx.snap} +3 -5
- package/lib/components/{loop/block-for-loop.js → Loop/Loop.js} +59 -40
- package/lib/components/{lunatic-components.js → LunaticComponents.js} +62 -42
- package/lib/components/{pairwise-links/pairwise-links.js → PairwiseLinks/PairwiseLinks.js} +11 -14
- package/lib/components/{component-set/lunatic-component-set.js → Question/Question.js} +37 -39
- package/lib/components/Radio/Radio.js +41 -0
- package/lib/components/{loop/roster-for-loop/roster-for-loop.js → RosterForLoop/RosterForLoop.js} +28 -54
- package/lib/components/{loop/roster-for-loop/roster-for-loop.spec.js → RosterForLoop/RosterForLoop.spec.js} +2 -2
- package/lib/components/{roundabout/roundabout.js → Roundabout/CustomRoundabout.js} +12 -18
- package/lib/components/{roundabout/lunatic-roundabout.js → Roundabout/Roundabout.js} +7 -8
- package/lib/components/{roundabout/components/roundabout-it-button.js → Roundabout/RoundaboutItButton.js} +40 -41
- package/lib/components/{roundabout/components/roundabout-it-button.spec.js → Roundabout/RoundaboutItButton.spec.js} +10 -11
- package/lib/components/{roundabout/redirect.js → Roundabout/RoundaboutRedirect.js} +3 -4
- package/lib/components/Roundabout/extra.js +44 -0
- package/lib/components/{roundabout → Roundabout}/redirect.spec.js +3 -5
- package/lib/components/{roundabout → Roundabout}/roundabout.spec.js +4 -4
- package/lib/components/Sequence/Sequence.js +33 -0
- package/lib/components/Subsequence/Subsequence.js +27 -0
- package/lib/components/{subsequence/subsequence.spec.js → Subsequence/Subsequence.spec.js} +7 -28
- package/lib/components/{suggester/html/suggester.js → Suggester/CustomSuggester.js} +9 -10
- package/lib/components/Suggester/Suggester.js +77 -0
- package/lib/components/{suggester/html/default-style.scss → Suggester/Suggester.scss} +3 -3
- package/lib/components/{suggester/idb-suggester/suggester-notification.js → Suggester/SuggesterNotification.js} +16 -16
- package/lib/components/{suggester/idb-suggester/suggester-status.js → Suggester/SuggesterStatus.js} +5 -7
- package/lib/components/{suggester/searching/create-searching.js → Suggester/helpers.js} +4 -5
- package/lib/components/{summary/lunatic-summary.js → Summary/Summary.js} +72 -59
- package/lib/components/Switch/Switch.js +107 -0
- package/lib/components/Table/Table.js +65 -0
- package/lib/components/Textarea/Textarea.js +80 -0
- package/lib/components/Textarea/Textarea.spec.js +46 -0
- package/lib/components/library.js +53 -0
- package/lib/components/{button/lunatic-button.js → shared/Button/Button.js} +7 -7
- package/lib/components/{button/lunatic-button.spec.js → shared/Button/Button.spec.js} +10 -12
- package/lib/components/{commons/components/fab/fab.js → shared/Button/IconButton.js} +5 -6
- package/lib/components/{commons/components/fab/fab.scss → shared/Button/IconButton.scss} +1 -0
- package/lib/components/{commons/components/fab/fab.spec.js → shared/Button/IconButton.spec.js} +9 -9
- package/lib/components/{checkbox/commons/checkbox-option.js → shared/Checkbox/CheckboxOption.js} +9 -8
- package/lib/components/{checkbox/commons/checkbox-option.spec.js → shared/Checkbox/CheckboxOption.spec.js} +6 -7
- package/lib/components/{commons/components/combo-box/combo-box.js → shared/Combobox/Combobox.js} +26 -26
- package/lib/components/{commons/components/combo-box/combo-box.stories.js → shared/Combobox/Combobox.stories.js} +4 -5
- package/lib/components/{commons/components/combo-box/combo-box-container.js → shared/Combobox/ComboboxContainer.js} +6 -7
- package/lib/components/{commons/components/combo-box/combo-box-container.spec.js → shared/Combobox/ComboboxContainer.spec.js} +6 -8
- package/lib/components/{commons/components/combo-box/combo-box-content.js → shared/Combobox/ComboboxContent.js} +11 -13
- package/lib/components/{commons/components/combo-box/combo-box-content-box.js → shared/Combobox/ComboboxContentBox.js} +4 -6
- package/lib/components/{commons/components/combo-box/panel/combo-box-option.js → shared/Combobox/Panel/ComboboxOption.js} +4 -5
- package/lib/components/{commons/components/combo-box/panel/combo-box-option.spec.js → shared/Combobox/Panel/ComboboxOption.spec.js} +6 -8
- package/lib/components/{commons/components/combo-box/panel/option-container.js → shared/Combobox/Panel/ComboboxOptionContainer.js} +2 -2
- package/lib/components/{commons/components/combo-box/panel/option-container.spec.js → shared/Combobox/Panel/ComboboxOptionContainer.spec.js} +2 -2
- package/lib/components/{commons/components/combo-box/panel/panel.js → shared/Combobox/Panel/ComboboxPanel.js} +11 -9
- package/lib/components/{commons/components/combo-box/panel/panel.spec.js → shared/Combobox/Panel/ComboboxPanel.spec.js} +5 -5
- package/lib/components/{commons/components/combo-box/panel/panel-container.js → shared/Combobox/Panel/ComboboxPanelContainer.js} +4 -5
- package/lib/components/{commons/components/combo-box/panel/panel-container.spec.js → shared/Combobox/Panel/ComboboxPanelContainer.spec.js} +7 -8
- package/lib/components/{commons/components/combo-box/selection/clear-button.js → shared/Combobox/Selection/ComboboxClearButton.js} +8 -8
- package/lib/components/{commons/components/combo-box/selection/clear-button.spec.js → shared/Combobox/Selection/ComboboxClearButton.spec.js} +9 -9
- package/lib/components/{commons/components/combo-box/selection/input.js → shared/Combobox/Selection/ComboboxInput.js} +4 -4
- package/lib/components/{commons/components/combo-box/selection/combo-box-label-selection.js → shared/Combobox/Selection/ComboboxLabelSelection.js} +8 -11
- package/lib/components/{commons/components/combo-box/selection/combo-box-label-selection.spec.js → shared/Combobox/Selection/ComboboxLabelSelection.spec.js} +5 -7
- package/lib/components/shared/Combobox/Selection/ComboboxSelection.js +68 -0
- package/lib/components/{commons/components/combo-box/selection/selection.spec.js → shared/Combobox/Selection/ComboboxSelection.spec.js} +7 -7
- package/lib/components/{commons/components/combo-box/selection/__snapshots__/selection.spec.tsx.snap → shared/Combobox/Selection/__snapshots__/ComboboxSelection.spec.tsx.snap} +1 -9
- package/lib/components/shared/Combobox/index.js +1 -0
- package/lib/components/{commons/components/errors/errors.js → shared/ComponentErrors/ComponentErrors.js} +9 -8
- package/lib/components/shared/ComponentErrors/ComponentErrors.spec.js +44 -0
- package/lib/components/{commons/components/lunatic-component-without-label.js → shared/ComponentWrapper.js} +41 -32
- package/lib/components/shared/Declarations/Declarations.js +47 -0
- package/lib/components/{declarations/declarations.spec.js → shared/Declarations/Declarations.spec.js} +7 -8
- package/lib/components/shared/Fieldset/Fieldset.js +44 -0
- package/lib/components/shared/Fieldset/Fieldset.spec.js +37 -0
- package/lib/components/{commons/create-customizable-field.js → shared/HOC/slottableComponent.js} +38 -15
- package/lib/components/{commons/icons → shared/Icons}/index.js +4 -4
- package/lib/components/shared/Label/Label.js +36 -0
- package/lib/components/shared/Label/Label.spec.js +45 -0
- package/lib/components/shared/LabelDescription.js +21 -0
- package/lib/components/{commons/components/md-label/md-label.js → shared/MDLabel/MDLabel.js} +6 -7
- package/lib/components/{commons/components/md-label/md-label.spec.js → shared/MDLabel/MDLabel.spec.js} +8 -8
- package/lib/components/{commons/components/md-label/link.js → shared/MDLabel/MDLabelLink.js} +11 -7
- package/lib/components/{commons/components/md-label/router-link.js → shared/MDLabel/RouterLink.js} +4 -6
- package/lib/components/shared/MDLabel/generateUniqueId.js +1 -0
- package/lib/components/{commons/components/missing/missing.js → shared/Missing/Missing.js} +16 -19
- package/lib/components/{commons/components/missing/missing.spec.js → shared/Missing/Missing.spec.js} +4 -4
- package/lib/components/{modal-controls/modal-controls.js → shared/ModalControls/ModalControls.js} +46 -34
- package/lib/components/{modal-controls/modal-controls.spec.js → shared/ModalControls/ModalControls.spec.js} +4 -5
- package/lib/components/{suggester/html/notification.js → shared/Notification.js} +4 -4
- package/lib/components/shared/Radio/RadioGroup.js +68 -0
- package/lib/components/{radio/html/radio-option.js → shared/Radio/RadioOption.js} +11 -10
- package/lib/components/{radio/html/radio-option.spec.js → shared/Radio/RadioOption.spec.js} +9 -10
- package/lib/components/{commons/components/html-table/table.js → shared/Table/Table.js} +5 -5
- package/lib/components/{commons/components/html-table/table.spec.js → shared/Table/Table.spec.js} +3 -3
- package/lib/components/{table/table-header.js → shared/Table/TableHeader.js} +6 -4
- package/lib/components/{commons/components/html-table/tbody.js → shared/Table/Tbody.js} +4 -4
- package/lib/components/{commons/components/html-table/tbody.spec.js → shared/Table/Tbody.spec.js} +3 -3
- package/lib/components/{commons/components/html-table/td.js → shared/Table/Td.js} +4 -4
- package/lib/components/{commons/components/html-table/td.spec.js → shared/Table/Td.spec.js} +2 -2
- package/lib/components/{commons/components/html-table/th.js → shared/Table/Th.js} +4 -4
- package/lib/components/{commons/components/html-table/th.spec.js → shared/Table/Th.spec.js} +3 -3
- package/lib/components/{commons/components/html-table/thead.js → shared/Table/Thead.js} +4 -4
- package/lib/components/{commons/components/html-table/thead.spec.js → shared/Table/Thead.spec.js} +3 -3
- package/lib/components/{commons/components/html-table/tr.js → shared/Table/Tr.js} +4 -4
- package/lib/components/{commons/components/html-table/tr.spec.js → shared/Table/Tr.spec.js} +3 -3
- package/lib/components/{commons/components/html-table → shared/Table}/index.js +19 -12
- package/lib/components/{commons/components/variable-status/variable-status.js → shared/VariableStatus/VariableStatus.js} +9 -24
- package/lib/components/{commons/components/variable-status/variable-status.scss → shared/VariableStatus/VariableStatus.scss} +1 -1
- package/lib/components/{commons/components/variable-status/variable-status.spec.js → shared/VariableStatus/VariableStatus.spec.js} +3 -3
- package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.js +4 -3
- package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.js +2 -2
- package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader-row.js +5 -5
- package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader.js +3 -3
- package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.js +5 -5
- package/lib/{utils/store-tools/constantes.js → constants/indexedDBStore.js} +2 -2
- package/lib/{components/commons/use-document-add-event-listener.js → hooks/useDocumentEvent.js} +3 -3
- package/lib/{components/commons/use-options-keydown.js → hooks/useListKeyboardHandler.js} +6 -4
- package/lib/{components/suggester/idb-suggester/check-store.js → hooks/useSuggesterInfo.js} +24 -69
- package/lib/index.js +24 -25
- package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +11 -0
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/lib/src/components/CheckboxGroup/CustomCheckboxGroup.d.ts +13 -0
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +6 -0
- package/lib/src/components/Datepicker/Datepicker.d.ts +11 -0
- package/lib/src/components/Dropdown/Dropdown.d.ts +11 -0
- package/lib/src/components/Dropdown/DropdownWritable.d.ts +17 -0
- package/lib/src/components/Dropdown/helpers.d.ts +19 -0
- package/lib/src/components/Dropdown/renderer/SimpleLabelRenderer.d.ts +8 -0
- package/lib/src/components/Dropdown/renderer/SimpleOptionRenderer.d.ts +7 -0
- package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +8 -0
- package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +8 -0
- package/lib/src/components/Duration/Duration.d.ts +11 -0
- package/lib/src/components/FilterDescription/FilterDescription.d.ts +7 -0
- package/lib/src/components/Input/Input.d.ts +11 -0
- package/lib/src/components/InputNumber/InputNumber.d.ts +11 -0
- package/lib/src/components/{input-number/html/input-number-thousand.d.ts → InputNumber/InputNumberThousand.d.ts} +2 -2
- package/lib/src/components/Loop/Loop.d.ts +15 -0
- package/lib/src/components/{lunatic-components.d.ts → LunaticComponents.d.ts} +4 -2
- package/lib/src/components/Question/Question.d.ts +9 -0
- package/lib/src/components/{radio/lunatic-radio-group.d.ts → Radio/Radio.d.ts} +1 -2
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +6 -0
- package/lib/src/components/{roundabout/roundabout.d.ts → Roundabout/CustomRoundabout.d.ts} +2 -2
- package/lib/src/components/Roundabout/Roundabout.d.ts +6 -0
- package/lib/src/components/{roundabout/components/roundabout-it-button.d.ts → Roundabout/RoundaboutItButton.d.ts} +2 -2
- package/lib/src/components/Roundabout/RoundaboutRedirect.d.ts +6 -0
- package/lib/src/components/Roundabout/extra.d.ts +14 -0
- package/lib/src/components/Sequence/Sequence.d.ts +3 -0
- package/lib/src/components/Subsequence/Subsequence.d.ts +2 -0
- package/lib/src/components/{suggester/html/suggester.d.ts → Suggester/CustomSuggester.d.ts} +6 -7
- package/lib/src/components/Suggester/Suggester.d.ts +3 -0
- package/lib/src/components/{suggester/idb-suggester/suggester-notification.d.ts → Suggester/SuggesterNotification.d.ts} +3 -3
- package/lib/src/components/{suggester/idb-suggester/suggester-status.d.ts → Suggester/SuggesterStatus.d.ts} +1 -1
- package/lib/src/components/Suggester/helpers.d.ts +6 -0
- package/lib/src/components/Summary/Summary.d.ts +25 -0
- package/lib/src/components/Switch/Switch.d.ts +19 -0
- package/lib/src/components/Table/Table.d.ts +2 -0
- package/lib/src/components/Textarea/Textarea.d.ts +11 -0
- package/lib/src/components/library.d.ts +94 -0
- package/lib/src/components/{button/lunatic-button.d.ts → shared/Button/Button.d.ts} +3 -3
- package/lib/src/components/shared/Button/IconButton.d.ts +7 -0
- package/lib/src/components/{checkbox/commons/checkbox-option.d.ts → shared/Checkbox/CheckboxOption.d.ts} +2 -3
- package/lib/src/components/shared/Combobox/Combobox.d.ts +21 -0
- package/lib/src/components/shared/Combobox/Combobox.stories.d.ts +6 -0
- package/lib/src/components/{commons/components/combo-box/combo-box-container.d.ts → shared/Combobox/ComboboxContainer.d.ts} +3 -3
- package/lib/src/components/{commons/components/combo-box/combo-box-content.d.ts → shared/Combobox/ComboboxContent.d.ts} +2 -2
- package/lib/src/components/shared/Combobox/ComboboxContentBox.d.ts +7 -0
- package/lib/src/components/shared/Combobox/ComboboxType.d.ts +50 -0
- package/lib/src/components/shared/Combobox/Panel/ComboboxOption.d.ts +8 -0
- package/lib/src/components/{commons/components/combo-box/panel/option-container.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.d.ts} +1 -1
- package/lib/src/components/shared/Combobox/Panel/ComboboxPanel.d.ts +5 -0
- package/lib/src/components/{commons/components/combo-box/panel/panel-container.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.d.ts} +2 -2
- package/lib/src/components/{commons/components/combo-box/selection/clear-button.d.ts → shared/Combobox/Selection/ComboboxClearButton.d.ts} +1 -1
- package/lib/src/components/{commons/components/combo-box/selection/input.d.ts → shared/Combobox/Selection/ComboboxInput.d.ts} +1 -2
- package/lib/src/components/shared/Combobox/Selection/ComboboxLabelSelection.d.ts +11 -0
- package/lib/src/components/shared/Combobox/Selection/ComboboxSelection.d.ts +6 -0
- package/lib/src/components/shared/Combobox/index.d.ts +0 -0
- package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +15 -0
- package/lib/src/components/shared/ComponentWrapper.d.ts +26 -0
- package/lib/src/components/shared/Declarations/Declarations.d.ts +17 -0
- package/lib/src/components/shared/Fieldset/Fieldset.d.ts +10 -0
- package/lib/src/components/shared/HOC/slottableComponent.d.ts +101 -0
- package/lib/src/components/shared/Icons/index.d.ts +10 -0
- package/lib/src/components/shared/Label/Label.d.ts +11 -0
- package/lib/src/components/shared/LabelDescription.d.ts +7 -0
- package/lib/src/components/{commons/components/md-label/md-label.d.ts → shared/MDLabel/MDLabel.d.ts} +2 -2
- package/lib/src/components/shared/MDLabel/MDLabelLink.d.ts +8 -0
- package/lib/src/components/{commons/components/md-label/router-link.d.ts → shared/MDLabel/RouterLink.d.ts} +2 -2
- package/lib/src/components/shared/MDLabel/generateUniqueId.d.ts +0 -0
- package/lib/src/components/{commons/components/missing/missing.d.ts → shared/Missing/Missing.d.ts} +4 -4
- package/lib/src/components/shared/ModalControls/ModalControls.d.ts +11 -0
- package/lib/src/components/{suggester/html/notification.d.ts → shared/Notification.d.ts} +2 -2
- package/lib/src/components/{radio/html/radio-group.d.ts → shared/Radio/RadioGroup.d.ts} +3 -3
- package/lib/src/components/{radio/html/radio-option.d.ts → shared/Radio/RadioOption.d.ts} +1 -2
- package/lib/src/components/{commons/components/html-table/table.d.ts → shared/Table/Table.d.ts} +2 -2
- package/lib/src/components/shared/Table/TableHeader.d.ts +2 -0
- package/lib/src/components/{commons/components/html-table/tbody.d.ts → shared/Table/Tbody.d.ts} +1 -1
- package/lib/src/components/{commons/components/html-table/td.d.ts → shared/Table/Td.d.ts} +1 -1
- package/lib/src/components/{commons/components/html-table/th.d.ts → shared/Table/Th.d.ts} +1 -1
- package/lib/src/components/{commons/components/html-table/thead.d.ts → shared/Table/Thead.d.ts} +1 -1
- package/lib/src/components/{commons/components/html-table/tr.d.ts → shared/Table/Tr.d.ts} +1 -1
- package/lib/src/components/shared/Table/index.d.ts +7 -0
- package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +7 -0
- package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader-row.d.ts +1 -1
- package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/loader.d.ts +1 -1
- package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.d.ts +1 -1
- package/lib/src/components/type.d.ts +15 -34
- package/lib/src/{utils/store-tools/constantes.d.ts → constants/indexedDBStore.d.ts} +2 -2
- package/lib/src/hooks/useDocumentEvent.d.ts +2 -0
- package/lib/src/{components/commons/use-options-keydown.d.ts → hooks/useListKeyboardHandler.d.ts} +4 -2
- package/lib/src/hooks/useSuggesterInfo.d.ts +9 -0
- package/lib/src/i18n/index.d.ts +2 -2
- package/lib/src/i18n/inputNumberProps.d.ts +1 -1
- package/lib/src/index.d.ts +5 -3
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +18 -65
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -111
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +16 -24
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +4 -148
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/lunatic-context.d.ts +1 -4
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +3 -5
- package/lib/src/use-lunatic/type-source.d.ts +1 -12
- package/lib/src/use-lunatic/use-lunatic.d.ts +36 -75
- package/lib/src/utils/store-tools/index.d.ts +1 -1
- package/lib/stories/behaviour/others/test.stories.js +1 -1
- package/lib/stories/{question-information/question-information.stories.js → behaviour/slots.stories.js} +35 -3
- package/lib/stories/checkbox-group/checkbox-group.stories.js +1 -6
- package/lib/stories/checkbox-group/sourceLoop.json +1 -1
- package/lib/stories/date-picker/datepicker.stories.js +2 -3
- package/lib/stories/disabled/source.json +1 -1
- package/lib/stories/loop/loop.stories.js +1 -1
- package/lib/stories/loop/roster-for-loop.stories.js +1 -1
- package/lib/stories/markdown/markdown.stories.js +1 -1
- package/lib/stories/pairwise/pairwise-links.stories.js +1 -9
- package/lib/stories/questionnaires/recensement/source.json +2 -2
- package/lib/stories/sequence/sequence.stories.js +1 -1
- package/lib/stories/suggester/source.json +326 -182
- package/lib/stories/suggester/suggester-workers.stories.js +5 -5
- package/lib/stories/suggester/suggester.stories.js +1 -22
- package/lib/stories/switch/switch.stories.js +1 -6
- package/lib/stories/table/table.stories.js +1 -11
- package/lib/stories/utils/orchestrator.js +28 -29
- package/lib/stories/utils/referentiel.js +5 -14
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -1
- package/lib/use-lunatic/commons/page.js +0 -5
- package/lib/use-lunatic/lunatic-context.js +2 -10
- package/lib/use-lunatic/reducer/reduce-on-init.js +2 -2
- package/lib/use-lunatic/replace-component-sequence.js +2 -3
- package/lib/use-lunatic/use-lunatic.js +1 -4
- package/lib/use-lunatic/use-lunatic.test.js +4 -30
- package/lib/utils/idb-tools/open-or-create-db.js +4 -4
- package/lib/utils/store-tools/clear-store-data.js +2 -2
- package/lib/utils/store-tools/clear-store-info.js +2 -2
- package/lib/utils/store-tools/create/create.js +2 -2
- package/lib/utils/store-tools/create/update-store-info.js +3 -3
- package/lib/utils/store-tools/get-store-count.js +3 -3
- package/lib/utils/store-tools/index.js +1 -1
- package/lib/utils/store-tools/initStore.js +4 -4
- package/lib/utils/store-tools/open-or-create-store.js +4 -4
- package/lib/utils/suggester-workers/append-to-index/append.js +2 -2
- package/lib/utils/suggester-workers/searching/search-in-index.js +2 -2
- package/lib/utils/suggester-workers/searching/searching.js +5 -5
- package/package.json +2 -5
- package/workers-release/lunatic-append-worker-0.3.0.js +1 -1
- package/workers-release/lunatic-append-worker-0.3.0.js.LICENSE.txt +0 -10
- package/workers-release/lunatic-search-worker-0.3.0.js +1 -1
- package/workers-release/lunatic-search-worker-0.3.0.js.LICENSE.txt +0 -10
- package/lib/components/button/index.js +0 -13
- package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +0 -34
- package/lib/components/checkbox/checkbox-boolean/index.js +0 -13
- package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +0 -58
- package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +0 -34
- package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +0 -41
- package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +0 -33
- package/lib/components/checkbox/checkbox-group/html/checkbox-group.scss +0 -12
- package/lib/components/checkbox/checkbox-group/index.js +0 -13
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +0 -71
- package/lib/components/checkbox/checkbox-one/html/checkbox-one.js +0 -34
- package/lib/components/checkbox/checkbox-one/index.js +0 -13
- package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +0 -61
- package/lib/components/checkbox/commons/index.js +0 -13
- package/lib/components/checkbox/index.js +0 -27
- package/lib/components/commons/components/combo-box/index.js +0 -13
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +0 -56
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.spec.js +0 -21
- package/lib/components/commons/components/combo-box/selection/label-selection.js +0 -30
- package/lib/components/commons/components/combo-box/selection/label-selection.spec.js +0 -41
- package/lib/components/commons/components/combo-box/selection/selection-container.js +0 -36
- package/lib/components/commons/components/combo-box/selection/selection-container.spec.js +0 -52
- package/lib/components/commons/components/combo-box/selection/selection.js +0 -53
- package/lib/components/commons/components/description.js +0 -52
- package/lib/components/commons/components/description.spec.js +0 -45
- package/lib/components/commons/components/errors/errors.spec.js +0 -45
- package/lib/components/commons/components/errors/index.js +0 -13
- package/lib/components/commons/components/fab/index.js +0 -13
- package/lib/components/commons/components/field-container/field-container.js +0 -26
- package/lib/components/commons/components/field-container/filed-container.spec.js +0 -37
- package/lib/components/commons/components/field-container/index.js +0 -13
- package/lib/components/commons/components/fieldset.js +0 -28
- package/lib/components/commons/components/fieldset.spec.js +0 -51
- package/lib/components/commons/components/label/index.js +0 -13
- package/lib/components/commons/components/label/label.js +0 -34
- package/lib/components/commons/components/label/label.spec.js +0 -77
- package/lib/components/commons/components/lunatic-component-with-label.js +0 -66
- package/lib/components/commons/components/md-label/generateUniqueId.js +0 -11
- package/lib/components/commons/components/md-label/index.js +0 -13
- package/lib/components/commons/components/missing/index.js +0 -13
- package/lib/components/commons/components/nothing-to-display.js +0 -15
- package/lib/components/commons/components/nothing-to-display.spec.js +0 -15
- package/lib/components/commons/components/variable-status/img/index.js +0 -20
- package/lib/components/commons/components/variable-status/index.js +0 -13
- package/lib/components/commons/index.js +0 -96
- package/lib/components/commons/safety-label.js +0 -24
- package/lib/components/commons/use-on-handle-change.js +0 -18
- package/lib/components/commons/use-on-handle-change.spec.js +0 -50
- package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +0 -126
- package/lib/components/component-set/html/component-set-legend.js +0 -28
- package/lib/components/component-set/html/component-set-wrapper.js +0 -15
- package/lib/components/component-set/html/component-set.js +0 -28
- package/lib/components/component-set/html/component-set.spec.js +0 -91
- package/lib/components/datepicker/html/datepicker.spec.js +0 -86
- package/lib/components/datepicker/index.js +0 -13
- package/lib/components/datepicker/lunatic-datepicker.js +0 -63
- package/lib/components/declarations/declaration.js +0 -21
- package/lib/components/declarations/declaration.spec.js +0 -30
- package/lib/components/declarations/declarations-before-text.js +0 -23
- package/lib/components/declarations/declarations-detachable.js +0 -23
- package/lib/components/declarations/declarations.js +0 -42
- package/lib/components/declarations/index.js +0 -43
- package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +0 -39
- package/lib/components/dropdown/html/dropdown-simple/index.js +0 -13
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.js +0 -28
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/filter-options.spec.js +0 -106
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/get-label.js +0 -24
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.js +0 -28
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/match.js +0 -21
- package/lib/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.js +0 -15
- package/lib/components/dropdown/html/dropdown-writable/index.js +0 -13
- package/lib/components/dropdown/html/dropdown.js +0 -52
- package/lib/components/dropdown/html/dropdown.spec.js +0 -48
- package/lib/components/dropdown/index.js +0 -13
- package/lib/components/dropdown/lunatic-dropdown.js +0 -62
- package/lib/components/duration/duration.js +0 -53
- package/lib/components/duration/index.js +0 -13
- package/lib/components/filter-description/index.js +0 -13
- package/lib/components/index.js +0 -223
- package/lib/components/input/html/input.js +0 -57
- package/lib/components/input/index.js +0 -13
- package/lib/components/input/lunatic-input.js +0 -59
- package/lib/components/input-number/html/input-number.js +0 -58
- package/lib/components/input-number/index.js +0 -13
- package/lib/components/input-number/lunatic-input-number.js +0 -63
- package/lib/components/loop/loop-button.js +0 -19
- package/lib/components/loop/loop-header.js +0 -30
- package/lib/components/loop/loop.js +0 -36
- package/lib/components/modal/html/modal.js +0 -59
- package/lib/components/modal/html/modal.scss +0 -26
- package/lib/components/modal/index.js +0 -13
- package/lib/components/modal/lunatic-modal.js +0 -61
- package/lib/components/modal-controls/close-or-skip.js +0 -38
- package/lib/components/modal-controls/close-or-skip.spec.js +0 -36
- package/lib/components/modal-controls/index.js +0 -13
- package/lib/components/modal-controls/modal-container.js +0 -21
- package/lib/components/modal-controls/modal-container.spec.js +0 -23
- package/lib/components/question/Question.js +0 -49
- package/lib/components/question/index.js +0 -16
- package/lib/components/question-explication/html/question-explication.js +0 -51
- package/lib/components/question-explication/html/question-explication.scss +0 -35
- package/lib/components/question-explication/index.js +0 -13
- package/lib/components/question-explication/lunatic-question-explication.js +0 -31
- package/lib/components/question-explication/question-explication.spec.js +0 -49
- package/lib/components/questions/index.js +0 -20
- package/lib/components/questions/question-context.js +0 -34
- package/lib/components/questions/question-context.scss +0 -10
- package/lib/components/questions/question-information.js +0 -34
- package/lib/components/questions/question-information.scss +0 -19
- package/lib/components/radio/html/radio-group-content.js +0 -53
- package/lib/components/radio/html/radio-group-content.spec.js +0 -99
- package/lib/components/radio/html/radio-group.js +0 -45
- package/lib/components/radio/index.js +0 -13
- package/lib/components/radio/lunatic-radio-group.js +0 -66
- package/lib/components/roundabout/components/roundabout-container.js +0 -19
- package/lib/components/roundabout/components/roundabout-container.spec.js +0 -23
- package/lib/components/roundabout/components/roundabout-it-container.js +0 -18
- package/lib/components/roundabout/components/roundabout-it-container.spec.js +0 -23
- package/lib/components/roundabout/components/roundabout-it-title.js +0 -16
- package/lib/components/roundabout/components/roundabout-it-title.spec.js +0 -18
- package/lib/components/roundabout/components/roundabout-label.js +0 -16
- package/lib/components/roundabout/components/roundabout-label.spec.js +0 -18
- package/lib/components/roundabout/components/roundabout-pending.js +0 -17
- package/lib/components/roundabout/components/roundabout-pending.spec.js +0 -15
- package/lib/components/roundabout/index.js +0 -13
- package/lib/components/sequence/html/sequence.js +0 -28
- package/lib/components/sequence/index.js +0 -13
- package/lib/components/sequence/lunatic-sequence.js +0 -30
- package/lib/components/sequence/sequence.spec.js +0 -75
- package/lib/components/subsequence/index.js +0 -13
- package/lib/components/subsequence/subsequence.js +0 -32
- package/lib/components/suggester/find-best-label/find-best-label.js +0 -49
- package/lib/components/suggester/find-best-label/index.js +0 -13
- package/lib/components/suggester/idb-suggester/idb-suggester.js +0 -72
- package/lib/components/suggester/idb-suggester/index.js +0 -12
- package/lib/components/suggester/index.js +0 -13
- package/lib/components/suggester/lunatic-suggester.js +0 -70
- package/lib/components/suggester/searching/index.js +0 -13
- package/lib/components/summary/html/summary-container.js +0 -14
- package/lib/components/summary/html/summary-responses.js +0 -56
- package/lib/components/summary/html/summary-title.js +0 -19
- package/lib/components/summary/index.js +0 -12
- package/lib/components/switch/html/switch.js +0 -71
- package/lib/components/switch/index.js +0 -13
- package/lib/components/switch/lunatic-switch.js +0 -63
- package/lib/components/table/lunatic-table.js +0 -72
- package/lib/components/textarea/html/textarea.js +0 -54
- package/lib/components/textarea/html/textarea.spec.js +0 -38
- package/lib/components/textarea/index.js +0 -13
- package/lib/components/textarea/lunatic-textarea.js +0 -77
- package/lib/src/components/button/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +0 -13
- package/lib/src/components/checkbox/checkbox-boolean/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +0 -8
- package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +0 -8
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +0 -9
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +0 -14
- package/lib/src/components/checkbox/checkbox-group/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +0 -11
- package/lib/src/components/checkbox/checkbox-one/html/checkbox-one.d.ts +0 -5
- package/lib/src/components/checkbox/checkbox-one/index.d.ts +0 -1
- package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +0 -3
- package/lib/src/components/checkbox/commons/index.d.ts +0 -1
- package/lib/src/components/checkbox/index.d.ts +0 -3
- package/lib/src/components/commons/components/combo-box/combo-box-content-box.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/combo-box.d.ts +0 -23
- package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +0 -6
- package/lib/src/components/commons/components/combo-box/combo-box.type.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/index.d.ts +0 -1
- package/lib/src/components/commons/components/combo-box/panel/combo-box-option.d.ts +0 -8
- package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +0 -20
- package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +0 -18
- package/lib/src/components/commons/components/combo-box/selection/combo-box-label-selection.d.ts +0 -11
- package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +0 -21
- package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +0 -11
- package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +0 -13
- package/lib/src/components/commons/components/description.d.ts +0 -22
- package/lib/src/components/commons/components/errors/errors.d.ts +0 -11
- package/lib/src/components/commons/components/errors/index.d.ts +0 -1
- package/lib/src/components/commons/components/fab/fab.d.ts +0 -7
- package/lib/src/components/commons/components/fab/index.d.ts +0 -1
- package/lib/src/components/commons/components/field-container/field-container.d.ts +0 -6
- package/lib/src/components/commons/components/field-container/index.d.ts +0 -1
- package/lib/src/components/commons/components/fieldset.d.ts +0 -13
- package/lib/src/components/commons/components/html-table/index.d.ts +0 -6
- package/lib/src/components/commons/components/label/index.d.ts +0 -1
- package/lib/src/components/commons/components/label/label.d.ts +0 -14
- package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +0 -12
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +0 -12
- package/lib/src/components/commons/components/md-label/generateUniqueId.d.ts +0 -1
- package/lib/src/components/commons/components/md-label/index.d.ts +0 -1
- package/lib/src/components/commons/components/md-label/link.d.ts +0 -7
- package/lib/src/components/commons/components/missing/index.d.ts +0 -1
- package/lib/src/components/commons/components/nothing-to-display.d.ts +0 -2
- package/lib/src/components/commons/components/orchestrated-component.d.ts +0 -8
- package/lib/src/components/commons/components/variable-status/img/index.d.ts +0 -2
- package/lib/src/components/commons/components/variable-status/index.d.ts +0 -1
- package/lib/src/components/commons/components/variable-status/variable-status.d.ts +0 -16
- package/lib/src/components/commons/create-customizable-field.d.ts +0 -3
- package/lib/src/components/commons/icons/index.d.ts +0 -10
- package/lib/src/components/commons/index.d.ts +0 -13
- package/lib/src/components/commons/safety-label.d.ts +0 -3
- package/lib/src/components/commons/use-document-add-event-listener.d.ts +0 -2
- package/lib/src/components/commons/use-on-handle-change.d.ts +0 -12
- package/lib/src/components/component-set/html/component-set-legend.d.ts +0 -8
- package/lib/src/components/component-set/html/component-set-wrapper.d.ts +0 -6
- package/lib/src/components/component-set/html/component-set.d.ts +0 -10
- package/lib/src/components/component-set/lunatic-component-set.d.ts +0 -3
- package/lib/src/components/datepicker/html/datepicker.d.ts +0 -18
- package/lib/src/components/datepicker/index.d.ts +0 -1
- package/lib/src/components/datepicker/lunatic-datepicker.d.ts +0 -10
- package/lib/src/components/declarations/declaration.d.ts +0 -6
- package/lib/src/components/declarations/declarations-after-text.d.ts +0 -4
- package/lib/src/components/declarations/declarations-before-text.d.ts +0 -4
- package/lib/src/components/declarations/declarations-detachable.d.ts +0 -4
- package/lib/src/components/declarations/declarations.d.ts +0 -15
- package/lib/src/components/declarations/index.d.ts +0 -4
- package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +0 -3
- package/lib/src/components/dropdown/html/dropdown-simple/index.d.ts +0 -1
- package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +0 -8
- package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +0 -7
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +0 -17
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/filter-options.d.ts +0 -6
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/get-label.d.ts +0 -9
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/letters-matching.d.ts +0 -2
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/match.d.ts +0 -2
- package/lib/src/components/dropdown/html/dropdown-writable/filter-tools/prepare-prefix.d.ts +0 -2
- package/lib/src/components/dropdown/html/dropdown-writable/index.d.ts +0 -1
- package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +0 -8
- package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +0 -8
- package/lib/src/components/dropdown/html/dropdown.d.ts +0 -12
- package/lib/src/components/dropdown/html/dropdown.spec.d.ts +0 -1
- package/lib/src/components/dropdown/index.d.ts +0 -1
- package/lib/src/components/dropdown/lunatic-dropdown.d.ts +0 -3
- package/lib/src/components/duration/duration.d.ts +0 -4
- package/lib/src/components/duration/durationInput.d.ts +0 -11
- package/lib/src/components/duration/index.d.ts +0 -1
- package/lib/src/components/filter-description/component.d.ts +0 -7
- package/lib/src/components/filter-description/component.spec.d.ts +0 -1
- package/lib/src/components/filter-description/index.d.ts +0 -1
- package/lib/src/components/index.d.ts +0 -31
- package/lib/src/components/input/html/input.d.ts +0 -17
- package/lib/src/components/input/html/input.spec.d.ts +0 -1
- package/lib/src/components/input/index.d.ts +0 -1
- package/lib/src/components/input/lunatic-input.d.ts +0 -3
- package/lib/src/components/input-number/html/input-number.d.ts +0 -20
- package/lib/src/components/input-number/html/input-number.spec.d.ts +0 -1
- package/lib/src/components/input-number/index.d.ts +0 -1
- package/lib/src/components/input-number/lunatic-input-number.d.ts +0 -3
- package/lib/src/components/loop/block-for-loop.d.ts +0 -22
- package/lib/src/components/loop/loop-button.d.ts +0 -7
- package/lib/src/components/loop/loop-header.d.ts +0 -9
- package/lib/src/components/loop/loop.d.ts +0 -2
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +0 -23
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.spec.d.ts +0 -1
- package/lib/src/components/modal/html/modal.d.ts +0 -11
- package/lib/src/components/modal/index.d.ts +0 -1
- package/lib/src/components/modal/lunatic-modal.d.ts +0 -3
- package/lib/src/components/modal-controls/close-or-skip.d.ts +0 -8
- package/lib/src/components/modal-controls/close-or-skip.spec.d.ts +0 -1
- package/lib/src/components/modal-controls/index.d.ts +0 -1
- package/lib/src/components/modal-controls/modal-container.d.ts +0 -3
- package/lib/src/components/modal-controls/modal-container.spec.d.ts +0 -1
- package/lib/src/components/modal-controls/modal-controls.d.ts +0 -11
- package/lib/src/components/modal-controls/modal-controls.spec.d.ts +0 -1
- package/lib/src/components/question/Question.d.ts +0 -7
- package/lib/src/components/question/index.d.ts +0 -1
- package/lib/src/components/question-explication/html/question-explication.d.ts +0 -7
- package/lib/src/components/question-explication/index.d.ts +0 -1
- package/lib/src/components/question-explication/lunatic-question-explication.d.ts +0 -3
- package/lib/src/components/question-explication/question-explication.spec.d.ts +0 -1
- package/lib/src/components/questions/index.d.ts +0 -2
- package/lib/src/components/questions/question-context.d.ts +0 -4
- package/lib/src/components/questions/question-information.d.ts +0 -4
- package/lib/src/components/radio/html/radio-group-content.d.ts +0 -19
- package/lib/src/components/radio/html/radio-group-content.spec.d.ts +0 -1
- package/lib/src/components/radio/html/radio-option.spec.d.ts +0 -1
- package/lib/src/components/radio/index.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-container.d.ts +0 -6
- package/lib/src/components/roundabout/components/roundabout-container.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-it-button.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-it-container.d.ts +0 -5
- package/lib/src/components/roundabout/components/roundabout-it-container.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-it-title.d.ts +0 -5
- package/lib/src/components/roundabout/components/roundabout-it-title.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-label.d.ts +0 -5
- package/lib/src/components/roundabout/components/roundabout-label.spec.d.ts +0 -1
- package/lib/src/components/roundabout/components/roundabout-pending.d.ts +0 -3
- package/lib/src/components/roundabout/components/roundabout-pending.spec.d.ts +0 -1
- package/lib/src/components/roundabout/index.d.ts +0 -1
- package/lib/src/components/roundabout/lunatic-roundabout.d.ts +0 -6
- package/lib/src/components/roundabout/redirect.d.ts +0 -6
- package/lib/src/components/sequence/html/sequence.d.ts +0 -5
- package/lib/src/components/sequence/index.d.ts +0 -1
- package/lib/src/components/sequence/lunatic-sequence.d.ts +0 -3
- package/lib/src/components/sequence/sequence.spec.d.ts +0 -1
- package/lib/src/components/subsequence/index.d.ts +0 -1
- package/lib/src/components/subsequence/subsequence.d.ts +0 -3
- package/lib/src/components/subsequence/subsequence.spec.d.ts +0 -1
- package/lib/src/components/suggester/find-best-label/find-best-label.d.ts +0 -2
- package/lib/src/components/suggester/find-best-label/index.d.ts +0 -1
- package/lib/src/components/suggester/idb-suggester/check-store.d.ts +0 -11
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +0 -9
- package/lib/src/components/suggester/idb-suggester/index.d.ts +0 -1
- package/lib/src/components/suggester/index.d.ts +0 -1
- package/lib/src/components/suggester/lunatic-suggester.d.ts +0 -3
- package/lib/src/components/suggester/searching/create-searching.d.ts +0 -7
- package/lib/src/components/suggester/searching/index.d.ts +0 -1
- package/lib/src/components/summary/html/summary-container.d.ts +0 -2
- package/lib/src/components/summary/html/summary-responses.d.ts +0 -14
- package/lib/src/components/summary/html/summary-title.d.ts +0 -5
- package/lib/src/components/summary/index.d.ts +0 -1
- package/lib/src/components/summary/lunatic-summary.d.ts +0 -8
- package/lib/src/components/switch/html/switch.d.ts +0 -18
- package/lib/src/components/switch/index.d.ts +0 -1
- package/lib/src/components/switch/lunatic-switch.d.ts +0 -3
- package/lib/src/components/table/lunatic-table.d.ts +0 -3
- package/lib/src/components/table/table-header.d.ts +0 -11
- package/lib/src/components/textarea/html/textarea.d.ts +0 -19
- package/lib/src/components/textarea/html/textarea.spec.d.ts +0 -1
- package/lib/src/components/textarea/index.d.ts +0 -1
- package/lib/src/components/textarea/lunatic-textarea.d.ts +0 -18
- package/lib/src/use-lunatic/reducer/reduce-go-next-page.spec.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/reduce-go-previous-page.spec.d.ts +0 -1
- package/lib/stories/checkbox-group/sourceComponentset.json +0 -424
- package/lib/stories/component-set/component-set.stories.js +0 -53
- package/lib/stories/component-set/data-loop.json +0 -18
- package/lib/stories/component-set/data-roundabout.json +0 -25
- package/lib/stories/component-set/data.json +0 -25
- package/lib/stories/component-set/source-loop.json +0 -308
- package/lib/stories/component-set/source-roundabout.json +0 -434
- package/lib/stories/component-set/source.json +0 -113
- package/lib/stories/custom-mui/checkbox-boolean-mui.js +0 -31
- package/lib/stories/custom-mui/checkbox-group-mui.js +0 -67
- package/lib/stories/custom-mui/checkbox-one-mui.js +0 -15
- package/lib/stories/custom-mui/index.js +0 -111
- package/lib/stories/custom-mui/input-mui.js +0 -51
- package/lib/stories/custom-mui/input-number-mui.js +0 -39
- package/lib/stories/custom-mui/radio-mui.js +0 -61
- package/lib/stories/custom-mui/suggester-mui/index.js +0 -13
- package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +0 -301
- package/lib/stories/custom-mui/switch-mui.js +0 -46
- package/lib/stories/custom-mui/table-mui.js +0 -27
- package/lib/stories/custom-mui/tbody-mui.js +0 -22
- package/lib/stories/custom-mui/td-mui.js +0 -24
- package/lib/stories/custom-mui/textarea-mui.js +0 -42
- package/lib/stories/custom-mui/th-mui.js +0 -23
- package/lib/stories/custom-mui/thead-mui.js +0 -22
- package/lib/stories/custom-mui/tr-mui.js +0 -32
- package/lib/stories/modal/source.json +0 -97
- package/lib/stories/pairwise/source-componentset.json +0 -292
- package/lib/stories/question-context/question-context.stories.js +0 -31
- package/lib/stories/question-context/source.json +0 -13
- package/lib/stories/question-explication/question-explication.stories.js +0 -31
- package/lib/stories/question-explication/source.json +0 -17
- package/lib/stories/question-information/source.json +0 -14
- package/lib/stories/suggester/simple.json +0 -168
- package/lib/stories/suggester/source-component-set.json +0 -67
- package/lib/tests/utils/lunatic.d.ts +0 -25
- package/lib/use-lunatic/reducer/reduce-go-next-page.spec.js +0 -13
- package/lib/use-lunatic/reducer/reduce-go-previous-page.spec.js +0 -14
- /package/lib/components/{checkbox/checkbox-one/html/checkbox-one.scss → CheckboxOne/CheckboxOne.scss} +0 -0
- /package/lib/components/{datepicker/html/datepicker.scss → Datepicker/Datepicker.scss} +0 -0
- /package/lib/components/{datepicker/html → Datepicker}/DatepickerField.js +0 -0
- /package/lib/components/{dropdown/html/dropdown.scss → Dropdown/Dropdown.scss} +0 -0
- /package/lib/components/{duration/duration.scss → Duration/Duration.scss} +0 -0
- /package/lib/components/{duration → Duration}/durationUtils.js +0 -0
- /package/lib/components/{duration → Duration}/formatDuration.js +0 -0
- /package/lib/components/{duration → Duration}/formatDuration.spec.js +0 -0
- /package/lib/components/{duration → Duration}/getDurationFromValue.js +0 -0
- /package/lib/components/{input/html/input.scss → Input/Input.scss} +0 -0
- /package/lib/components/{input/html/__snapshots__/input.spec.tsx.snap → Input/__snapshots__/Input.spec.tsx.snap} +0 -0
- /package/lib/components/{input-number/html/input-number.scss → InputNumber/InputNumber.scss} +0 -0
- /package/lib/components/{loop → Loop}/constant.js +0 -0
- /package/lib/components/{radio/radio.scss → Radio/Radio.scss} +0 -0
- /package/lib/components/{loop/roster-for-loop/roster.scss → RosterForLoop/RosterForLoop.scss} +0 -0
- /package/lib/components/{loop/roster-for-loop/__snapshots__/roster-for-loop.spec.tsx.snap → RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap} +0 -0
- /package/lib/components/{roundabout/components/roundabout.scss → Roundabout/Roundabout.scss} +0 -0
- /package/lib/components/{sequence/html/sequence.scss → Sequence/Sequence.scss} +0 -0
- /package/lib/components/{suggester/html → Suggester/icons}/alert-icon.svg +0 -0
- /package/lib/components/{suggester/html → Suggester/icons}/wait-icon.svg +0 -0
- /package/lib/components/{suggester/html → Suggester/icons}/warn-icon.svg +0 -0
- /package/lib/components/{switch/html → Switch}/switch.scss +0 -0
- /package/lib/components/{textarea/html/textarea.scss → Textarea/Textarea.scss} +0 -0
- /package/lib/components/{textarea/html/__snapshots__/textarea.spec.tsx.snap → Textarea/__snapshots__/Textarea.spec.tsx.snap} +0 -0
- /package/lib/components/{button/button.scss → shared/Button/Button.scss} +0 -0
- /package/lib/components/{button/__snapshots__/lunatic-button.spec.tsx.snap → shared/Button/__snapshots__/Button.spec.tsx.snap} +0 -0
- /package/lib/components/{checkbox/commons/checkbox-option.scss → shared/Checkbox/CheckboxOption.scss} +0 -0
- /package/lib/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.js +0 -0
- /package/lib/components/{commons/components/combo-box/combo-box.scss → shared/Combobox/Combobox.scss} +0 -0
- /package/lib/components/{commons/components/combo-box/combo-box.type.js → shared/Combobox/ComboboxType.js} +0 -0
- /package/lib/components/{commons/components/combo-box/keyboard-key-codes.js → shared/Combobox/constants.js} +0 -0
- /package/lib/components/{commons/components/errors/errors.scss → shared/ComponentErrors/ComponentErrors.scss} +0 -0
- /package/lib/components/{declarations/declarations.scss → shared/Declarations/Declarations.scss} +0 -0
- /package/lib/components/{commons/components/fieldset.scss → shared/Fieldset/Fieldset.scss} +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/checkbox-checked-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/closed-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/cross-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/icon-props.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/load-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/lunatic-icon.scss +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/network-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/on-drag-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/opened-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/radio-checked-icon.js +0 -0
- /package/lib/components/{commons/icons → shared/Icons}/radio-unchecked-icon.js +0 -0
- /package/lib/components/{commons/components/label/label.scss → shared/Label/Label.scss} +0 -0
- /package/lib/components/{commons/components/missing/missing.scss → shared/Missing/Missing.scss} +0 -0
- /package/lib/components/{modal-controls/modal-controls.scss → shared/ModalControls/ModalControls.scss} +0 -0
- /package/lib/components/{radio/html/radio-group.scss → shared/Radio/RadioGroup.scss} +0 -0
- /package/lib/components/{commons/components/html-table/table.scss → shared/Table/Table.scss} +0 -0
- /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/edited.png +0 -0
- /package/lib/components/{commons/components/variable-status/img → shared/VariableStatus/icons}/forced.png +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.scss +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.spec.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/dragger/index.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/index.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.spec.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.js +0 -0
- /package/lib/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.spec.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.js +0 -0
- /package/lib/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget.scss +0 -0
- /package/lib/src/components/{button/lunatic-button.spec.d.ts → CheckboxBoolean/CheckboxBoolean.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/checkbox-boolean/html/checkbox-boolean.spec.d.ts → CheckboxGroup/CustomCheckboxGroup.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/checkbox-group/html/checkbox-group-content.spec.d.ts → CheckboxOne/CheckboxOne.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/checkbox-one/html/checkbox-one.spec.d.ts → Datepicker/Datepicker.spec.d.ts} +0 -0
- /package/lib/src/components/{datepicker/html → Datepicker}/DatepickerField.d.ts +0 -0
- /package/lib/src/components/{checkbox/commons/checkbox-option.spec.d.ts → Dropdown/Dropdown.spec.d.ts} +0 -0
- /package/lib/src/components/{duration → Duration}/durationUtils.d.ts +0 -0
- /package/lib/src/components/{duration → Duration}/formatDuration.d.ts +0 -0
- /package/lib/src/components/{duration → Duration}/formatDuration.spec.d.ts +0 -0
- /package/lib/src/components/{duration → Duration}/getDurationFromValue.d.ts +0 -0
- /package/lib/src/components/{commons/components/combo-box/combo-box-container.spec.d.ts → FilterDescription/FilterDescription.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/combo-box-option.spec.d.ts → Input/Input.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/option-container.spec.d.ts → InputNumber/InputNumber.spec.d.ts} +0 -0
- /package/lib/src/components/{loop → Loop}/constant.d.ts +0 -0
- /package/lib/src/components/{pairwise-links/pairwise-links.d.ts → PairwiseLinks/PairwiseLinks.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/panel-container.spec.d.ts → RosterForLoop/RosterForLoop.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/panel/panel.spec.d.ts → Roundabout/RoundaboutItButton.spec.d.ts} +0 -0
- /package/lib/src/components/{roundabout → Roundabout}/redirect.spec.d.ts +0 -0
- /package/lib/src/components/{roundabout → Roundabout}/roundabout.spec.d.ts +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/LabelOrInput.spec.d.ts → Subsequence/Subsequence.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/clear-button.spec.d.ts → Textarea/Textarea.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/combo-box-label-selection.spec.d.ts → shared/Button/Button.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/label-selection.spec.d.ts → shared/Button/IconButton.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/selection-container.spec.d.ts → shared/Checkbox/CheckboxOption.spec.d.ts} +0 -0
- /package/lib/src/components/{checkbox/commons → shared/Checkbox}/getShortcutKey.d.ts +0 -0
- /package/lib/src/components/{commons/components/combo-box/selection/selection.spec.d.ts → shared/Combobox/ComboboxContainer.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/description.spec.d.ts → shared/Combobox/Panel/ComboboxOption.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/dragger/dragger.spec.d.ts → shared/Combobox/Panel/ComboboxOptionContainer.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/errors/errors.spec.d.ts → shared/Combobox/Panel/ComboboxPanel.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/fab/fab.spec.d.ts → shared/Combobox/Panel/ComboboxPanelContainer.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/field-container/filed-container.spec.d.ts → shared/Combobox/Selection/ComboboxClearButton.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/fieldset.spec.d.ts → shared/Combobox/Selection/ComboboxLabelSelection.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/table.spec.d.ts → shared/Combobox/Selection/ComboboxSelection.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/combo-box/keyboard-key-codes.d.ts → shared/Combobox/constants.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/tbody.spec.d.ts → shared/ComponentErrors/ComponentErrors.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/td.spec.d.ts → shared/Declarations/Declarations.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/th.spec.d.ts → shared/Fieldset/Fieldset.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-checked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/checkbox-unchecked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/closed-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/cross-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/icon-props.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/load-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/lunatic-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/network-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/on-drag-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/opened-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/radio-checked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/icons → shared/Icons}/radio-unchecked-icon.d.ts +0 -0
- /package/lib/src/components/{commons/components/html-table/thead.spec.d.ts → shared/Label/Label.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/html-table/tr.spec.d.ts → shared/MDLabel/MDLabel.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/is-network/is-network.spec.d.ts → shared/Missing/Missing.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/is-network/use-online-status.spec.d.ts → shared/ModalControls/ModalControls.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/label/label.spec.d.ts → shared/Radio/RadioOption.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/md-label/md-label.spec.d.ts → shared/Table/Table.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/missing/missing.spec.d.ts → shared/Table/Tbody.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/nothing-to-display.spec.d.ts → shared/Table/Td.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components/variable-status/variable-status.spec.d.ts → shared/Table/Th.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/use-on-handle-change.spec.d.ts → shared/Table/Thead.spec.d.ts} +0 -0
- /package/lib/src/components/{component-set/html/component-set.spec.d.ts → shared/Table/Tr.spec.d.ts} +0 -0
- /package/lib/src/components/{datepicker/html/datepicker.spec.d.ts → shared/VariableStatus/VariableStatus.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/dragger.d.ts +0 -0
- /package/lib/src/components/{declarations/declaration.spec.d.ts → shared/suggester-loader-widget/dragger/dragger.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/dragger/index.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/index.d.ts +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/index.d.ts +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/is-network.d.ts +0 -0
- /package/lib/src/components/{declarations/declarations.spec.d.ts → shared/suggester-loader-widget/is-network/is-network.spec.d.ts} +0 -0
- /package/lib/src/components/{commons/components → shared/suggester-loader-widget}/is-network/use-online-status.d.ts +0 -0
- /package/lib/src/components/{dropdown/html/dropdown-writable/filter-tools/filter-options.spec.d.ts → shared/suggester-loader-widget/is-network/use-online-status.spec.d.ts} +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/progress.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/action-tool.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/index.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/tools/tools.d.ts +0 -0
- /package/lib/src/components/{suggester-loader-widget → shared/suggester-loader-widget}/widget-container.d.ts +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { LunaticComponentDefinition } from './type';
|
|
2
2
|
/**
|
|
3
|
-
* Pour le
|
|
4
|
-
* Ils échappent donc aux controls. On les substitue ici au
|
|
3
|
+
* Pour le Question : les composants du fieldset n'existe pas dans pages.
|
|
4
|
+
* Ils échappent donc aux controls. On les substitue ici au Question.
|
|
5
5
|
* On ne peut pas les ajouter directement dans pages (en spécifiant un page), car ils s'afficheraient 2 fois : dans le fieldset et en dessus, comme
|
|
6
6
|
* des composant à part entière.
|
|
7
7
|
* D'autres composant pourraient un jour figurer ici.
|
|
8
8
|
*/
|
|
9
9
|
export declare function replaceComponentSequence(components: Array<LunaticComponentDefinition>): ((import("./type-source").ComponentTypeBase & import("./type-source").ComponentSequenceType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentSubSequenceType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRosterForLoopType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentLoopType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentTableType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentNumberType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentDatePickerType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentCheckboxGroupType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentCheckboxBooleanType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRadioType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentFilterDescriptionType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentDropdownType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentPairWiseLinksType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRoundaboutType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentSuggesterType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentInputOrTextareaType) | (import("./type-source").ComponentTypeBase & {
|
|
10
10
|
componentType: "CheckboxOne";
|
|
11
|
-
}) | (import("./type-source").ComponentTypeBase &
|
|
12
|
-
componentType: "ConfirmationModal";
|
|
13
|
-
}) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentComponentSetType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentQuestionType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentQuestionExplicationType))[];
|
|
11
|
+
}) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentQuestionType))[];
|
|
@@ -63,9 +63,7 @@ export type ComponentTypeBase = {
|
|
|
63
63
|
};
|
|
64
64
|
export type ComponentType = (ComponentTypeBase & ComponentSequenceType) | (ComponentTypeBase & ComponentSubSequenceType) | (ComponentTypeBase & ComponentRosterForLoopType) | (ComponentTypeBase & ComponentLoopType) | (ComponentTypeBase & ComponentTableType) | (ComponentTypeBase & ComponentNumberType) | (ComponentTypeBase & ComponentDatePickerType) | (ComponentTypeBase & ComponentCheckboxGroupType) | (ComponentTypeBase & ComponentCheckboxBooleanType) | (ComponentTypeBase & ComponentRadioType) | (ComponentTypeBase & ComponentFilterDescriptionType) | (ComponentTypeBase & ComponentDropdownType) | (ComponentTypeBase & ComponentPairWiseLinksType) | (ComponentTypeBase & ComponentRoundaboutType) | (ComponentTypeBase & ComponentSuggesterType) | (ComponentTypeBase & ComponentInputOrTextareaType) | (ComponentTypeBase & {
|
|
65
65
|
componentType: 'CheckboxOne';
|
|
66
|
-
}) | (ComponentTypeBase &
|
|
67
|
-
componentType: 'ConfirmationModal';
|
|
68
|
-
}) | (ComponentTypeBase & ComponentComponentSetType) | (ComponentTypeBase & ComponentQuestionType) | (ComponentTypeBase & ComponentQuestionExplicationType);
|
|
66
|
+
}) | (ComponentTypeBase & ComponentQuestionType);
|
|
69
67
|
export type ComponentTypeEnum = ComponentType['componentType'];
|
|
70
68
|
export type ComponentInputOrTextareaType = {
|
|
71
69
|
componentType: 'Input' | 'Textarea';
|
|
@@ -196,10 +194,6 @@ export type ComponentQuestionType = {
|
|
|
196
194
|
components: ComponentType[];
|
|
197
195
|
description: LabelType;
|
|
198
196
|
};
|
|
199
|
-
export type ComponentComponentSetType = {
|
|
200
|
-
componentType: 'ComponentSet';
|
|
201
|
-
components: ComponentType[];
|
|
202
|
-
};
|
|
203
197
|
export type ComponentSuggesterType = {
|
|
204
198
|
componentType: 'Suggester';
|
|
205
199
|
storeName: string;
|
|
@@ -295,8 +289,3 @@ export type LunaticSource = {
|
|
|
295
289
|
};
|
|
296
290
|
};
|
|
297
291
|
};
|
|
298
|
-
export type ComponentQuestionExplicationType = {
|
|
299
|
-
componentType: 'QuestionExplication';
|
|
300
|
-
description: string;
|
|
301
|
-
bgColor?: string;
|
|
302
|
-
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { LunaticData, LunaticState } from './type';
|
|
3
3
|
import type { LunaticSource } from './type-source';
|
|
4
4
|
import type { LunaticComponentType } from '../components/type';
|
|
5
|
-
declare function useLunatic(source: LunaticSource, data: LunaticData | undefined, { features, preferences, savingType, onChange, management, shortcut, initialPage, lastReachedPage, autoSuggesterLoading, activeControls, getReferentiel,
|
|
5
|
+
declare function useLunatic(source: LunaticSource, data: LunaticData | undefined, { features, preferences, savingType, onChange, management, shortcut, initialPage, lastReachedPage, autoSuggesterLoading, activeControls, getReferentiel, withOverview, missing, missingStrategy, missingShortcut, dontKnowButton, refusedButton, workersBasePath, trackChanges, }: {
|
|
6
6
|
features?: LunaticState['features'];
|
|
7
7
|
preferences?: LunaticState['preferences'];
|
|
8
8
|
savingType?: LunaticState['savingType'];
|
|
@@ -14,7 +14,6 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
14
14
|
autoSuggesterLoading?: boolean;
|
|
15
15
|
getReferentiel?: (name: string) => Promise<Array<unknown>>;
|
|
16
16
|
activeControls?: boolean;
|
|
17
|
-
custom?: Record<string, FunctionComponent<unknown>>;
|
|
18
17
|
withOverview?: boolean;
|
|
19
18
|
missing?: boolean;
|
|
20
19
|
missingStrategy?: () => void;
|
|
@@ -31,8 +30,8 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
31
30
|
only?: (keyof {
|
|
32
31
|
InputNumber: import("../components/type").LunaticBaseProps<number | null> & {
|
|
33
32
|
min?: number | undefined;
|
|
34
|
-
max
|
|
35
|
-
decimals
|
|
33
|
+
max?: number | undefined;
|
|
34
|
+
decimals?: number | undefined;
|
|
36
35
|
unit?: string | undefined;
|
|
37
36
|
response: {
|
|
38
37
|
name: string;
|
|
@@ -51,18 +50,11 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
51
50
|
name: string;
|
|
52
51
|
};
|
|
53
52
|
};
|
|
54
|
-
Sequence: Pick<import("../components/type").LunaticBaseProps<string>, "
|
|
55
|
-
Subsequence: Pick<import("../components/type").LunaticBaseProps<string>, "
|
|
56
|
-
|
|
57
|
-
QuestionInformation: Pick<import("../components/type").LunaticBaseProps<unknown>, "label" | "description">;
|
|
58
|
-
Question: Pick<import("../components/type").LunaticBaseProps<unknown>, "label" | "id" | "description" | "declarations"> & {
|
|
53
|
+
Sequence: Pick<import("../components/type").LunaticBaseProps<string>, "id" | "label" | "style" | "description" | "declarations">;
|
|
54
|
+
Subsequence: Pick<import("../components/type").LunaticBaseProps<string>, "id" | "label" | "declarations">;
|
|
55
|
+
Question: Pick<import("../components/type").LunaticBaseProps<unknown>, "id" | "label" | "description" | "declarations"> & {
|
|
59
56
|
components: import("./commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
60
57
|
};
|
|
61
|
-
ComponentSet: import("../components/type").LunaticBaseProps<unknown> & {
|
|
62
|
-
components: import("./commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
63
|
-
value: Record<string, unknown>;
|
|
64
|
-
response: undefined;
|
|
65
|
-
};
|
|
66
58
|
RosterForLoop: import("../components/type").LunaticBaseProps<unknown> & {
|
|
67
59
|
lines: {
|
|
68
60
|
min: number;
|
|
@@ -78,6 +70,8 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
78
70
|
value: Record<string, unknown[]>;
|
|
79
71
|
header?: {
|
|
80
72
|
label: import("react").ReactNode;
|
|
73
|
+
rowspan?: number | undefined;
|
|
74
|
+
colspan?: number | undefined;
|
|
81
75
|
}[] | undefined;
|
|
82
76
|
paginatedLoop?: boolean | undefined;
|
|
83
77
|
};
|
|
@@ -140,7 +134,7 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
140
134
|
};
|
|
141
135
|
CheckboxOne: import("../components/type").LunaticBaseProps<string | null> & {
|
|
142
136
|
options: {
|
|
143
|
-
description
|
|
137
|
+
description?: import("react").ReactNode;
|
|
144
138
|
label: import("react").ReactNode;
|
|
145
139
|
value: string;
|
|
146
140
|
}[];
|
|
@@ -158,11 +152,6 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
158
152
|
} | undefined;
|
|
159
153
|
};
|
|
160
154
|
CheckboxBoolean: import("../components/type").LunaticBaseProps<boolean> & {
|
|
161
|
-
options: {
|
|
162
|
-
description: import("react").ReactNode;
|
|
163
|
-
label: import("react").ReactNode;
|
|
164
|
-
value: string;
|
|
165
|
-
}[];
|
|
166
155
|
response: {
|
|
167
156
|
name: string;
|
|
168
157
|
};
|
|
@@ -215,10 +204,7 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
215
204
|
name: string;
|
|
216
205
|
};
|
|
217
206
|
};
|
|
218
|
-
FilterDescription: Pick<import("../components/type").LunaticBaseProps<string>, "
|
|
219
|
-
QuestionExplication: Pick<import("../components/type").LunaticBaseProps<string>, "label" | "id" | "description"> & {
|
|
220
|
-
bgColor?: string | undefined;
|
|
221
|
-
};
|
|
207
|
+
FilterDescription: Pick<import("../components/type").LunaticBaseProps<string>, "id" | "label">;
|
|
222
208
|
PairwiseLinks: Omit<import("../components/type").LunaticBaseProps<unknown>, "value"> & {
|
|
223
209
|
components: import("./type").LunaticComponentDefinition[];
|
|
224
210
|
features?: ["VTL"] | ["VTL", "MD"] | undefined;
|
|
@@ -240,12 +226,12 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
240
226
|
status: import("./use-suggesters").SuggesterStatus;
|
|
241
227
|
timestamp: number;
|
|
242
228
|
};
|
|
243
|
-
optionRenderer: FunctionComponent<{
|
|
229
|
+
optionRenderer: import("react").FunctionComponent<{
|
|
244
230
|
option: import("../components/type").SuggesterOption;
|
|
245
231
|
placeholder?: string | undefined;
|
|
246
232
|
search?: string | undefined;
|
|
247
233
|
}>;
|
|
248
|
-
labelRenderer: FunctionComponent<{
|
|
234
|
+
labelRenderer: import("react").FunctionComponent<{
|
|
249
235
|
option?: import("../components/type").SuggesterOption | undefined;
|
|
250
236
|
selected?: boolean | undefined;
|
|
251
237
|
search?: string | undefined;
|
|
@@ -257,6 +243,11 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
257
243
|
};
|
|
258
244
|
};
|
|
259
245
|
Summary: import("../components/type").LunaticBaseProps<string | null> & {
|
|
246
|
+
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
247
|
+
iteration?: number | number[] | undefined;
|
|
248
|
+
bindingDependencies?: string[] | undefined;
|
|
249
|
+
deps?: string[] | undefined;
|
|
250
|
+
} | undefined) => T;
|
|
260
251
|
sections: {
|
|
261
252
|
id: string;
|
|
262
253
|
responses?: {
|
|
@@ -268,23 +259,12 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
268
259
|
iterations?: number | undefined;
|
|
269
260
|
}[];
|
|
270
261
|
};
|
|
271
|
-
ConfirmationModal: import("../components/type").LunaticBaseProps<string | null> & {
|
|
272
|
-
goToPage: (page: {
|
|
273
|
-
page: string;
|
|
274
|
-
iteration?: number | undefined;
|
|
275
|
-
nbIterations?: number | undefined;
|
|
276
|
-
subPage?: number | undefined;
|
|
277
|
-
}) => void;
|
|
278
|
-
page: string;
|
|
279
|
-
goNextPage: () => void;
|
|
280
|
-
goPreviousPage: () => void;
|
|
281
|
-
};
|
|
282
262
|
})[] | undefined;
|
|
283
263
|
except?: (keyof {
|
|
284
264
|
InputNumber: import("../components/type").LunaticBaseProps<number | null> & {
|
|
285
265
|
min?: number | undefined;
|
|
286
|
-
max
|
|
287
|
-
decimals
|
|
266
|
+
max?: number | undefined;
|
|
267
|
+
decimals?: number | undefined;
|
|
288
268
|
unit?: string | undefined;
|
|
289
269
|
response: {
|
|
290
270
|
name: string;
|
|
@@ -303,18 +283,11 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
303
283
|
name: string;
|
|
304
284
|
};
|
|
305
285
|
};
|
|
306
|
-
Sequence: Pick<import("../components/type").LunaticBaseProps<string>, "
|
|
307
|
-
Subsequence: Pick<import("../components/type").LunaticBaseProps<string>, "
|
|
308
|
-
|
|
309
|
-
QuestionInformation: Pick<import("../components/type").LunaticBaseProps<unknown>, "label" | "description">;
|
|
310
|
-
Question: Pick<import("../components/type").LunaticBaseProps<unknown>, "label" | "id" | "description" | "declarations"> & {
|
|
286
|
+
Sequence: Pick<import("../components/type").LunaticBaseProps<string>, "id" | "label" | "style" | "description" | "declarations">;
|
|
287
|
+
Subsequence: Pick<import("../components/type").LunaticBaseProps<string>, "id" | "label" | "declarations">;
|
|
288
|
+
Question: Pick<import("../components/type").LunaticBaseProps<unknown>, "id" | "label" | "description" | "declarations"> & {
|
|
311
289
|
components: import("./commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
312
290
|
};
|
|
313
|
-
ComponentSet: import("../components/type").LunaticBaseProps<unknown> & {
|
|
314
|
-
components: import("./commons/fill-components/fill-components").FilledLunaticComponentProps[];
|
|
315
|
-
value: Record<string, unknown>;
|
|
316
|
-
response: undefined;
|
|
317
|
-
};
|
|
318
291
|
RosterForLoop: import("../components/type").LunaticBaseProps<unknown> & {
|
|
319
292
|
lines: {
|
|
320
293
|
min: number;
|
|
@@ -330,6 +303,8 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
330
303
|
value: Record<string, unknown[]>;
|
|
331
304
|
header?: {
|
|
332
305
|
label: import("react").ReactNode;
|
|
306
|
+
rowspan?: number | undefined;
|
|
307
|
+
colspan?: number | undefined;
|
|
333
308
|
}[] | undefined;
|
|
334
309
|
paginatedLoop?: boolean | undefined;
|
|
335
310
|
};
|
|
@@ -392,7 +367,7 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
392
367
|
};
|
|
393
368
|
CheckboxOne: import("../components/type").LunaticBaseProps<string | null> & {
|
|
394
369
|
options: {
|
|
395
|
-
description
|
|
370
|
+
description?: import("react").ReactNode;
|
|
396
371
|
label: import("react").ReactNode;
|
|
397
372
|
value: string;
|
|
398
373
|
}[];
|
|
@@ -410,11 +385,6 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
410
385
|
} | undefined;
|
|
411
386
|
};
|
|
412
387
|
CheckboxBoolean: import("../components/type").LunaticBaseProps<boolean> & {
|
|
413
|
-
options: {
|
|
414
|
-
description: import("react").ReactNode;
|
|
415
|
-
label: import("react").ReactNode;
|
|
416
|
-
value: string;
|
|
417
|
-
}[];
|
|
418
388
|
response: {
|
|
419
389
|
name: string;
|
|
420
390
|
};
|
|
@@ -467,10 +437,7 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
467
437
|
name: string;
|
|
468
438
|
};
|
|
469
439
|
};
|
|
470
|
-
FilterDescription: Pick<import("../components/type").LunaticBaseProps<string>, "
|
|
471
|
-
QuestionExplication: Pick<import("../components/type").LunaticBaseProps<string>, "label" | "id" | "description"> & {
|
|
472
|
-
bgColor?: string | undefined;
|
|
473
|
-
};
|
|
440
|
+
FilterDescription: Pick<import("../components/type").LunaticBaseProps<string>, "id" | "label">;
|
|
474
441
|
PairwiseLinks: Omit<import("../components/type").LunaticBaseProps<unknown>, "value"> & {
|
|
475
442
|
components: import("./type").LunaticComponentDefinition[];
|
|
476
443
|
features?: ["VTL"] | ["VTL", "MD"] | undefined;
|
|
@@ -492,12 +459,12 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
492
459
|
status: import("./use-suggesters").SuggesterStatus;
|
|
493
460
|
timestamp: number;
|
|
494
461
|
};
|
|
495
|
-
optionRenderer: FunctionComponent<{
|
|
462
|
+
optionRenderer: import("react").FunctionComponent<{
|
|
496
463
|
option: import("../components/type").SuggesterOption;
|
|
497
464
|
placeholder?: string | undefined;
|
|
498
465
|
search?: string | undefined;
|
|
499
466
|
}>;
|
|
500
|
-
labelRenderer: FunctionComponent<{
|
|
467
|
+
labelRenderer: import("react").FunctionComponent<{
|
|
501
468
|
option?: import("../components/type").SuggesterOption | undefined;
|
|
502
469
|
selected?: boolean | undefined;
|
|
503
470
|
search?: string | undefined;
|
|
@@ -509,6 +476,11 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
509
476
|
};
|
|
510
477
|
};
|
|
511
478
|
Summary: import("../components/type").LunaticBaseProps<string | null> & {
|
|
479
|
+
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
480
|
+
iteration?: number | number[] | undefined;
|
|
481
|
+
bindingDependencies?: string[] | undefined;
|
|
482
|
+
deps?: string[] | undefined;
|
|
483
|
+
} | undefined) => T;
|
|
512
484
|
sections: {
|
|
513
485
|
id: string;
|
|
514
486
|
responses?: {
|
|
@@ -520,19 +492,8 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
520
492
|
iterations?: number | undefined;
|
|
521
493
|
}[];
|
|
522
494
|
};
|
|
523
|
-
ConfirmationModal: import("../components/type").LunaticBaseProps<string | null> & {
|
|
524
|
-
goToPage: (page: {
|
|
525
|
-
page: string;
|
|
526
|
-
iteration?: number | undefined;
|
|
527
|
-
nbIterations?: number | undefined;
|
|
528
|
-
subPage?: number | undefined;
|
|
529
|
-
}) => void;
|
|
530
|
-
page: string;
|
|
531
|
-
goNextPage: () => void;
|
|
532
|
-
goPreviousPage: () => void;
|
|
533
|
-
};
|
|
534
495
|
})[] | undefined;
|
|
535
|
-
}) => import("./commons/fill-components/fill-components").FilledLunaticComponentProps<"CheckboxOne" | "
|
|
496
|
+
}) => import("./commons/fill-components/fill-components").FilledLunaticComponentProps<"CheckboxOne" | "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "Question">[];
|
|
536
497
|
goPreviousPage: () => void;
|
|
537
498
|
goNextPage: (payload?: {}) => void;
|
|
538
499
|
goToPage: (page: {
|
|
@@ -561,7 +522,7 @@ declare function useLunatic(source: LunaticSource, data: LunaticData | undefined
|
|
|
561
522
|
};
|
|
562
523
|
waiting: boolean;
|
|
563
524
|
getData: (withRefreshedCalculated: boolean, variableNames?: string[]) => LunaticData;
|
|
564
|
-
Provider: FunctionComponent<{
|
|
525
|
+
Provider: import("react").FunctionComponent<{
|
|
565
526
|
children?: import("react").ReactNode;
|
|
566
527
|
}>;
|
|
567
528
|
onChange: (response: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as CONSTANTES from '
|
|
1
|
+
export * as CONSTANTES from '../../constants/indexedDBStore';
|
|
2
2
|
export { default as openOrCreateStore } from './open-or-create-store';
|
|
3
3
|
export { default as clearStoreData } from './clear-store-data';
|
|
4
4
|
export { default as clearStoreInfo } from './clear-store-info';
|
|
@@ -63,7 +63,7 @@ TestDylan.args = {
|
|
|
63
63
|
};
|
|
64
64
|
var DeclarationsSimples = exports.DeclarationsSimples = Template.bind({});
|
|
65
65
|
DeclarationsSimples.args = {
|
|
66
|
-
id: '
|
|
66
|
+
id: 'Declarations-simples',
|
|
67
67
|
pagination: true,
|
|
68
68
|
source: _V2_DeclarationsSimples["default"]
|
|
69
69
|
};
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
|
-
var _source = _interopRequireDefault(require("
|
|
9
|
+
var _source = _interopRequireDefault(require("../input/source"));
|
|
10
|
+
var _data = _interopRequireDefault(require("../input/data"));
|
|
10
11
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -17,7 +18,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
17
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
20
|
var stories = {
|
|
20
|
-
title: '
|
|
21
|
+
title: 'Behaviour/Slots',
|
|
21
22
|
component: _orchestrator["default"],
|
|
22
23
|
argTypes: _defaultArgTypes["default"]
|
|
23
24
|
};
|
|
@@ -26,7 +27,38 @@ var Template = function Template(args) {
|
|
|
26
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_orchestrator["default"], _objectSpread({}, args));
|
|
27
28
|
};
|
|
28
29
|
var Default = exports.Default = Template.bind({});
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @var
|
|
33
|
+
*/
|
|
34
|
+
var CustomInput = function CustomInput(_ref) {
|
|
35
|
+
var _onChange = _ref.onChange,
|
|
36
|
+
value = _ref.value,
|
|
37
|
+
label = _ref.label;
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("fieldset", {
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("legend", {
|
|
40
|
+
style: {
|
|
41
|
+
color: 'gray',
|
|
42
|
+
fontSize: '1rem'
|
|
43
|
+
},
|
|
44
|
+
children: label
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
46
|
+
style: {
|
|
47
|
+
border: 'solid 3px gray',
|
|
48
|
+
padding: '.5rem 1rem'
|
|
49
|
+
},
|
|
50
|
+
value: value,
|
|
51
|
+
onChange: function onChange(e) {
|
|
52
|
+
return _onChange(e.target.value);
|
|
53
|
+
}
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
};
|
|
29
57
|
Default.args = {
|
|
30
58
|
id: 'input',
|
|
31
|
-
source: _source["default"]
|
|
59
|
+
source: _source["default"],
|
|
60
|
+
data: _data["default"],
|
|
61
|
+
slots: {
|
|
62
|
+
Input: CustomInput
|
|
63
|
+
}
|
|
32
64
|
};
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.Loop = exports.Default =
|
|
6
|
+
exports["default"] = exports.Loop = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
9
|
var _source = _interopRequireDefault(require("./source"));
|
|
10
|
-
var _sourceComponentset = _interopRequireDefault(require("./sourceComponentset"));
|
|
11
10
|
var _sourceLoop = _interopRequireDefault(require("./sourceLoop"));
|
|
12
11
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
13
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -41,10 +40,6 @@ Default.args = {
|
|
|
41
40
|
source: _source["default"],
|
|
42
41
|
shortcut: true
|
|
43
42
|
};
|
|
44
|
-
var ComponentSet = exports.ComponentSet = Template.bind({});
|
|
45
|
-
ComponentSet.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
46
|
-
source: _sourceComponentset["default"]
|
|
47
|
-
});
|
|
48
43
|
var Loop = exports.Loop = Template.bind({});
|
|
49
44
|
Loop.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
50
45
|
source: _sourceLoop["default"]
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.Basic = void 0;
|
|
7
7
|
var _addonActions = require("@storybook/addon-actions");
|
|
8
|
-
var
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
|
+
var _Datepicker = require("../../components/Datepicker/Datepicker");
|
|
10
9
|
var _default = exports["default"] = {
|
|
11
10
|
title: 'Components/Datepicker',
|
|
12
|
-
component:
|
|
11
|
+
component: _Datepicker.Datepicker,
|
|
13
12
|
args: {
|
|
14
13
|
value: '1920-02-01',
|
|
15
14
|
dateFormat: 'YYYY-MM-DD',
|
|
@@ -18,7 +18,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
var stories = {
|
|
21
|
-
title: 'Components/Loop
|
|
21
|
+
title: 'Components/Loop',
|
|
22
22
|
component: _orchestrator["default"],
|
|
23
23
|
argTypes: _defaultArgTypes["default"]
|
|
24
24
|
};
|
|
@@ -23,7 +23,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
23
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
24
24
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
25
|
var stories = {
|
|
26
|
-
title: 'Components/
|
|
26
|
+
title: 'Components/RosterForLoop',
|
|
27
27
|
component: _orchestrator["default"],
|
|
28
28
|
argTypes: _defaultArgTypes["default"]
|
|
29
29
|
};
|
|
@@ -17,7 +17,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
var stories = {
|
|
20
|
-
title: '
|
|
20
|
+
title: 'Behaviour/Markdown',
|
|
21
21
|
component: _orchestrator["default"],
|
|
22
22
|
argTypes: _defaultArgTypes["default"]
|
|
23
23
|
};
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.Filled = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
9
|
var _source = _interopRequireDefault(require("./source.json"));
|
|
10
10
|
var _data = _interopRequireDefault(require("./data"));
|
|
11
|
-
var _sourceComponentset = _interopRequireDefault(require("./source-componentset.json"));
|
|
12
11
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
13
12
|
var _e2e = require("../../../tests/utils/e2e");
|
|
14
13
|
var _timer = require("../../../tests/utils/timer");
|
|
@@ -39,13 +38,6 @@ Default.args = {
|
|
|
39
38
|
pagination: true,
|
|
40
39
|
data: _data["default"]
|
|
41
40
|
};
|
|
42
|
-
var PairwiseInComponentSet = exports.PairwiseInComponentSet = Template.bind({});
|
|
43
|
-
PairwiseInComponentSet.args = {
|
|
44
|
-
id: 'links-componentset',
|
|
45
|
-
source: _sourceComponentset["default"],
|
|
46
|
-
pagination: true,
|
|
47
|
-
data: _data["default"]
|
|
48
|
-
};
|
|
49
41
|
var Filled = exports.Filled = Template.bind({});
|
|
50
42
|
Filled.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
51
43
|
id: 'links-filled'
|
|
@@ -2697,7 +2697,7 @@
|
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
},
|
|
2700
|
-
"storeName": "L_DEPNAIS-1-
|
|
2700
|
+
"storeName": "L_DEPNAIS-1-1-0",
|
|
2701
2701
|
"bindingDependencies": [
|
|
2702
2702
|
"DPNAI_FRANCE",
|
|
2703
2703
|
"NOM",
|
|
@@ -12739,7 +12739,7 @@
|
|
|
12739
12739
|
],
|
|
12740
12740
|
"suggesters": [
|
|
12741
12741
|
{
|
|
12742
|
-
"name": "L_DEPNAIS-1-
|
|
12742
|
+
"name": "L_DEPNAIS-1-1-0",
|
|
12743
12743
|
"fields": [
|
|
12744
12744
|
{ "name": "label", "rules": "soft" },
|
|
12745
12745
|
|