@inseefr/lunatic 2.5.2-rc1-beta → 2.6.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +186 -0
- package/README.md +111 -94
- package/lib/components/button/lunatic-button.js +10 -13
- package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +0 -1
- package/lib/components/commons/components/combo-box/combo-box-content.js +2 -1
- package/lib/components/commons/components/combo-box/combo-box.js +94 -66
- package/lib/components/commons/components/combo-box/combo-box.stories.js +69 -8
- package/lib/components/commons/components/combo-box/panel/panel.js +0 -1
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +4 -1
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.spec.js +2 -4
- package/lib/components/commons/components/combo-box/selection/combo-box-label-selection.js +5 -2
- package/lib/components/commons/components/combo-box/selection/label-selection.js +4 -2
- package/lib/components/commons/components/combo-box/selection/selection.js +2 -0
- package/lib/components/commons/components/fab/fab.js +0 -1
- package/lib/components/commons/components/fieldset.js +0 -1
- package/lib/components/commons/components/lunatic-component-with-label.js +1 -3
- package/lib/components/commons/components/md-label/md-label.js +5 -1
- package/lib/components/commons/components/md-label/md-label.spec.js +15 -0
- package/lib/components/commons/components/missing/missing.js +1 -3
- package/lib/components/commons/components/variable-status/variable-status.js +2 -3
- package/lib/components/commons/create-customizable-field.js +1 -0
- package/lib/components/commons/icons/closed-icon.js +0 -2
- package/lib/components/commons/icons/cross-icon.js +0 -2
- package/lib/components/commons/index.js +0 -7
- package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +124 -0
- package/lib/components/component-set/html/{legend/legend.js → component-set-legend.js} +4 -6
- package/lib/components/component-set/html/component-set-wrapper.js +16 -0
- package/lib/components/component-set/html/component-set.js +7 -8
- package/lib/components/component-set/html/component-set.spec.js +91 -0
- package/lib/components/component-set/lunatic-component-set.js +19 -9
- package/lib/components/datepicker/html/__snapshots__/datepicker.spec.tsx.snap +34 -0
- package/lib/components/datepicker/html/datepicker-input.js +0 -1
- package/lib/components/datepicker/html/datepicker.js +1 -4
- package/lib/components/datepicker/html/datepicker.spec.js +38 -0
- package/lib/components/datepicker/lunatic-datepicker.js +0 -1
- package/lib/components/dropdown/html/__snapshots__/dropdown.spec.tsx.snap +85 -0
- package/lib/components/dropdown/html/dropdown-simple/dropdown-simple.js +3 -2
- package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +0 -2
- package/lib/components/dropdown/html/dropdown-writable/dropdown-writable.js +4 -5
- package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +1 -4
- package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +1 -3
- package/lib/components/dropdown/html/dropdown.js +4 -2
- package/lib/components/dropdown/html/dropdown.spec.js +48 -0
- package/lib/components/dropdown/lunatic-dropdown.js +5 -4
- package/lib/components/duration/getDurationFromValue.js +0 -1
- package/lib/components/filter-description/component.js +0 -2
- package/lib/components/index.js +6 -5
- package/lib/components/input/html/__snapshots__/input.spec.tsx.snap +34 -0
- package/lib/components/input/html/input.js +4 -5
- package/lib/components/input/html/input.spec.js +81 -0
- package/lib/components/input/lunatic-input.js +4 -2
- package/lib/components/input-number/html/__snapshots__/input-number.spec.tsx.snap +38 -90
- package/lib/components/input-number/html/input-number-thousand.js +2 -0
- package/lib/components/input-number/html/input-number.js +3 -0
- package/lib/components/input-number/html/input-number.spec.js +35 -19
- package/lib/components/input-number/lunatic-input-number.js +2 -1
- package/lib/components/loop/{block-for-loop/block-for-loop.js → block-for-loop.js} +39 -64
- package/lib/components/loop/{commons/handle-row-button.js → loop-button.js} +4 -7
- package/lib/components/loop/{roster-for-loop/header.js → loop-header.js} +4 -8
- package/lib/components/loop/loop.js +19 -65
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +102 -83
- package/lib/components/loop/{commons/get-init-length.js → utils/get-initial-nb-rows.js} +6 -5
- package/lib/components/{loop/roster-for-loop/body.js → lunatic-components.js} +46 -37
- package/lib/components/modal/html/modal.js +45 -73
- package/lib/components/modal/html/modal.scss +25 -42
- package/lib/components/modal/lunatic-modal.js +33 -9
- package/lib/components/modal-controls/close-or-skip.js +0 -1
- package/lib/components/modal-controls/modal-controls.spec.js +5 -6
- package/lib/components/pairwise-links/orchestrator.js +1 -4
- package/lib/components/pairwise-links/row.js +1 -4
- package/lib/components/question-explication/html/question-explication.js +0 -1
- package/lib/components/radio/html/radio-group-content.js +4 -3
- package/lib/components/radio/html/radio-group.js +4 -2
- package/lib/components/radio/html/radio-option.js +7 -8
- package/lib/components/radio/lunatic-radio-group.js +4 -2
- package/lib/components/roundabout/components/roundabout-it-title.js +0 -2
- package/lib/components/roundabout/components/roundabout-label.js +0 -2
- package/lib/components/roundabout/lunatic-roundabout.js +1 -4
- package/lib/components/roundabout/roundabout.js +0 -1
- package/lib/components/suggester/html/notification.js +0 -1
- package/lib/components/suggester/html/suggester.js +3 -3
- package/lib/components/suggester/idb-suggester/check-store.js +3 -5
- package/lib/components/suggester/idb-suggester/idb-suggester.js +4 -5
- package/lib/components/suggester/idb-suggester/suggester-notification.js +2 -2
- package/lib/components/suggester/lunatic-suggester.js +3 -1
- package/lib/components/suggester-loader-widget/loader-row.js +1 -4
- package/lib/components/suggester-loader-widget/loader.js +1 -3
- package/lib/components/summary/html/summary-responses.js +13 -7
- package/lib/components/summary/lunatic-summary.js +8 -4
- package/lib/components/switch/html/switch.js +0 -1
- package/lib/components/table/cell.js +0 -2
- package/lib/components/table/header.js +0 -2
- package/lib/components/table/row.js +0 -1
- package/lib/components/textarea/html/__snapshots__/textarea.spec.tsx.snap +30 -0
- package/lib/components/textarea/html/textarea.js +5 -6
- package/lib/components/textarea/html/textarea.spec.js +38 -0
- package/lib/components/textarea/lunatic-textarea.js +4 -2
- package/lib/index.js +8 -0
- package/lib/src/components/button/lunatic-button.d.ts +5 -3
- package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +2 -2
- package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-group/checkbox-group-content.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +4 -4
- package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +2 -2
- package/lib/src/components/checkbox/checkbox-one/html/checkbox-one.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -1
- package/lib/src/components/checkbox/commons/checkbox-option.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/combo-box-content-box.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/combo-box-content.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/combo-box.d.ts +6 -5
- package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +30 -2
- package/lib/src/components/commons/components/combo-box/combo-box.type.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/panel/combo-box-option.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/panel/panel-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +3 -2
- package/lib/src/components/commons/components/combo-box/selection/combo-box-label-selection.d.ts +2 -1
- package/lib/src/components/commons/components/combo-box/selection/input.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/selection/label-selection.d.ts +4 -3
- package/lib/src/components/commons/components/combo-box/selection/selection-container.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +3 -2
- package/lib/src/components/commons/components/description.d.ts +1 -1
- package/lib/src/components/commons/components/dragger/dragger.d.ts +1 -1
- package/lib/src/components/commons/components/errors/errors.d.ts +1 -1
- package/lib/src/components/commons/components/fab/fab.d.ts +1 -1
- package/lib/src/components/commons/components/field-container/field-container.d.ts +1 -1
- package/lib/src/components/commons/components/fieldset.d.ts +3 -3
- package/lib/src/components/commons/components/html-table/table.d.ts +1 -1
- package/lib/src/components/commons/components/html-table/thead.d.ts +1 -1
- package/lib/src/components/commons/components/label/label.d.ts +1 -1
- package/lib/src/components/commons/components/lunatic-component-with-label.d.ts +2 -2
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +2 -2
- package/lib/src/components/commons/components/md-label/link.d.ts +1 -1
- package/lib/src/components/commons/components/md-label/md-label.spec.d.ts +1 -0
- package/lib/src/components/commons/components/missing/missing.d.ts +1 -1
- package/lib/src/components/commons/components/orchestrated-component.d.ts +2 -2
- package/lib/src/components/commons/components/variable-status/variable-status.d.ts +1 -1
- package/lib/src/components/commons/create-customizable-field.d.ts +1 -1
- package/lib/src/components/commons/icons/checkbox-checked-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/checkbox-unchecked-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/closed-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/cross-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/load-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/lunatic-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/network-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/on-drag-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/opened-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/radio-checked-icon.d.ts +1 -1
- package/lib/src/components/commons/icons/radio-unchecked-icon.d.ts +1 -1
- package/lib/src/components/commons/index.d.ts +0 -1
- package/lib/src/components/commons/safety-label.d.ts +1 -1
- package/lib/src/components/component-set/html/component-set-legend.d.ts +8 -0
- package/lib/src/components/component-set/html/component-set-wrapper.d.ts +6 -0
- package/lib/src/components/component-set/html/component-set.d.ts +5 -4
- package/lib/src/components/component-set/html/component-set.spec.d.ts +1 -0
- package/lib/src/components/component-set/lunatic-component-set.d.ts +3 -4
- package/lib/src/components/datepicker/html/datepicker-container.d.ts +1 -1
- package/lib/src/components/datepicker/html/datepicker-input.d.ts +1 -1
- package/lib/src/components/datepicker/html/datepicker.d.ts +3 -3
- package/lib/src/components/datepicker/html/datepicker.spec.d.ts +1 -0
- package/lib/src/components/datepicker/lunatic-datepicker.d.ts +2 -2
- package/lib/src/components/declarations/declaration.d.ts +1 -1
- package/lib/src/components/declarations/declarations-after-text.d.ts +1 -1
- package/lib/src/components/declarations/declarations-before-text.d.ts +1 -1
- package/lib/src/components/declarations/declarations-detachable.d.ts +1 -1
- package/lib/src/components/declarations/declarations.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown-simple/dropdown-simple.d.ts +2 -2
- package/lib/src/components/dropdown/html/dropdown-simple/simple-label-renderer.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown-simple/simple-option-renderer.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +5 -4
- package/lib/src/components/dropdown/html/dropdown-writable/writable-label-renderer.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown-writable/writable-option-renderer.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown.d.ts +4 -3
- package/lib/src/components/dropdown/html/dropdown.spec.d.ts +1 -0
- package/lib/src/components/dropdown/lunatic-dropdown.d.ts +2 -2
- package/lib/src/components/duration/duration.d.ts +1 -1
- package/lib/src/components/duration/durationInput.d.ts +1 -1
- package/lib/src/components/duration/formatDuration.d.ts +1 -1
- package/lib/src/components/duration/getDurationFromValue.d.ts +1 -1
- package/lib/src/components/duration/index.d.ts +1 -1
- package/lib/src/components/filter-description/component.d.ts +2 -2
- package/lib/src/components/index.d.ts +4 -4
- package/lib/src/components/input/html/input.d.ts +4 -3
- package/lib/src/components/input/html/input.spec.d.ts +1 -0
- package/lib/src/components/input/lunatic-input.d.ts +1 -1
- package/lib/src/components/input-number/html/input-number-thousand.d.ts +2 -1
- package/lib/src/components/input-number/html/input-number.d.ts +3 -2
- package/lib/src/components/input-number/lunatic-input-number.d.ts +1 -1
- package/lib/src/components/loop/{block-for-loop/block-for-loop.d.ts → block-for-loop.d.ts} +6 -4
- package/lib/src/components/loop/loop-button.d.ts +7 -0
- package/lib/src/components/loop/loop-header.d.ts +9 -0
- package/lib/src/components/loop/loop.d.ts +2 -3
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +7 -5
- package/lib/src/components/loop/utils/get-initial-nb-rows.d.ts +4 -0
- package/lib/src/components/lunatic-components.d.ts +13 -0
- package/lib/src/components/modal/html/modal.d.ts +10 -13
- package/lib/src/components/modal/lunatic-modal.d.ts +2 -2
- package/lib/src/components/modal-controls/close-or-skip.d.ts +1 -1
- package/lib/src/components/modal-controls/modal-container.d.ts +1 -1
- package/lib/src/components/modal-controls/modal-controls.d.ts +2 -2
- package/lib/src/components/pairwise-links/orchestrator.d.ts +1 -1
- package/lib/src/components/pairwise-links/pairwise-links.d.ts +1 -1
- package/lib/src/components/pairwise-links/row.d.ts +1 -1
- package/lib/src/components/question-explication/html/question-explication.d.ts +1 -1
- package/lib/src/components/question-explication/lunatic-question-explication.d.ts +1 -1
- package/lib/src/components/radio/html/radio-group-content.d.ts +3 -2
- package/lib/src/components/radio/html/radio-group.d.ts +3 -2
- package/lib/src/components/radio/html/radio-option.d.ts +3 -2
- package/lib/src/components/roundabout/components/roundabout-it-title.d.ts +3 -3
- package/lib/src/components/roundabout/components/roundabout-label.d.ts +3 -3
- package/lib/src/components/roundabout/lunatic-roundabout.d.ts +1 -1
- package/lib/src/components/roundabout/roundabout.d.ts +2 -2
- package/lib/src/components/sequence/html/sequence.d.ts +1 -1
- package/lib/src/components/sequence/lunatic-sequence.d.ts +2 -2
- package/lib/src/components/suggester/html/notification.d.ts +2 -2
- package/lib/src/components/suggester/html/suggester.d.ts +6 -5
- package/lib/src/components/suggester/idb-suggester/check-store.d.ts +1 -1
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +3 -3
- package/lib/src/components/suggester/idb-suggester/suggester-notification.d.ts +1 -1
- package/lib/src/components/suggester/idb-suggester/suggester-status.d.ts +1 -1
- package/lib/src/components/suggester/lunatic-suggester.d.ts +2 -2
- package/lib/src/components/suggester/searching/create-searching.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/loader-row.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/loader.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/tools/action-tool.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/tools/tools.d.ts +1 -1
- package/lib/src/components/suggester-loader-widget/widget.d.ts +1 -1
- package/lib/src/components/summary/html/summary-container.d.ts +1 -1
- package/lib/src/components/summary/html/summary-responses.d.ts +3 -1
- package/lib/src/components/summary/html/summary-title.d.ts +1 -1
- package/lib/src/components/summary/lunatic-summary.d.ts +3 -2
- package/lib/src/components/switch/html/switch.d.ts +3 -3
- package/lib/src/components/switch/lunatic-switch.d.ts +1 -1
- package/lib/src/components/table/cell.d.ts +1 -1
- package/lib/src/components/table/header.d.ts +1 -1
- package/lib/src/components/table/lunatic-table.d.ts +1 -1
- package/lib/src/components/table/row.d.ts +1 -1
- package/lib/src/components/table/table-orchestrator.d.ts +1 -1
- package/lib/src/components/textarea/html/textarea.d.ts +4 -3
- package/lib/src/components/textarea/html/textarea.spec.d.ts +1 -0
- package/lib/src/components/textarea/lunatic-textarea.d.ts +1 -1
- package/lib/src/components/type.d.ts +9 -6
- package/lib/src/i18n/build-dictionary.d.ts +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/use-lunatic/actions.d.ts +4 -8
- package/lib/src/use-lunatic/commons/calculated-variables.d.ts +1 -1
- package/lib/src/use-lunatic/commons/check-loops.d.ts +1 -1
- package/lib/src/use-lunatic/commons/check-pager.d.ts +1 -1
- package/lib/src/use-lunatic/commons/compile-controls.d.ts +1 -1
- package/lib/src/use-lunatic/commons/compose.d.ts +1 -1
- package/lib/src/use-lunatic/commons/create-map-pages.d.ts +2 -2
- package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +1 -1
- package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +1 -1
- package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +2 -2
- package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +3 -3
- package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +5 -2
- package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +15 -10
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +38 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-management.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-pagination.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +62 -33
- package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +1 -1
- package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +1 -1
- package/lib/src/use-lunatic/commons/get-components-from-state.d.ts +1 -2
- package/lib/src/use-lunatic/commons/get-data.d.ts +1 -1
- package/lib/src/use-lunatic/commons/get-errors-without-empty-value.d.ts +1 -1
- package/lib/src/use-lunatic/commons/getOverview.d.ts +1 -1
- package/lib/src/use-lunatic/commons/is-First-last-page.d.ts +1 -1
- package/lib/src/use-lunatic/commons/is-paginated-loop.d.ts +1 -1
- package/lib/src/use-lunatic/commons/is-roundabout.d.ts +1 -1
- package/lib/src/use-lunatic/commons/page-navigation.d.ts +2 -2
- package/lib/src/use-lunatic/commons/page-tag.d.ts +1 -1
- package/lib/src/use-lunatic/commons/page.d.ts +2 -2
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +2 -2
- package/lib/src/use-lunatic/hooks/use-loop-variables.d.ts +1 -1
- package/lib/src/use-lunatic/lunatic-context.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +3 -3
- package/lib/src/use-lunatic/reducer/commons/validate-condition-filter.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/overview/overview-on-change.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-go-next-page.d.ts +2 -4
- package/lib/src/use-lunatic/reducer/reduce-go-next-page.spec.d.ts +1 -0
- package/lib/src/use-lunatic/reducer/reduce-go-previous-page.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/reduce-go-previous-page.spec.d.ts +1 -0
- package/lib/src/use-lunatic/reducer/reduce-go-to-page.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-on-set-waiting.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/reducer.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-component-control.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-roundabout-control.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.d.ts +2 -2
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +3 -1
- package/lib/src/use-lunatic/type-source.d.ts +3 -1
- package/lib/src/use-lunatic/type.d.ts +3 -3
- package/lib/src/use-lunatic/use-lunatic.d.ts +21 -15
- package/lib/src/use-lunatic/use-suggesters.d.ts +1 -1
- package/lib/src/utils/array.d.ts +8 -0
- package/lib/src/utils/dom.d.ts +14 -0
- package/lib/src/utils/get-component-value.d.ts +1 -1
- package/lib/src/utils/get-component-value.test.d.ts +1 -0
- package/lib/src/utils/is-element.d.ts +1 -1
- package/lib/src/utils/number.d.ts +5 -0
- package/lib/src/utils/number.spec.d.ts +1 -0
- package/lib/src/utils/store-tools/initStore.d.ts +1 -1
- package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +1 -1
- package/lib/src/utils/suggester-workers/searching/compute-score.d.ts +1 -1
- package/lib/stories/checkbox-one/source.json +2 -2
- package/lib/stories/component-set/component-set.stories.js +9 -9
- package/lib/stories/component-set/{data2.json → data-roundabout.json} +1 -1
- package/lib/stories/component-set/data.json +8 -1
- package/lib/stories/component-set/source-loop.json +308 -0
- package/lib/stories/component-set/source-roundabout.json +434 -0
- package/lib/stories/component-set/source.json +16 -2
- package/lib/stories/disabled/data.json +32 -0
- package/lib/{components/commons/components/combo-box/state-management/reduce-on-keydown/on-end.js → stories/disabled/disabled.stories.js} +25 -12
- package/lib/stories/disabled/source.json +382 -0
- package/lib/stories/input/source-with-question.json +9 -3
- package/lib/stories/input/source.json +6 -0
- package/lib/stories/loop/source-paginated.json +2 -2
- package/lib/stories/overview/source.json +1 -1
- package/lib/stories/overview/sourceWithHierarchy.json +10 -2
- package/lib/stories/pairwise/links-componentset.json +292 -0
- package/lib/stories/pairwise/pairwise-links.stories.js +11 -2
- package/lib/stories/question-explication/source.json +16 -16
- package/lib/stories/questionnaires/logement/source-sum.json +31805 -34611
- package/lib/stories/questionnaires/recensement/source.json +2 -2
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +4 -4
- package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +963 -847
- package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4350 -4090
- package/lib/stories/suggester/simple.json +4 -0
- package/lib/stories/summary/source.json +55 -40
- package/lib/stories/utils/orchestrator.js +11 -22
- package/lib/tests/utils/lunatic.d.ts +16 -2
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +13 -45
- package/lib/use-lunatic/commons/execute-expression/execute-expression.js +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +5 -1
- package/lib/use-lunatic/commons/fill-components/fill-components.js +10 -2
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +3 -0
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +66 -21
- package/lib/use-lunatic/commons/get-component-value/get-component-value.js +1 -3
- package/lib/use-lunatic/commons/page.js +6 -0
- package/lib/use-lunatic/hooks/use-loop-variables.js +1 -1
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +10 -10
- package/lib/use-lunatic/reducer/reduce-go-next-page.spec.js +13 -0
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +3 -3
- package/lib/use-lunatic/reducer/reduce-go-previous-page.spec.js +14 -0
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +3 -8
- package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +790 -924
- package/lib/use-lunatic/reducer/reducer.js +2 -2
- package/lib/use-lunatic/use-lunatic.js +5 -2
- package/lib/use-lunatic/use-lunatic.test.js +26 -0
- package/lib/utils/array.js +33 -0
- package/lib/utils/dom.js +27 -0
- package/lib/utils/get-component-value.js +13 -11
- package/lib/utils/get-component-value.test.js +57 -0
- package/lib/utils/number.js +30 -0
- package/lib/utils/number.spec.js +11 -0
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +0 -2
- package/package.json +9 -3
- package/lib/components/commons/components/combo-box/state-management/actions.js +0 -79
- package/lib/components/commons/components/combo-box/state-management/index.js +0 -25
- package/lib/components/commons/components/combo-box/state-management/reduce-on-init.js +0 -38
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-down.js +0 -30
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-up.js +0 -30
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-enter.js +0 -19
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-escape.js +0 -18
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-home.js +0 -23
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/on-tab.js +0 -18
- package/lib/components/commons/components/combo-box/state-management/reduce-on-keydown/reduce-on-keydown.js +0 -40
- package/lib/components/commons/components/combo-box/state-management/reducer.js +0 -53
- package/lib/components/commons/create-row-orchestrator.js +0 -58
- package/lib/components/component-set/html/component-set-component-container.js +0 -20
- package/lib/components/component-set/html/component-set-components.js +0 -45
- package/lib/components/component-set/html/legend/index.js +0 -13
- package/lib/components/component-set/index.js +0 -13
- package/lib/components/loop/block-for-loop/block-for-loop-ochestrator.js +0 -12
- package/lib/components/loop/block-for-loop/index.js +0 -13
- package/lib/components/loop/block-for-loop/row.js +0 -56
- package/lib/components/loop/commons/index.js +0 -20
- package/lib/components/loop/commons/row-component.js +0 -72
- package/lib/components/loop/index.js +0 -13
- package/lib/components/loop/roster-for-loop/index.js +0 -13
- package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +0 -12
- package/lib/components/loop/roster-for-loop/roster-table.js +0 -50
- package/lib/components/loop/roster-for-loop/row.js +0 -85
- package/lib/src/components/commons/components/combo-box/state-management/actions.d.ts +0 -78
- package/lib/src/components/commons/components/combo-box/state-management/index.d.ts +0 -9
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-init.d.ts +0 -4
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-down.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-arrow-up.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-end.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-enter.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-escape.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-home.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/on-tab.d.ts +0 -2
- package/lib/src/components/commons/components/combo-box/state-management/reduce-on-keydown/reduce-on-keydown.d.ts +0 -9
- package/lib/src/components/commons/components/combo-box/state-management/reducer.d.ts +0 -3
- package/lib/src/components/commons/create-row-orchestrator.d.ts +0 -32
- package/lib/src/components/component-set/html/component-set-component-container.d.ts +0 -6
- package/lib/src/components/component-set/html/component-set-components.d.ts +0 -7
- package/lib/src/components/component-set/html/legend/index.d.ts +0 -1
- package/lib/src/components/component-set/html/legend/legend.d.ts +0 -8
- package/lib/src/components/component-set/index.d.ts +0 -1
- package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +0 -51
- package/lib/src/components/loop/block-for-loop/index.d.ts +0 -1
- package/lib/src/components/loop/block-for-loop/row.d.ts +0 -23
- package/lib/src/components/loop/commons/get-init-length.d.ts +0 -2
- package/lib/src/components/loop/commons/handle-row-button.d.ts +0 -7
- package/lib/src/components/loop/commons/index.d.ts +0 -2
- package/lib/src/components/loop/commons/row-component.d.ts +0 -9
- package/lib/src/components/loop/index.d.ts +0 -1
- package/lib/src/components/loop/roster-for-loop/body.d.ts +0 -12
- package/lib/src/components/loop/roster-for-loop/header.d.ts +0 -9
- package/lib/src/components/loop/roster-for-loop/index.d.ts +0 -1
- package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +0 -51
- package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +0 -13
- package/lib/src/components/loop/roster-for-loop/row.d.ts +0 -24
- package/lib/stories/component-set/source1.json +0 -287
- package/lib/stories/component-set/source2.json +0 -413
- /package/lib/components/commons/components/combo-box/{state-management/reduce-on-keydown/keyboard-key-codes.js → keyboard-key-codes.js} +0 -0
- /package/lib/src/components/commons/components/combo-box/{state-management/reduce-on-keydown/keyboard-key-codes.d.ts → keyboard-key-codes.d.ts} +0 -0
- /package/lib/stories/component-set/{data1.json → data-loop.json} +0 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxPage": "5",
|
|
3
|
+
"components": [
|
|
4
|
+
{
|
|
5
|
+
"componentType": "Input",
|
|
6
|
+
"page": "1",
|
|
7
|
+
"label": {
|
|
8
|
+
"value": "\"Nom de l'occupant principal.\"",
|
|
9
|
+
"type": "VTL|MD"
|
|
10
|
+
},
|
|
11
|
+
"readOnly": { "value": "DISABLED_NOM", "type": "VTL" },
|
|
12
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
13
|
+
"maxLength": 30,
|
|
14
|
+
"id": "name",
|
|
15
|
+
"response": {
|
|
16
|
+
"name": "NOM"
|
|
17
|
+
},
|
|
18
|
+
"declarations": [
|
|
19
|
+
{
|
|
20
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
21
|
+
"declarationType": "INSTRUCTION",
|
|
22
|
+
"position": "BEFORE_QUESTION_TEXT",
|
|
23
|
+
"label": {
|
|
24
|
+
"value": "\"Quel est le prénom de l'occupant principal du logement ?\"",
|
|
25
|
+
"type": "VTL|MD"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
30
|
+
"declarationType": "HELP",
|
|
31
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
32
|
+
"label": {
|
|
33
|
+
"value": "\"For example, Marley.\"",
|
|
34
|
+
"type": "VTL|MD"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "radio",
|
|
41
|
+
"componentType": "Radio",
|
|
42
|
+
"mandatory": false,
|
|
43
|
+
"page": "1",
|
|
44
|
+
"label": {
|
|
45
|
+
"value": "\"Disabled or enabled!\"",
|
|
46
|
+
"type": "VTL|MD"
|
|
47
|
+
},
|
|
48
|
+
"description": {
|
|
49
|
+
"value": "\"Select whether you would like the above component to be disabled. \"",
|
|
50
|
+
"type": "VTL|MD"
|
|
51
|
+
},
|
|
52
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
53
|
+
"options": [
|
|
54
|
+
{
|
|
55
|
+
"value": true,
|
|
56
|
+
"description": {
|
|
57
|
+
"value": "\"with VTL\"",
|
|
58
|
+
"type": "VTL|MD"
|
|
59
|
+
},
|
|
60
|
+
"label": { "value": "\"Disabled\"", "type": "VTL|MD" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"value": false,
|
|
64
|
+
"description": {
|
|
65
|
+
"value": "\"with VTL\"",
|
|
66
|
+
"type": "VTL|MD"
|
|
67
|
+
},
|
|
68
|
+
"label": { "value": "\"Enabled\"", "type": "VTL|MD" }
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"response": { "name": "DISABLED_NOM" }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "radio1",
|
|
75
|
+
"componentType": "Radio",
|
|
76
|
+
"mandatory": false,
|
|
77
|
+
"page": "2",
|
|
78
|
+
"readOnly": { "value": "DISABLED_SEXE", "type": "VTL" },
|
|
79
|
+
"label": {
|
|
80
|
+
"value": "\"Quel est votre sexe ?\"",
|
|
81
|
+
"type": "VTL|MD"
|
|
82
|
+
},
|
|
83
|
+
"description": {
|
|
84
|
+
"value": "\"Ceci est un exemple pour tester le comportement pour rendre les composants en mode readOnly\"",
|
|
85
|
+
"type": "VTL|MD"
|
|
86
|
+
},
|
|
87
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
88
|
+
"options": [
|
|
89
|
+
{
|
|
90
|
+
"value": "1",
|
|
91
|
+
"description": {
|
|
92
|
+
"value": "\"Test\"",
|
|
93
|
+
"type": "VTL|MD"
|
|
94
|
+
},
|
|
95
|
+
"label": { "value": "\"masculin\"", "type": "VTL|MD" }
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "2",
|
|
99
|
+
"description": {
|
|
100
|
+
"value": "\"Test 2\"",
|
|
101
|
+
"type": "VTL|MD"
|
|
102
|
+
},
|
|
103
|
+
"label": { "value": "\"féminin\"", "type": "VTL|MD" }
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"response": { "name": "SEXE" }
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "radio3",
|
|
110
|
+
"componentType": "Radio",
|
|
111
|
+
"mandatory": false,
|
|
112
|
+
"page": "2",
|
|
113
|
+
"label": {
|
|
114
|
+
"value": "\"Disabled or enabled!\"",
|
|
115
|
+
"type": "VTL|MD"
|
|
116
|
+
},
|
|
117
|
+
"description": {
|
|
118
|
+
"value": "\"Select whether you would like the above component to be disabled. \"",
|
|
119
|
+
"type": "VTL|MD"
|
|
120
|
+
},
|
|
121
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
122
|
+
"options": [
|
|
123
|
+
{
|
|
124
|
+
"value": true,
|
|
125
|
+
"description": {
|
|
126
|
+
"value": "\"with VTL\"",
|
|
127
|
+
"type": "VTL|MD"
|
|
128
|
+
},
|
|
129
|
+
"label": { "value": "\"Disabled\"", "type": "VTL|MD" }
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"value": false,
|
|
133
|
+
"description": {
|
|
134
|
+
"value": "\"with VTL\"",
|
|
135
|
+
"type": "VTL|MD"
|
|
136
|
+
},
|
|
137
|
+
"label": { "value": "\"Enabled\"", "type": "VTL|MD" }
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"response": { "name": "DISABLED_SEXE" }
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "component-set",
|
|
144
|
+
"componentType": "ComponentSet",
|
|
145
|
+
"page": "3",
|
|
146
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
147
|
+
"label": {
|
|
148
|
+
"value": "\"## Who are you?\"",
|
|
149
|
+
"type": "VTL|MD"
|
|
150
|
+
},
|
|
151
|
+
"description": {
|
|
152
|
+
"value": "\"This is your opportunity to tell me about yourself!\"",
|
|
153
|
+
"type": "VTL|MD"
|
|
154
|
+
},
|
|
155
|
+
"components": [
|
|
156
|
+
{
|
|
157
|
+
"componentType": "Input",
|
|
158
|
+
"label": {
|
|
159
|
+
"value": "\"Nom de l'occupant principal.\"",
|
|
160
|
+
"type": "VTL|MD"
|
|
161
|
+
},
|
|
162
|
+
"readOnly": { "value": "DISABLED_NOM_COMPSET", "type": "VTL" },
|
|
163
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
164
|
+
"maxLength": 30,
|
|
165
|
+
"id": "name",
|
|
166
|
+
"response": {
|
|
167
|
+
"name": "NOM_COMPSET"
|
|
168
|
+
},
|
|
169
|
+
"declarations": [
|
|
170
|
+
{
|
|
171
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
172
|
+
"declarationType": "INSTRUCTION",
|
|
173
|
+
"position": "BEFORE_QUESTION_TEXT",
|
|
174
|
+
"label": {
|
|
175
|
+
"value": "\"Quel est le prénom de l'occupant principal du logement ?\"",
|
|
176
|
+
"type": "VTL|MD"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
181
|
+
"declarationType": "HELP",
|
|
182
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
183
|
+
"label": {
|
|
184
|
+
"value": "\"For example, Marley.\"",
|
|
185
|
+
"type": "VTL|MD"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "radio",
|
|
194
|
+
"componentType": "Radio",
|
|
195
|
+
"mandatory": false,
|
|
196
|
+
"page": "3",
|
|
197
|
+
"label": {
|
|
198
|
+
"value": "\"Disabled or enabled!\"",
|
|
199
|
+
"type": "VTL|MD"
|
|
200
|
+
},
|
|
201
|
+
"description": {
|
|
202
|
+
"value": "\"Select whether you would like the above component to be disabled. \"",
|
|
203
|
+
"type": "VTL|MD"
|
|
204
|
+
},
|
|
205
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
206
|
+
"options": [
|
|
207
|
+
{
|
|
208
|
+
"value": true,
|
|
209
|
+
"description": {
|
|
210
|
+
"value": "\"with VTL\"",
|
|
211
|
+
"type": "VTL|MD"
|
|
212
|
+
},
|
|
213
|
+
"label": { "value": "\"Disabled\"", "type": "VTL|MD" }
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"value": false,
|
|
217
|
+
"description": {
|
|
218
|
+
"value": "\"with VTL\"",
|
|
219
|
+
"type": "VTL|MD"
|
|
220
|
+
},
|
|
221
|
+
"label": { "value": "\"Enabled\"", "type": "VTL|MD" }
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"response": { "name": "DISABLED_NOM_COMPSET" }
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"componentType": "Input",
|
|
228
|
+
"page": "4",
|
|
229
|
+
"label": {
|
|
230
|
+
"value": "\"Nom de l'occupant principal.\"",
|
|
231
|
+
"type": "VTL|MD"
|
|
232
|
+
},
|
|
233
|
+
"readOnly": { "value": "DISABLED_NOM", "type": "VTL" },
|
|
234
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
235
|
+
"maxLength": 30,
|
|
236
|
+
"id": "name",
|
|
237
|
+
"response": {
|
|
238
|
+
"name": "NOM"
|
|
239
|
+
},
|
|
240
|
+
"declarations": [
|
|
241
|
+
{
|
|
242
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
243
|
+
"declarationType": "INSTRUCTION",
|
|
244
|
+
"position": "BEFORE_QUESTION_TEXT",
|
|
245
|
+
"label": {
|
|
246
|
+
"value": "\"Quel est le prénom de l'occupant principal du logement ?\"",
|
|
247
|
+
"type": "VTL|MD"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
252
|
+
"declarationType": "HELP",
|
|
253
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
254
|
+
"label": {
|
|
255
|
+
"value": "\"For example, Marley.\"",
|
|
256
|
+
"type": "VTL|MD"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "radio",
|
|
263
|
+
"componentType": "Radio",
|
|
264
|
+
"mandatory": false,
|
|
265
|
+
"page": "4",
|
|
266
|
+
"label": {
|
|
267
|
+
"value": "\"Disabled or enabled!\"",
|
|
268
|
+
"type": "VTL|MD"
|
|
269
|
+
},
|
|
270
|
+
"description": {
|
|
271
|
+
"value": "\"Select whether you would like the above component to be disabled. \"",
|
|
272
|
+
"type": "VTL|MD"
|
|
273
|
+
},
|
|
274
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
275
|
+
"options": [
|
|
276
|
+
{
|
|
277
|
+
"value": true,
|
|
278
|
+
"description": {
|
|
279
|
+
"value": "\"with VTL\"",
|
|
280
|
+
"type": "VTL|MD"
|
|
281
|
+
},
|
|
282
|
+
"label": { "value": "\"Disabled\"", "type": "VTL|MD" }
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"value": false,
|
|
286
|
+
"description": {
|
|
287
|
+
"value": "\"with VTL\"",
|
|
288
|
+
"type": "VTL|MD"
|
|
289
|
+
},
|
|
290
|
+
"label": { "value": "\"Enabled\"", "type": "VTL|MD" }
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"response": { "name": "DISABLED_PAIRWISE" }
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"variables": [
|
|
297
|
+
{
|
|
298
|
+
"variableType": "COLLECTED",
|
|
299
|
+
"name": "NOM",
|
|
300
|
+
"componentRef": "name",
|
|
301
|
+
"values": {
|
|
302
|
+
"PREVIOUS": null,
|
|
303
|
+
"COLLECTED": null,
|
|
304
|
+
"FORCED": null,
|
|
305
|
+
"EDITED": null,
|
|
306
|
+
"INPUTED": null
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"variableType": "COLLECTED",
|
|
311
|
+
"name": "DISABLED_NOM",
|
|
312
|
+
"componentRef": "name",
|
|
313
|
+
"values": {
|
|
314
|
+
"PREVIOUS": null,
|
|
315
|
+
"COLLECTED": null,
|
|
316
|
+
"FORCED": null,
|
|
317
|
+
"EDITED": null,
|
|
318
|
+
"INPUTED": null
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"variableType": "COLLECTED",
|
|
323
|
+
"name": "SEXE",
|
|
324
|
+
"componentRef": "sexe",
|
|
325
|
+
"values": {
|
|
326
|
+
"PREVIOUS": null,
|
|
327
|
+
"COLLECTED": null,
|
|
328
|
+
"FORCED": null,
|
|
329
|
+
"EDITED": null,
|
|
330
|
+
"INPUTED": null
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"variableType": "COLLECTED",
|
|
335
|
+
"name": "DISABLED_SEXE",
|
|
336
|
+
"componentRef": "sexe",
|
|
337
|
+
"values": {
|
|
338
|
+
"PREVIOUS": null,
|
|
339
|
+
"COLLECTED": null,
|
|
340
|
+
"FORCED": null,
|
|
341
|
+
"EDITED": null,
|
|
342
|
+
"INPUTED": null
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"variableType": "COLLECTED",
|
|
347
|
+
"name": "NOM_COMPSET",
|
|
348
|
+
"componentRef": "nomcompset",
|
|
349
|
+
"values": {
|
|
350
|
+
"PREVIOUS": null,
|
|
351
|
+
"COLLECTED": null,
|
|
352
|
+
"FORCED": null,
|
|
353
|
+
"EDITED": null,
|
|
354
|
+
"INPUTED": null
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"variableType": "COLLECTED",
|
|
359
|
+
"name": "DISABLED_NOM_COMPSET",
|
|
360
|
+
"componentRef": "nomcompset",
|
|
361
|
+
"values": {
|
|
362
|
+
"PREVIOUS": null,
|
|
363
|
+
"COLLECTED": null,
|
|
364
|
+
"FORCED": null,
|
|
365
|
+
"EDITED": null,
|
|
366
|
+
"INPUTED": null
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"variableType": "COLLECTED",
|
|
371
|
+
"name": "DISABLED_PAIRWISE",
|
|
372
|
+
"componentRef": "nomcompset",
|
|
373
|
+
"values": {
|
|
374
|
+
"PREVIOUS": null,
|
|
375
|
+
"COLLECTED": null,
|
|
376
|
+
"FORCED": null,
|
|
377
|
+
"EDITED": null,
|
|
378
|
+
"INPUTED": null
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
}
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
{
|
|
4
4
|
"componentType": "QuestionInformation",
|
|
5
5
|
"label": { "value": "\"Question Information\"", "type": "VTL|MD" },
|
|
6
|
-
|
|
6
|
+
"description": {
|
|
7
|
+
"value": "\"Question Information description\"",
|
|
8
|
+
"type": "VTL|MD"
|
|
9
|
+
},
|
|
7
10
|
"page": "1"
|
|
8
11
|
},
|
|
9
12
|
{
|
|
@@ -23,8 +26,11 @@
|
|
|
23
26
|
{
|
|
24
27
|
"componentType": "QuestionContext",
|
|
25
28
|
"label": { "value": "\"Question Context\"", "type": "VTL|MD" },
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
"description": {
|
|
30
|
+
"value": "\"Question Context description\"",
|
|
31
|
+
"type": "VTL|MD"
|
|
32
|
+
},
|
|
33
|
+
"page": "1"
|
|
28
34
|
},
|
|
29
35
|
{
|
|
30
36
|
"componentType": "Input",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"value": "\"Prénom de l'occupant principal.\"",
|
|
7
7
|
"type": "VTL|MD"
|
|
8
8
|
},
|
|
9
|
+
"disabled": { "value": "DISABLED", "type": "VTL" },
|
|
9
10
|
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
10
11
|
"maxLength": 30,
|
|
11
12
|
"id": "name",
|
|
@@ -86,6 +87,11 @@
|
|
|
86
87
|
"EDITED": null,
|
|
87
88
|
"INPUTED": null
|
|
88
89
|
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"variableType": "CALCULATED",
|
|
93
|
+
"name": "DISABLED",
|
|
94
|
+
"expression": { "value": "true", "type": "VTL" }
|
|
89
95
|
}
|
|
90
96
|
]
|
|
91
97
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"page": "2.1",
|
|
41
41
|
"maxLength": 20,
|
|
42
42
|
"label": {
|
|
43
|
-
"value": "\"
|
|
43
|
+
"value": "\"Questions 1, Itération : \" || GLOBAL_ITERATION_INDEX",
|
|
44
44
|
"type": "VTL"
|
|
45
45
|
},
|
|
46
46
|
"conditionFilter": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"page": "2.2",
|
|
57
57
|
"maxLength": 20,
|
|
58
58
|
"label": {
|
|
59
|
-
"value": "\"Vous avez mis en
|
|
59
|
+
"value": "\"Vous avez mis en question 1, itération \" || GLOBAL_ITERATION_INDEX || \" : \" || LIBELLE",
|
|
60
60
|
"type": "VTL"
|
|
61
61
|
},
|
|
62
62
|
"conditionFilter": {
|
|
@@ -3728,7 +3728,11 @@
|
|
|
3728
3728
|
"label": { "value": "\"VIII - \" || \"Comment\"", "type": "VTL|MD" },
|
|
3729
3729
|
"conditionFilter": { "value": "true" },
|
|
3730
3730
|
"hierarchy": {
|
|
3731
|
-
"sequence": {
|
|
3731
|
+
"sequence": {
|
|
3732
|
+
"id": "COMMENT-SEQ",
|
|
3733
|
+
"page": "38",
|
|
3734
|
+
"label": { "value": "\"VIII - \" || \"Comment\"", "type": "VTL|MD" }
|
|
3735
|
+
}
|
|
3732
3736
|
}
|
|
3733
3737
|
},
|
|
3734
3738
|
|
|
@@ -3741,7 +3745,11 @@
|
|
|
3741
3745
|
"label": { "value": "\"VIII - \" || \"Comment\"", "type": "VTL|MD" },
|
|
3742
3746
|
"conditionFilter": { "value": "true" },
|
|
3743
3747
|
"hierarchy": {
|
|
3744
|
-
"sequence": {
|
|
3748
|
+
"sequence": {
|
|
3749
|
+
"id": "COMMENT-SEQ",
|
|
3750
|
+
"page": "38",
|
|
3751
|
+
"label": { "value": "\"VIII - \" || \"Comment\"", "type": "VTL|MD" }
|
|
3752
|
+
}
|
|
3745
3753
|
},
|
|
3746
3754
|
"bindingDependencies": ["COMMENT_QE"],
|
|
3747
3755
|
"response": { "name": "COMMENT_QE" }
|