@inseefr/lunatic 2.0.0-v2 → 2.0.0-v2test
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/button/index.js +0 -2
- package/lib/components/button/lunatic-button.js +6 -16
- package/lib/components/checkbox/checkbox-boolean/checkbox-boolean.js +8 -13
- package/lib/components/checkbox/checkbox-boolean/index.js +0 -2
- package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +9 -16
- package/lib/components/checkbox/checkbox-group/checkbox-group.js +21 -33
- package/lib/components/checkbox/checkbox-group/checkbox.scss +1 -0
- package/lib/components/checkbox/checkbox-group/index.js +0 -2
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +9 -15
- package/lib/components/checkbox/checkbox-one/index.js +0 -2
- package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +5 -14
- package/lib/components/checkbox/commons/checkbox-option.js +14 -18
- package/lib/components/checkbox/commons/checkbox-option.scss +3 -0
- package/lib/components/checkbox/commons/index.js +0 -2
- package/lib/components/checkbox/index.js +0 -4
- package/lib/components/commons/build-style-object.js +3 -14
- package/lib/components/commons/components/combo-box/combo-box-container.js +3 -9
- package/lib/components/commons/components/combo-box/combo-box-content.js +6 -19
- package/lib/components/commons/components/combo-box/combo-box.js +35 -67
- package/lib/components/commons/components/combo-box/combo-box.scss +0 -10
- package/lib/components/commons/components/combo-box/index.js +0 -2
- package/lib/components/commons/components/combo-box/panel/index.js +0 -2
- package/lib/components/commons/components/combo-box/panel/option-container.js +4 -19
- package/lib/components/commons/components/combo-box/panel/panel-container.js +3 -8
- package/lib/components/commons/components/combo-box/panel/panel.js +13 -22
- package/lib/components/commons/components/combo-box/selection/delete.js +3 -19
- package/lib/components/commons/components/combo-box/selection/displayLabelOrInput.js +2 -10
- package/lib/components/commons/components/combo-box/selection/index.js +0 -2
- package/lib/components/commons/components/combo-box/selection/input.js +8 -21
- package/lib/components/commons/components/combo-box/selection/label-selection.js +8 -15
- package/lib/components/commons/components/combo-box/selection/selection-container.js +4 -9
- package/lib/components/commons/components/combo-box/selection/selection.js +12 -22
- package/lib/components/commons/components/combo-box/state-management/actions.js +6 -22
- package/lib/components/commons/components/combo-box/state-management/combo-box-context.js +0 -4
- package/lib/components/commons/components/combo-box/state-management/index.js +0 -9
- package/lib/components/commons/components/combo-box/state-management/reducer/index.js +0 -2
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-blur.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-change.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-delete.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-focus.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-init.js +8 -14
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/index.js +0 -2
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-down.js +4 -9
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-up.js +4 -9
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-end.js +4 -7
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-enter.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-escape.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-home.js +4 -7
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-tab.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/reduce-on-keydown.js +1 -20
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-select.js +4 -6
- package/lib/components/commons/components/combo-box/state-management/reducer/reducer.js +0 -22
- package/lib/components/commons/components/create-lunatic-component/create-lunatic-component.js +10 -21
- package/lib/components/commons/components/create-lunatic-component/index.js +0 -3
- package/lib/components/commons/components/default-label-renderer.js +4 -14
- package/lib/components/commons/components/default-option-renderer.js +3 -10
- package/lib/components/commons/components/dragger/dragger.js +20 -46
- package/lib/components/commons/components/dragger/index.js +0 -2
- package/lib/components/commons/components/errors/errors.js +18 -12
- package/lib/components/commons/components/errors/index.js +0 -2
- package/lib/components/commons/components/fab/fab.js +6 -14
- package/lib/components/commons/components/fab/index.js +0 -2
- package/lib/components/commons/components/field-container/field-container.js +3 -12
- package/lib/components/commons/components/field-container/index.js +0 -2
- package/lib/components/commons/components/fieldset.js +2 -10
- package/lib/components/commons/components/fieldset.scss +2 -0
- package/lib/components/commons/components/html-table/index.js +0 -7
- package/lib/components/commons/components/html-table/table.js +3 -12
- package/lib/components/commons/components/html-table/tbody.js +3 -12
- package/lib/components/commons/components/html-table/td.js +7 -16
- package/lib/components/commons/components/html-table/th.js +6 -15
- package/lib/components/commons/components/html-table/thead.js +3 -12
- package/lib/components/commons/components/html-table/tr.js +4 -13
- package/lib/components/commons/components/is-network/index.js +0 -2
- package/lib/components/commons/components/is-network/is-network.js +8 -27
- package/lib/components/commons/components/is-network/use-online-status.js +0 -9
- package/lib/components/commons/components/label.js +5 -13
- package/lib/components/commons/components/lunatic-component.js +12 -24
- package/lib/components/commons/components/lunatic-fieldset-component.js +9 -20
- package/lib/components/commons/components/md-label/index.js +0 -2
- package/lib/components/commons/components/md-label/link.js +8 -14
- package/lib/components/commons/components/md-label/md-label.js +6 -14
- package/lib/components/commons/components/missing/index.js +0 -2
- package/lib/components/commons/components/missing/missing.js +11 -25
- package/lib/components/commons/components/nothing-to-display.js +0 -4
- package/lib/components/commons/components/orchestrated-component.js +15 -25
- package/lib/components/commons/components/variable-status/img/index.js +0 -3
- package/lib/components/commons/components/variable-status/index.js +0 -2
- package/lib/components/commons/components/variable-status/variable-status.js +18 -35
- package/lib/components/commons/create-customizable-field.js +2 -14
- package/lib/components/commons/create-row-orchestrator.js +16 -21
- package/lib/components/commons/icons/checkbox-checked.icon.js +4 -9
- package/lib/components/commons/icons/checkbox-unchecked.icon.js +4 -9
- package/lib/components/commons/icons/closed.icon.js +4 -9
- package/lib/components/commons/icons/cross.icon.js +4 -9
- package/lib/components/commons/icons/index.js +0 -11
- package/lib/components/commons/icons/load.icon.js +4 -9
- package/lib/components/commons/icons/lunatic-icon.js +1 -7
- package/lib/components/commons/icons/network.icon.js +4 -9
- package/lib/components/commons/icons/on-drag.icon.js +4 -9
- package/lib/components/commons/icons/opened.icon.js +4 -9
- package/lib/components/commons/icons/radio-checked.icon.js +4 -9
- package/lib/components/commons/icons/radio-unchecked.icon.js +4 -9
- package/lib/components/commons/index.js +0 -24
- package/lib/components/commons/prop-types/declarations.js +0 -8
- package/lib/components/commons/prop-types/index.js +0 -6
- package/lib/components/commons/prop-types/lines.js +0 -4
- package/lib/components/commons/prop-types/options.js +0 -4
- package/lib/components/commons/prop-types/response.js +0 -4
- package/lib/components/commons/prop-types/value-type.js +0 -8
- package/lib/components/commons/safety-label.js +0 -8
- package/lib/components/commons/use-document-add-event-listener.js +9 -33
- package/lib/components/commons/use-on-handle-change.js +2 -5
- package/lib/components/commons/use-options-keydown.js +1 -6
- package/lib/components/commons/use-previous.js +0 -3
- package/lib/components/components.js +8 -33
- package/lib/components/datepicker/datepicker.js +9 -17
- package/lib/components/datepicker/index.js +0 -2
- package/lib/components/datepicker/lunatic-datepicker.js +5 -15
- package/lib/components/declarations/declaration.js +2 -9
- package/lib/components/declarations/declarations-after-text.js +0 -9
- package/lib/components/declarations/declarations-before-text.js +0 -9
- package/lib/components/declarations/declarations-detachable.js +0 -9
- package/lib/components/declarations/declarations.js +8 -14
- package/lib/components/declarations/index.js +0 -8
- package/lib/components/dropdown/dropdown-simple/dropdown-simple.js +7 -14
- package/lib/components/dropdown/dropdown-simple/index.js +0 -2
- package/lib/components/dropdown/dropdown-simple/simple-label-renderer.js +3 -13
- package/lib/components/dropdown/dropdown-simple/simple-option-renderer.js +2 -9
- package/lib/components/dropdown/dropdown-writable/dropdown-writable.js +11 -31
- package/lib/components/dropdown/dropdown-writable/filter-tools/filter-options.js +1 -12
- package/lib/components/dropdown/dropdown-writable/filter-tools/letters-matching.js +0 -11
- package/lib/components/dropdown/dropdown-writable/filter-tools/match.js +0 -5
- package/lib/components/dropdown/dropdown-writable/filter-tools/prepare-prefix.js +0 -4
- package/lib/components/dropdown/dropdown-writable/index.js +0 -2
- package/lib/components/dropdown/dropdown-writable/writable-label-renderer.js +3 -13
- package/lib/components/dropdown/dropdown-writable/writable-option-renderer.js +18 -52
- package/lib/components/dropdown/dropdown.js +9 -20
- package/lib/components/dropdown/index.js +0 -2
- package/lib/components/dropdown/lunatic-dropdown.js +11 -19
- package/lib/components/filter-description/component.js +3 -6
- package/lib/components/filter-description/index.js +0 -2
- package/lib/components/index.js +0 -4
- package/lib/components/input/index.js +0 -2
- package/lib/components/input/input.js +7 -19
- package/lib/components/input/lunatic-input.js +4 -15
- package/lib/components/input-number/index.js +0 -2
- package/lib/components/input-number/input-number.js +12 -22
- package/lib/components/input-number/lunatic-input-number.js +5 -14
- package/lib/components/loop/block-for-loop/block-for-loop-ochestrator.js +0 -4
- package/lib/components/loop/block-for-loop/block-for-loop.js +38 -76
- package/lib/components/loop/block-for-loop/index.js +0 -2
- package/lib/components/loop/block-for-loop/row.js +16 -30
- package/lib/components/loop/commons/get-init-length.js +0 -3
- package/lib/components/loop/commons/handle-row-button.js +2 -7
- package/lib/components/loop/commons/index.js +0 -3
- package/lib/components/loop/commons/row-component.js +17 -38
- package/lib/components/loop/index.js +0 -2
- package/lib/components/loop/loop.js +19 -29
- package/lib/components/loop/roster-for-loop/body.js +14 -26
- package/lib/components/loop/roster-for-loop/header.js +2 -9
- package/lib/components/loop/roster-for-loop/index.js +0 -2
- package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +0 -4
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +29 -58
- package/lib/components/loop/roster-for-loop/roster-table.js +10 -21
- package/lib/components/loop/roster-for-loop/row.js +16 -27
- package/lib/components/modal-controls/close-or-skip.js +7 -13
- package/lib/components/modal-controls/index.js +0 -2
- package/lib/components/modal-controls/modal-container.js +1 -6
- package/lib/components/modal-controls/modal-controls.js +6 -29
- package/lib/components/modal-controls/modal-controls.scss +15 -35
- package/lib/components/{pairwise/links → pairwise-links}/index.js +0 -2
- package/lib/components/pairwise-links/orchestrator.js +72 -0
- package/lib/components/{pairwise/links → pairwise-links}/pairwise-links.js +24 -33
- package/lib/components/{pairwise/links → pairwise-links}/row.js +51 -66
- package/lib/components/radio/index.js +0 -2
- package/lib/components/radio/lunatic-radio-group.js +9 -16
- package/lib/components/radio/radio-group.js +10 -19
- package/lib/components/radio/radio-option.js +13 -23
- package/lib/components/radio/radio.scss +3 -1
- package/lib/components/sequence/index.js +0 -2
- package/lib/components/sequence/sequence.js +5 -10
- package/lib/components/subsequence/index.js +0 -2
- package/lib/components/subsequence/subsequence.js +4 -8
- package/lib/components/suggester/check-store.js +15 -54
- package/lib/components/suggester/find-best-label/find-best-label.js +2 -14
- package/lib/components/suggester/find-best-label/index.js +0 -2
- package/lib/components/suggester/idb-suggester.js +14 -34
- package/lib/components/suggester/index.js +0 -2
- package/lib/components/suggester/lunatic-suggester.js +15 -28
- package/lib/components/suggester/searching/create-searching.js +5 -18
- package/lib/components/suggester/searching/index.js +0 -2
- package/lib/components/suggester/suggester.js +22 -56
- package/lib/components/suggester-loader-widget/index.js +0 -2
- package/lib/components/suggester-loader-widget/loader-row.js +13 -40
- package/lib/components/suggester-loader-widget/loader.js +15 -56
- package/lib/components/suggester-loader-widget/progress.js +6 -13
- package/lib/components/suggester-loader-widget/tools/action-tool.js +5 -12
- package/lib/components/suggester-loader-widget/tools/index.js +0 -3
- package/lib/components/suggester-loader-widget/tools/tools.js +0 -4
- package/lib/components/suggester-loader-widget/widget-container.js +2 -11
- package/lib/components/suggester-loader-widget/widget.js +24 -54
- package/lib/components/switch/index.js +0 -2
- package/lib/components/switch/lunatic-switch.js +5 -17
- package/lib/components/switch/switch.js +7 -21
- package/lib/components/table/cell.js +14 -39
- package/lib/components/table/components/cell.js +14 -39
- package/lib/components/table/components/header.js +4 -11
- package/lib/components/table/components/row.js +7 -13
- package/lib/components/table/components/table.js +3 -10
- package/lib/components/table/index.js +0 -2
- package/lib/components/table/lunatic-table.js +17 -34
- package/lib/components/table/table-orchestrator.js +12 -20
- package/lib/components/textarea/index.js +0 -2
- package/lib/components/textarea/lunatic-textarea.js +4 -15
- package/lib/components/textarea/textarea.js +8 -20
- package/lib/constants/declarations.js +3 -1
- package/lib/constants/event-types.js +2 -1
- package/lib/constants/index.js +0 -10
- package/lib/constants/supported-preferences.js +0 -5
- package/lib/constants/variable-types.js +2 -2
- package/lib/i18n/build-dictionary.js +5 -11
- package/lib/i18n/dictionary.js +8 -0
- package/lib/i18n/index.js +0 -6
- package/lib/index.js +0 -4
- package/lib/stories/{pairwise/block/pairwise-block.stories.js → checkboxBoolean/checkboxBoolean.stories.js} +6 -15
- package/lib/stories/checkboxBoolean/source.json +36 -0
- package/lib/stories/checkboxOne/checkboxOne.stories.js +0 -8
- package/lib/stories/custom-mui/checkbox-boolean-mui.js +4 -12
- package/lib/stories/custom-mui/checkbox-group-mui.js +9 -23
- package/lib/stories/custom-mui/checkbox-one-mui.js +0 -4
- package/lib/stories/custom-mui/index.js +0 -16
- package/lib/stories/custom-mui/input-mui.js +7 -17
- package/lib/stories/custom-mui/input-number-mui.js +7 -15
- package/lib/stories/custom-mui/radio-mui.js +7 -23
- package/lib/stories/custom-mui/suggester-mui/index.js +0 -2
- package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +55 -93
- package/lib/stories/custom-mui/switch-mui.js +5 -15
- package/lib/stories/custom-mui/table-mui.js +2 -10
- package/lib/stories/custom-mui/tbody-mui.js +2 -8
- package/lib/stories/custom-mui/td-mui.js +4 -10
- package/lib/stories/custom-mui/textarea-mui.js +7 -16
- package/lib/stories/custom-mui/th-mui.js +3 -9
- package/lib/stories/custom-mui/thead-mui.js +2 -8
- package/lib/stories/custom-mui/tr-mui.js +3 -10
- package/lib/stories/date-picker/datepicker.stories.js +3 -10
- package/lib/stories/date-picker/source.json +2 -51
- package/lib/stories/dropdown/dropdown.stories.js +4 -10
- package/lib/stories/filter-description/filter-description.stories.js +4 -13
- package/lib/stories/input/input.stories.js +0 -9
- package/lib/stories/input-number/input-number.stories.js +0 -9
- package/lib/stories/pairwise/data.json +12 -0
- package/lib/stories/pairwise/links.json +270 -0
- package/lib/stories/pairwise/{links/pairwise-links.stories.js → pairwise-links.stories.js} +3 -12
- package/lib/stories/paste-questionnaire/test.stories.js +4 -12
- package/lib/stories/questionnaires/logement/data.json +6 -11
- package/lib/stories/questionnaires/logement/logement.stories.js +4 -15
- package/lib/stories/questionnaires/recensement/data.json +12 -0
- package/lib/stories/questionnaires/recensement/recensement.stories.js +58 -0
- package/lib/stories/questionnaires/recensement/source.json +15202 -0
- package/lib/stories/questionnaires/rp/data.json +5 -0
- package/lib/stories/questionnaires/rp/rp.stories.js +36 -0
- package/lib/stories/questionnaires/rp/source.json +262 -0
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +4 -12
- package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees_PasPageFin.json +13 -52
- package/lib/stories/questionnaires-test/controls/boucles-n.json +74 -444
- package/lib/stories/questionnaires-test/controls/controls.stories.js +12 -24
- package/lib/stories/questionnaires-test/test.stories.js +4 -16
- package/lib/stories/radio/radio.stories.js +0 -8
- package/lib/stories/roster-for-loop/roster-for-loop.stories.js +8 -9
- package/lib/stories/roster-for-loop/source-with-header.json +127 -0
- package/lib/stories/suggester/suggester-workers.stories.js +201 -0
- package/lib/stories/suggester/suggester.stories.js +0 -10
- package/lib/stories/switch/SwitchMaterialUI.js +5 -15
- package/lib/stories/switch/switch.js +4 -27
- package/lib/stories/table/table-dynamique.json +67 -0
- package/lib/stories/table/table.stories.js +8 -16
- package/lib/stories/utils/default-arg-types.js +4 -5
- package/lib/stories/utils/orchestrator.js +61 -84
- package/lib/stories/utils/waiting/index.js +0 -2
- package/lib/stories/utils/waiting/waiting.js +1 -11
- package/lib/use-lunatic/actions.js +8 -20
- package/lib/use-lunatic/commons/calculated-variables.js +20 -44
- package/lib/use-lunatic/commons/check-loops.js +14 -38
- package/lib/use-lunatic/commons/compose.js +0 -4
- package/lib/use-lunatic/commons/create-map-pages.js +6 -27
- package/lib/use-lunatic/commons/execute-condition-filter.js +0 -7
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +64 -107
- package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +7 -28
- package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +23 -45
- package/lib/use-lunatic/commons/execute-expression/execute-expression.js +10 -41
- package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +2 -16
- package/lib/use-lunatic/commons/execute-expression/get-safety-expression.js +5 -12
- package/lib/use-lunatic/commons/execute-expression/index.js +0 -2
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +20 -46
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js +4 -8
- package/lib/use-lunatic/commons/fill-components/fill-components.js +0 -13
- package/lib/use-lunatic/commons/fill-components/fill-errors.js +4 -8
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +6 -8
- package/lib/use-lunatic/commons/fill-components/fill-management.js +4 -8
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +5 -10
- package/lib/use-lunatic/commons/fill-components/fill-pagination.js +4 -6
- package/lib/use-lunatic/commons/fill-components/index.js +0 -2
- package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +0 -7
- package/lib/use-lunatic/commons/get-component-value/get-component-value.js +26 -66
- package/lib/use-lunatic/commons/get-component-value/index.js +0 -2
- package/lib/use-lunatic/commons/get-components-from-state.js +10 -14
- package/lib/use-lunatic/commons/get-data.js +16 -31
- package/lib/use-lunatic/commons/get-errors-without-empty-value.js +22 -0
- package/lib/use-lunatic/commons/index.js +7 -13
- package/lib/use-lunatic/commons/is-First-last-page.js +1 -3
- package/lib/use-lunatic/commons/is-paginated-loop.js +1 -3
- package/lib/use-lunatic/commons/load-suggesters.js +9 -54
- package/lib/use-lunatic/commons/page-tag.js +15 -34
- package/lib/use-lunatic/commons/use-components-from-state.js +12 -20
- package/lib/use-lunatic/index.js +0 -2
- package/lib/use-lunatic/initial-state.js +1 -3
- package/lib/use-lunatic/reducer/commons/index.js +0 -5
- package/lib/use-lunatic/reducer/commons/is-empty-on-empty-page.js +1 -15
- package/lib/use-lunatic/reducer/commons/resize-array-variable.js +2 -12
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +4 -16
- package/lib/use-lunatic/reducer/index.js +0 -2
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +37 -65
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +31 -50
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +10 -20
- package/lib/use-lunatic/reducer/reduce-handle-change/index.js +0 -2
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +13 -29
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +34 -40
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +58 -30
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +13 -33
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +24 -43
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.js +11 -20
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.js +5 -9
- package/lib/use-lunatic/reducer/reduce-on-init.js +69 -104
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +4 -6
- package/lib/use-lunatic/reducer/reducer.js +0 -20
- package/lib/use-lunatic/reducer/validate-controls/create-controls-reducer.js +28 -27
- package/lib/use-lunatic/reducer/validate-controls/create-modal-controls-reducer.js +22 -26
- package/lib/use-lunatic/reducer/validate-controls/index.js +0 -3
- package/lib/use-lunatic/reducer/validate-controls/validation-utils.js +11 -22
- package/lib/use-lunatic/use-lunatic.js +61 -106
- package/lib/utils/constants/index.js +0 -10
- package/lib/utils/idb-tools/clear-store.js +1 -11
- package/lib/utils/idb-tools/create-db-opener.js +6 -19
- package/lib/utils/idb-tools/create-open-db.js +1 -7
- package/lib/utils/idb-tools/get-entity.js +0 -4
- package/lib/utils/idb-tools/get-idb.js +0 -2
- package/lib/utils/idb-tools/idb-bulk-insert.js +15 -38
- package/lib/utils/idb-tools/index.js +0 -11
- package/lib/utils/idb-tools/insert-entity.js +0 -4
- package/lib/utils/idb-tools/open-db.js +1 -6
- package/lib/utils/idb-tools/open-or-create-db.js +3 -10
- package/lib/utils/is-element.js +0 -2
- package/lib/utils/store-tools/auto-load.js +10 -51
- package/lib/utils/store-tools/clear-store-data.js +1 -12
- package/lib/utils/store-tools/clear-store-info.js +1 -12
- package/lib/utils/store-tools/create/create.js +1 -18
- package/lib/utils/store-tools/create/index.js +0 -3
- package/lib/utils/store-tools/create/update-store-info.js +0 -6
- package/lib/utils/store-tools/get-store-count.js +0 -5
- package/lib/utils/store-tools/index.js +0 -12
- package/lib/utils/store-tools/open-or-create-store.js +1 -11
- package/lib/utils/store-tools/use-store-index.js +5 -27
- package/lib/utils/suggester-workers/append-to-index/append.js +7 -23
- package/lib/utils/suggester-workers/append-to-index/append.worker.js +6 -10
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +3 -11
- package/lib/utils/suggester-workers/append-to-index/index.js +0 -3
- package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +10 -36
- package/lib/utils/suggester-workers/append-to-index/store-messages.js +4 -7
- package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +9 -19
- package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +16 -42
- package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +4 -15
- package/lib/utils/suggester-workers/commons-tokenizer/filters/compose-filters.js +0 -3
- package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +4 -15
- package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.spec.js +0 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.js +0 -5
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-accents.spec.js +0 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.js +0 -9
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-double.spec.js +0 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.js +1 -3
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-length.spec.js +0 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.js +3 -9
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-stemmer.spec.js +0 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +4 -22
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.spec.js +2 -3
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.js +0 -3
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-to-lower.spec.js +0 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/index.js +0 -3
- package/lib/utils/suggester-workers/commons-tokenizer/get-regexp-from-pattern.js +0 -3
- package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.js +0 -8
- package/lib/utils/suggester-workers/commons-tokenizer/index.js +0 -10
- package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.js +0 -6
- package/lib/utils/suggester-workers/commons-tokenizer/soft-tokenizer.js +0 -3
- package/lib/utils/suggester-workers/create-worker.js +1 -11
- package/lib/utils/suggester-workers/find-best-label/find-best-label.js +10 -28
- package/lib/utils/suggester-workers/find-best-label/find-best-label.worker.js +9 -23
- package/lib/utils/suggester-workers/find-best-label/tokenize.js +6 -23
- package/lib/utils/suggester-workers/find-best-label/tokenize.spec.js +0 -2
- package/lib/utils/suggester-workers/searching/compute-score.js +4 -16
- package/lib/utils/suggester-workers/searching/get-db.js +1 -15
- package/lib/utils/suggester-workers/searching/index.js +0 -2
- package/lib/utils/suggester-workers/searching/order/create-alphanumeric-orderer.js +0 -5
- package/lib/utils/suggester-workers/searching/order/index.js +0 -8
- package/lib/utils/suggester-workers/searching/query-parser/index.js +0 -3
- package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.js +0 -3
- package/lib/utils/suggester-workers/searching/query-parser/query-parser-soft.spec.js +0 -2
- package/lib/utils/suggester-workers/searching/query-parser/query-parser-tokenized.js +4 -20
- package/lib/utils/suggester-workers/searching/resolve-query-parser.js +1 -15
- package/lib/utils/suggester-workers/searching/search-in-index.js +0 -3
- package/lib/utils/suggester-workers/searching/searching.js +6 -41
- package/lib/utils/suggester-workers/searching/searching.worker.js +4 -7
- package/lib/utils/vtl/dataset-builder.js +0 -4
- package/lib/utils/vtl/index.js +0 -2
- package/package.json +7 -4
- package/lib/components/checkbox/checkbox-group/checkbox-option.js +0 -57
- package/lib/components/checkbox/checkbox.scss +0 -1
- package/lib/components/pairwise/block/index.js +0 -15
- package/lib/components/pairwise/block/pairwise-block.js +0 -17
- package/lib/components/pairwise/index.js +0 -23
- package/lib/components/pairwise/links/links-orchestrator.js +0 -16
- package/lib/stories/pairwise/block/block.json +0 -3
- package/lib/stories/pairwise/links/data.json +0 -12
- package/lib/stories/pairwise/links/links.json +0 -141
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _orchestrator = _interopRequireDefault(require("../../utils/orchestrator"));
|
|
9
|
+
var _data = _interopRequireDefault(require("./data"));
|
|
10
|
+
var _source = _interopRequireDefault(require("./source"));
|
|
11
|
+
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
+
var stories = {
|
|
20
|
+
title: 'Questionnaires/RP',
|
|
21
|
+
component: _orchestrator["default"],
|
|
22
|
+
argTypes: _objectSpread({}, _defaultArgTypes["default"])
|
|
23
|
+
};
|
|
24
|
+
var _default = stories;
|
|
25
|
+
exports["default"] = _default;
|
|
26
|
+
var Template = function Template(args) {
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_orchestrator["default"], args);
|
|
28
|
+
};
|
|
29
|
+
var Default = Template.bind({});
|
|
30
|
+
exports.Default = Default;
|
|
31
|
+
Default.args = {
|
|
32
|
+
id: 'rp-default',
|
|
33
|
+
source: _source["default"],
|
|
34
|
+
data: _data["default"],
|
|
35
|
+
pagination: true
|
|
36
|
+
};
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "kqhlz2",
|
|
3
|
+
"modele": "m1",
|
|
4
|
+
"enoCoreVersion": "nop",
|
|
5
|
+
"lunaticModelVersion": "2.2.13",
|
|
6
|
+
"generatingDate": "07-07-2022 10:10:17",
|
|
7
|
+
"missing": false,
|
|
8
|
+
"pagination": "question",
|
|
9
|
+
"maxPage": "2",
|
|
10
|
+
"label": { "value": "RP", "type": "VTL|MD" },
|
|
11
|
+
"components": [
|
|
12
|
+
{
|
|
13
|
+
"id": "kb9hi4j0",
|
|
14
|
+
"componentType": "Sequence",
|
|
15
|
+
"page": "1",
|
|
16
|
+
"label": { "value": "\"Identification du logement\"", "type": "VTL|MD" },
|
|
17
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
18
|
+
"declarations": [
|
|
19
|
+
{
|
|
20
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
21
|
+
"declarationType": "HELP",
|
|
22
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
23
|
+
"label": {
|
|
24
|
+
"value": "\"Veuillez recopier ici les informations qui figurent dans le cadre rempli par l'agent recenseur. Ce cadre est situé dans la partie gauche de la notice.\"",
|
|
25
|
+
"type": "VTL|MD"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "com",
|
|
32
|
+
"componentType": "Input",
|
|
33
|
+
"mandatory": false,
|
|
34
|
+
"page": "1",
|
|
35
|
+
"maxLength": 60,
|
|
36
|
+
"label": {
|
|
37
|
+
"value": "\"Commune\"",
|
|
38
|
+
"type": "VTL|MD"
|
|
39
|
+
},
|
|
40
|
+
"conditionFilter": {
|
|
41
|
+
"value": "true",
|
|
42
|
+
"type": "VTL"
|
|
43
|
+
},
|
|
44
|
+
"response": { "name": "COM_COLL" }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "code_dep",
|
|
48
|
+
"componentType": "Input",
|
|
49
|
+
"mandatory": false,
|
|
50
|
+
"page": "1",
|
|
51
|
+
"maxLength": 3,
|
|
52
|
+
"label": {
|
|
53
|
+
"value": "\"Code de votre département\"",
|
|
54
|
+
"type": "VTL|MD"
|
|
55
|
+
},
|
|
56
|
+
"conditionFilter": {
|
|
57
|
+
"value": "true",
|
|
58
|
+
"type": "VTL"
|
|
59
|
+
},
|
|
60
|
+
"response": { "name": "CODE_DEP_COLL" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "code_com",
|
|
64
|
+
"componentType": "Input",
|
|
65
|
+
"mandatory": false,
|
|
66
|
+
"page": "1",
|
|
67
|
+
"maxLength": 3,
|
|
68
|
+
"label": {
|
|
69
|
+
"value": "\"Code de votre commune\"",
|
|
70
|
+
"type": "VTL|MD"
|
|
71
|
+
},
|
|
72
|
+
"conditionFilter": {
|
|
73
|
+
"value": "true",
|
|
74
|
+
"type": "VTL"
|
|
75
|
+
},
|
|
76
|
+
"response": { "name": "CODE_COM_COLL" }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "iris",
|
|
80
|
+
"componentType": "Input",
|
|
81
|
+
"mandatory": false,
|
|
82
|
+
"page": "1",
|
|
83
|
+
"maxLength": 3,
|
|
84
|
+
"label": {
|
|
85
|
+
"value": "\"Iris\"",
|
|
86
|
+
"type": "VTL|MD"
|
|
87
|
+
},
|
|
88
|
+
"conditionFilter": {
|
|
89
|
+
"value": "true",
|
|
90
|
+
"type": "VTL"
|
|
91
|
+
},
|
|
92
|
+
"response": { "name": "IRIS_COLL" }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "rang-a",
|
|
96
|
+
"componentType": "Input",
|
|
97
|
+
"mandatory": false,
|
|
98
|
+
"page": "1",
|
|
99
|
+
"maxLength": 3,
|
|
100
|
+
"label": {
|
|
101
|
+
"value": "\"Rang A\"",
|
|
102
|
+
"type": "VTL|MD"
|
|
103
|
+
},
|
|
104
|
+
"conditionFilter": {
|
|
105
|
+
"value": "true",
|
|
106
|
+
"type": "VTL"
|
|
107
|
+
},
|
|
108
|
+
"response": { "name": "RANG_A_COLL" }
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "rang-l",
|
|
112
|
+
"componentType": "Input",
|
|
113
|
+
"mandatory": false,
|
|
114
|
+
"page": "1",
|
|
115
|
+
"maxLength": 3,
|
|
116
|
+
"label": {
|
|
117
|
+
"value": "\"Rang L\"",
|
|
118
|
+
"type": "VTL|MD"
|
|
119
|
+
},
|
|
120
|
+
"conditionFilter": {
|
|
121
|
+
"value": "true",
|
|
122
|
+
"type": "VTL"
|
|
123
|
+
},
|
|
124
|
+
"response": { "name": "RANG_L_COLL" }
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "kb9hi4j0",
|
|
128
|
+
"componentType": "Sequence",
|
|
129
|
+
"page": "2",
|
|
130
|
+
"label": { "value": "\"Type de construction\"", "type": "VTL|MD" },
|
|
131
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
132
|
+
"declarations": []
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "log-indic-coll",
|
|
136
|
+
"componentType": "Radio",
|
|
137
|
+
"mandatory": false,
|
|
138
|
+
"page": "2",
|
|
139
|
+
"label": {
|
|
140
|
+
"value": "\"Votre batiment d'habitation ne comprend qu'un seul logement ?\"",
|
|
141
|
+
"type": "VTL|MD"
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
145
|
+
"options": [
|
|
146
|
+
{ "value": "1", "label": { "value": "\"oui\"", "type": "VTL|MD" } },
|
|
147
|
+
|
|
148
|
+
{ "value": "0", "label": { "value": "\"non\"", "type": "VTL|MD" } }
|
|
149
|
+
],
|
|
150
|
+
"response": { "name": "LOG_INDIV_COLL" }
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "log-isole-coll",
|
|
154
|
+
"componentType": "Radio",
|
|
155
|
+
"mandatory": false,
|
|
156
|
+
"page": "2",
|
|
157
|
+
"label": {
|
|
158
|
+
"value": "\"Votre logement possède au moins un mur mitoyen avec un autre batiment ?\"",
|
|
159
|
+
"type": "VTL|MD"
|
|
160
|
+
},
|
|
161
|
+
"conditionFilter": {
|
|
162
|
+
"value": "(LOG_INDIV_COLL = \"1\")",
|
|
163
|
+
"type": "VTL"
|
|
164
|
+
},
|
|
165
|
+
"options": [
|
|
166
|
+
{ "value": "1", "label": { "value": "\"oui\"", "type": "VTL|MD" } },
|
|
167
|
+
{ "value": "0", "label": { "value": "\"non\"", "type": "VTL|MD" } }
|
|
168
|
+
],
|
|
169
|
+
"response": { "name": "LOG_ISOLE_COLL" }
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"variables": [
|
|
173
|
+
{
|
|
174
|
+
"variableType": "COLLECTED",
|
|
175
|
+
"name": "COM_COLL",
|
|
176
|
+
"values": {
|
|
177
|
+
"PREVIOUS": null,
|
|
178
|
+
"COLLECTED": "SAINT_MARTIN_LE_TROU",
|
|
179
|
+
"FORCED": null,
|
|
180
|
+
"EDITED": null,
|
|
181
|
+
"INPUTED": null
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"variableType": "COLLECTED",
|
|
186
|
+
"name": "CODE_COM_COLL",
|
|
187
|
+
"values": {
|
|
188
|
+
"PREVIOUS": null,
|
|
189
|
+
"COLLECTED": "000",
|
|
190
|
+
"FORCED": null,
|
|
191
|
+
"EDITED": null,
|
|
192
|
+
"INPUTED": null
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"variableType": "COLLECTED",
|
|
197
|
+
"name": "CODE_DEP_COLL",
|
|
198
|
+
"values": {
|
|
199
|
+
"PREVIOUS": null,
|
|
200
|
+
"COLLECTED": "97",
|
|
201
|
+
"FORCED": null,
|
|
202
|
+
"EDITED": null,
|
|
203
|
+
"INPUTED": null
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"variableType": "COLLECTED",
|
|
208
|
+
"name": "ILOT_COLL",
|
|
209
|
+
"values": {
|
|
210
|
+
"PREVIOUS": null,
|
|
211
|
+
"COLLECTED": null,
|
|
212
|
+
"FORCED": null,
|
|
213
|
+
"EDITED": null,
|
|
214
|
+
"INPUTED": null
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"variableType": "COLLECTED",
|
|
219
|
+
"name": "RANG_A_COLL",
|
|
220
|
+
"values": {
|
|
221
|
+
"PREVIOUS": null,
|
|
222
|
+
"COLLECTED": null,
|
|
223
|
+
"FORCED": null,
|
|
224
|
+
"EDITED": null,
|
|
225
|
+
"INPUTED": null
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"variableType": "COLLECTED",
|
|
230
|
+
"name": "RANG_L_COLL",
|
|
231
|
+
"values": {
|
|
232
|
+
"PREVIOUS": null,
|
|
233
|
+
"COLLECTED": null,
|
|
234
|
+
"FORCED": null,
|
|
235
|
+
"EDITED": null,
|
|
236
|
+
"INPUTED": null
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"variableType": "COLLECTED",
|
|
241
|
+
"name": "LOG_INDIV_COLL",
|
|
242
|
+
"values": {
|
|
243
|
+
"PREVIOUS": null,
|
|
244
|
+
"COLLECTED": null,
|
|
245
|
+
"FORCED": null,
|
|
246
|
+
"EDITED": null,
|
|
247
|
+
"INPUTED": null
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"variableType": "COLLECTED",
|
|
252
|
+
"name": "LOG_ISOLE_COLL",
|
|
253
|
+
"values": {
|
|
254
|
+
"PREVIOUS": null,
|
|
255
|
+
"COLLECTED": null,
|
|
256
|
+
"FORCED": null,
|
|
257
|
+
"EDITED": null,
|
|
258
|
+
"INPUTED": null
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
}
|
|
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.Default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _orchestrator = _interopRequireDefault(require("../../utils/orchestrator"));
|
|
11
|
-
|
|
12
9
|
var _source = _interopRequireDefault(require("./source"));
|
|
13
|
-
|
|
14
10
|
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
18
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
-
|
|
20
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
18
|
var stories = {
|
|
25
19
|
title: 'Questionnaires/Simpsons',
|
|
26
20
|
component: _orchestrator["default"],
|
|
@@ -50,11 +44,9 @@ var stories = {
|
|
|
50
44
|
};
|
|
51
45
|
var _default = stories;
|
|
52
46
|
exports["default"] = _default;
|
|
53
|
-
|
|
54
47
|
var Template = function Template(args) {
|
|
55
48
|
return /*#__PURE__*/_react["default"].createElement(_orchestrator["default"], args);
|
|
56
49
|
};
|
|
57
|
-
|
|
58
50
|
var Default = Template.bind({});
|
|
59
51
|
exports.Default = Default;
|
|
60
52
|
Default.args = {
|
|
@@ -120,19 +120,6 @@
|
|
|
120
120
|
{
|
|
121
121
|
"componentType": "InputNumber",
|
|
122
122
|
"controls": [
|
|
123
|
-
{
|
|
124
|
-
"criticality": "ERROR",
|
|
125
|
-
"errorMessage": {
|
|
126
|
-
"type": "VTL|MD",
|
|
127
|
-
"value": "\"Vous devez saisir un nombre.\""
|
|
128
|
-
},
|
|
129
|
-
"typeOfControl": "FORMAT",
|
|
130
|
-
"control": {
|
|
131
|
-
"type": "VTL",
|
|
132
|
-
"value": "not(not(isnull(Q1)) and not(isNaN(Q1)))"
|
|
133
|
-
},
|
|
134
|
-
"id": "l14vfucm-formatNumber"
|
|
135
|
-
},
|
|
136
123
|
{
|
|
137
124
|
"criticality": "ERROR",
|
|
138
125
|
"errorMessage": {
|
|
@@ -142,9 +129,9 @@
|
|
|
142
129
|
"typeOfControl": "FORMAT",
|
|
143
130
|
"control": {
|
|
144
131
|
"type": "VTL",
|
|
145
|
-
"value": "not(not(isnull(Q1)) and (1>Q1 or 5<Q1))
|
|
132
|
+
"value": "not(not(isnull(Q1)) and (1>Q1 or 5<Q1))"
|
|
146
133
|
},
|
|
147
|
-
"id": "l14vfucm-
|
|
134
|
+
"id": "l14vfucm-format-borne-inf-sup"
|
|
148
135
|
},
|
|
149
136
|
{
|
|
150
137
|
"criticality": "ERROR",
|
|
@@ -155,9 +142,9 @@
|
|
|
155
142
|
"typeOfControl": "FORMAT",
|
|
156
143
|
"control": {
|
|
157
144
|
"type": "VTL",
|
|
158
|
-
"value": "not(not(isnull(Q1))
|
|
145
|
+
"value": "not(not(isnull(Q1)) and round(Q1,0)<>Q1)"
|
|
159
146
|
},
|
|
160
|
-
"id": "l14vfucm-
|
|
147
|
+
"id": "l14vfucm-format-decimal"
|
|
161
148
|
},
|
|
162
149
|
{
|
|
163
150
|
"bindingDependencies": ["Q1"],
|
|
@@ -306,19 +293,6 @@
|
|
|
306
293
|
{
|
|
307
294
|
"componentType": "InputNumber",
|
|
308
295
|
"controls": [
|
|
309
|
-
{
|
|
310
|
-
"criticality": "ERROR",
|
|
311
|
-
"errorMessage": {
|
|
312
|
-
"type": "VTL|MD",
|
|
313
|
-
"value": "\"Vous devez saisir un nombre.\""
|
|
314
|
-
},
|
|
315
|
-
"typeOfControl": "FORMAT",
|
|
316
|
-
"control": {
|
|
317
|
-
"type": "VTL",
|
|
318
|
-
"value": "not(not(isnull(Q3)) and not(isNaN(Q3)))"
|
|
319
|
-
},
|
|
320
|
-
"id": "l5ggvqgj-formatNumber"
|
|
321
|
-
},
|
|
322
296
|
{
|
|
323
297
|
"criticality": "ERROR",
|
|
324
298
|
"errorMessage": {
|
|
@@ -328,9 +302,9 @@
|
|
|
328
302
|
"typeOfControl": "FORMAT",
|
|
329
303
|
"control": {
|
|
330
304
|
"type": "VTL",
|
|
331
|
-
"value": "not(not(isnull(Q3)) and (0>Q3 or 20<Q3))
|
|
305
|
+
"value": "not(not(isnull(Q3)) and (0>Q3 or 20<Q3))"
|
|
332
306
|
},
|
|
333
|
-
"id": "l5ggvqgj-
|
|
307
|
+
"id": "l5ggvqgj-format-borne-inf-sup"
|
|
334
308
|
},
|
|
335
309
|
{
|
|
336
310
|
"criticality": "ERROR",
|
|
@@ -341,9 +315,9 @@
|
|
|
341
315
|
"typeOfControl": "FORMAT",
|
|
342
316
|
"control": {
|
|
343
317
|
"type": "VTL",
|
|
344
|
-
"value": "not(not(isnull(Q3))
|
|
318
|
+
"value": "not(not(isnull(Q3)) and round(Q3,0)<>Q3)"
|
|
345
319
|
},
|
|
346
|
-
"id": "l5ggvqgj-
|
|
320
|
+
"id": "l5ggvqgj-format-decimal"
|
|
347
321
|
}
|
|
348
322
|
],
|
|
349
323
|
"max": 20,
|
|
@@ -375,19 +349,6 @@
|
|
|
375
349
|
{
|
|
376
350
|
"componentType": "InputNumber",
|
|
377
351
|
"controls": [
|
|
378
|
-
{
|
|
379
|
-
"criticality": "ERROR",
|
|
380
|
-
"errorMessage": {
|
|
381
|
-
"type": "VTL|MD",
|
|
382
|
-
"value": "\"Vous devez saisir un nombre.\""
|
|
383
|
-
},
|
|
384
|
-
"typeOfControl": "FORMAT",
|
|
385
|
-
"control": {
|
|
386
|
-
"type": "VTL",
|
|
387
|
-
"value": "not(not(isnull(Q4)) and not(isNaN(Q4)))"
|
|
388
|
-
},
|
|
389
|
-
"id": "l5ggzuuo-formatNumber"
|
|
390
|
-
},
|
|
391
352
|
{
|
|
392
353
|
"criticality": "ERROR",
|
|
393
354
|
"errorMessage": {
|
|
@@ -397,9 +358,9 @@
|
|
|
397
358
|
"typeOfControl": "FORMAT",
|
|
398
359
|
"control": {
|
|
399
360
|
"type": "VTL",
|
|
400
|
-
"value": "not(not(isnull(Q4)) and (0>Q4 or 20<Q4))
|
|
361
|
+
"value": "not(not(isnull(Q4)) and (0>Q4 or 20<Q4))"
|
|
401
362
|
},
|
|
402
|
-
"id": "l5ggzuuo-
|
|
363
|
+
"id": "l5ggzuuo-format-borne-inf-sup"
|
|
403
364
|
},
|
|
404
365
|
{
|
|
405
366
|
"criticality": "ERROR",
|
|
@@ -410,9 +371,9 @@
|
|
|
410
371
|
"typeOfControl": "FORMAT",
|
|
411
372
|
"control": {
|
|
412
373
|
"type": "VTL",
|
|
413
|
-
"value": "not(not(isnull(Q4))
|
|
374
|
+
"value": "not(not(isnull(Q4)) and round(Q4,0)<>Q4)"
|
|
414
375
|
},
|
|
415
|
-
"id": "l5ggzuuo-
|
|
376
|
+
"id": "l5ggzuuo-format-decimal"
|
|
416
377
|
},
|
|
417
378
|
{
|
|
418
379
|
"bindingDependencies": ["Q3", "Q4"],
|
|
@@ -565,7 +526,7 @@
|
|
|
565
526
|
"lunaticModelVersion": "2.2.14-rc",
|
|
566
527
|
"modele": "TESTCONTBOUCL",
|
|
567
528
|
"enoCoreVersion": "2.3.10-controls-type",
|
|
568
|
-
"generatingDate": "
|
|
529
|
+
"generatingDate": "22-09-2022 11:21:08",
|
|
569
530
|
"missing": false,
|
|
570
531
|
"id": "l5gghitu",
|
|
571
532
|
"maxPage": "8"
|