@inseefr/lunatic 3.5.0-rc.3 → 3.5.1-rc.1743691949561
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/components/Datepicker/Datepicker.js +1 -1
- package/components/Datepicker/Datepicker.js.map +1 -1
- package/components/Duration/Duration.js +3 -2
- package/components/Duration/Duration.js.map +1 -1
- package/components/Duration/durationUtils.d.ts +0 -1
- package/components/Duration/durationUtils.js.map +1 -1
- package/components/Duration/getDurationFromValue.d.ts +3 -2
- package/components/Duration/getDurationFromValue.js.map +1 -1
- package/components/Input/Input.js +6 -3
- package/components/Input/Input.js.map +1 -1
- package/components/Input/Input.spec.js +25 -0
- package/components/Input/Input.spec.js.map +1 -1
- package/components/InputNumber/InputNumber.js +1 -1
- package/components/InputNumber/InputNumber.js.map +1 -1
- package/components/InputNumber/InputNumber.spec.js +9 -1
- package/components/InputNumber/InputNumber.spec.js.map +1 -1
- package/components/InputNumber/InputNumberThousand.d.ts +2 -1
- package/components/InputNumber/InputNumberThousand.js +8 -2
- package/components/InputNumber/InputNumberThousand.js.map +1 -1
- package/components/Loop/Loop.js +1 -1
- package/components/Loop/Loop.js.map +1 -1
- package/components/Loop/Loop.spec.d.ts +1 -0
- package/components/Loop/Loop.spec.js +39 -0
- package/components/Loop/Loop.spec.js.map +1 -0
- package/components/Roundabout/CustomRoundabout.d.ts +1 -1
- package/components/Roundabout/CustomRoundabout.js +4 -3
- package/components/Roundabout/CustomRoundabout.js.map +1 -1
- package/components/Roundabout/roundabout.spec.js +3 -1
- package/components/Roundabout/roundabout.spec.js.map +1 -1
- package/components/Textarea/Textarea.js +4 -1
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Textarea/Textarea.spec.js +13 -0
- package/components/Textarea/Textarea.spec.js.map +1 -1
- package/components/shared/CharactersCount/CharactersCount.d.ts +7 -0
- package/components/shared/CharactersCount/CharactersCount.js +20 -0
- package/components/shared/CharactersCount/CharactersCount.js.map +1 -0
- package/components/shared/CharactersCount/CharactersCount.spec.d.ts +1 -0
- package/components/shared/CharactersCount/CharactersCount.spec.js +28 -0
- package/components/shared/CharactersCount/CharactersCount.spec.js.map +1 -0
- package/components/shared/Label/Label.js +1 -1
- package/components/shared/Label/Label.js.map +1 -1
- package/components/shared/Label/Label.spec.js +11 -3
- package/components/shared/Label/Label.spec.js.map +1 -1
- package/components/shared/utils/getCharactersCountId.d.ts +4 -0
- package/components/shared/utils/getCharactersCountId.js +10 -0
- package/components/shared/utils/getCharactersCountId.js.map +1 -0
- package/components/type.d.ts +3 -3
- package/esm/components/Datepicker/Datepicker.js +1 -1
- package/esm/components/Datepicker/Datepicker.js.map +1 -1
- package/esm/components/Duration/Duration.js +3 -2
- package/esm/components/Duration/Duration.js.map +1 -1
- package/esm/components/Duration/durationUtils.d.ts +0 -1
- package/esm/components/Duration/durationUtils.js.map +1 -1
- package/esm/components/Duration/getDurationFromValue.d.ts +3 -2
- package/esm/components/Duration/getDurationFromValue.js.map +1 -1
- package/esm/components/Input/Input.js +6 -3
- package/esm/components/Input/Input.js.map +1 -1
- package/esm/components/Input/Input.spec.js +25 -0
- package/esm/components/Input/Input.spec.js.map +1 -1
- package/esm/components/InputNumber/InputNumber.js +1 -1
- package/esm/components/InputNumber/InputNumber.js.map +1 -1
- package/esm/components/InputNumber/InputNumber.spec.js +9 -1
- package/esm/components/InputNumber/InputNumber.spec.js.map +1 -1
- package/esm/components/InputNumber/InputNumberThousand.d.ts +2 -1
- package/esm/components/InputNumber/InputNumberThousand.js +8 -2
- package/esm/components/InputNumber/InputNumberThousand.js.map +1 -1
- package/esm/components/Loop/Loop.js +1 -1
- package/esm/components/Loop/Loop.js.map +1 -1
- package/esm/components/Loop/Loop.spec.d.ts +1 -0
- package/esm/components/Loop/Loop.spec.js +37 -0
- package/esm/components/Loop/Loop.spec.js.map +1 -0
- package/esm/components/Roundabout/CustomRoundabout.d.ts +1 -1
- package/esm/components/Roundabout/CustomRoundabout.js +4 -3
- package/esm/components/Roundabout/CustomRoundabout.js.map +1 -1
- package/esm/components/Roundabout/roundabout.spec.js +3 -1
- package/esm/components/Roundabout/roundabout.spec.js.map +1 -1
- package/esm/components/Textarea/Textarea.js +4 -1
- package/esm/components/Textarea/Textarea.js.map +1 -1
- package/esm/components/Textarea/Textarea.spec.js +13 -0
- package/esm/components/Textarea/Textarea.spec.js.map +1 -1
- package/esm/components/shared/CharactersCount/CharactersCount.d.ts +7 -0
- package/esm/components/shared/CharactersCount/CharactersCount.js +15 -0
- package/esm/components/shared/CharactersCount/CharactersCount.js.map +1 -0
- package/esm/components/shared/CharactersCount/CharactersCount.spec.d.ts +1 -0
- package/esm/components/shared/CharactersCount/CharactersCount.spec.js +26 -0
- package/esm/components/shared/CharactersCount/CharactersCount.spec.js.map +1 -0
- package/esm/components/shared/Label/Label.js +1 -1
- package/esm/components/shared/Label/Label.js.map +1 -1
- package/esm/components/shared/Label/Label.spec.js +11 -3
- package/esm/components/shared/Label/Label.spec.js.map +1 -1
- package/esm/components/shared/utils/getCharactersCountId.d.ts +4 -0
- package/esm/components/shared/utils/getCharactersCountId.js +7 -0
- package/esm/components/shared/utils/getCharactersCountId.js.map +1 -0
- package/esm/components/type.d.ts +3 -3
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/main.css +20 -0
- package/esm/main.css.map +1 -1
- package/esm/stories/overview/sourceWithHierarchy.json +5151 -0
- package/esm/tests/utils/lunatic.d.ts +0 -4
- package/esm/tests/utils/lunatic.js +0 -4
- package/esm/tests/utils/lunatic.js.map +1 -1
- package/esm/type.source.d.ts +6 -6
- package/esm/type.source.js +0 -1
- package/esm/type.source.js.map +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-components.d.ts +2 -0
- package/esm/use-lunatic/commons/fill-components/fill-components.js +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
- package/esm/use-lunatic/commons/page.js +8 -0
- package/esm/use-lunatic/commons/page.js.map +1 -1
- package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +1 -1
- package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +111 -14
- package/esm/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
- package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +3 -3
- package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
- package/esm/use-lunatic/commons/variables/get-questionnaire-data.js +0 -8
- package/esm/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.d.ts +2 -2
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.js +5 -3
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +181 -9
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/esm/use-lunatic/hooks/use-page-has-response.js +50 -35
- package/esm/use-lunatic/hooks/use-page-has-response.js.map +1 -1
- package/esm/use-lunatic/hooks/useOverview.d.ts +1 -1
- package/esm/use-lunatic/hooks/useOverview.js +19 -14
- package/esm/use-lunatic/hooks/useOverview.js.map +1 -1
- package/esm/use-lunatic/hooks/useOverview.spec.d.ts +1 -0
- package/esm/use-lunatic/hooks/useOverview.spec.js +38 -0
- package/esm/use-lunatic/hooks/useOverview.spec.js.map +1 -0
- package/esm/use-lunatic/props/getComponentTypeProps.d.ts +2 -1
- package/esm/use-lunatic/props/propOptions.d.ts +2 -1
- package/esm/use-lunatic/props/propOptions.js +23 -3
- package/esm/use-lunatic/props/propOptions.js.map +1 -1
- package/esm/use-lunatic/props/propOptions.spec.js +46 -5
- package/esm/use-lunatic/props/propOptions.spec.js.map +1 -1
- package/esm/use-lunatic/props/propValue.js +18 -6
- package/esm/use-lunatic/props/propValue.js.map +1 -1
- package/esm/use-lunatic/props/propValue.spec.js +97 -2
- package/esm/use-lunatic/props/propValue.spec.js.map +1 -1
- package/esm/use-lunatic/reducer/reducerInitializer.d.ts +2 -2
- package/esm/use-lunatic/reducer/reducerInitializer.js +25 -32
- package/esm/use-lunatic/reducer/reducerInitializer.js.map +1 -1
- package/esm/use-lunatic/test.utils.d.ts +2 -0
- package/esm/use-lunatic/test.utils.js +13 -0
- package/esm/use-lunatic/test.utils.js.map +1 -0
- package/esm/use-lunatic/type.d.ts +18 -8
- package/esm/use-lunatic/use-lunatic.d.ts +1 -2
- package/esm/use-lunatic/use-lunatic.js +2 -3
- package/esm/use-lunatic/use-lunatic.js.map +1 -1
- package/esm/utils/cast.d.ts +19 -0
- package/esm/utils/cast.js +63 -0
- package/esm/utils/cast.js.map +1 -0
- package/esm/utils/constants/variable-status.d.ts +0 -4
- package/esm/utils/constants/variable-status.js +0 -4
- package/esm/utils/constants/variable-status.js.map +1 -1
- package/esm/utils/variables.spec.js +0 -8
- package/esm/utils/variables.spec.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/main.css +20 -0
- package/main.css.map +1 -1
- package/package.json +60 -69
- package/src/components/Datepicker/Datepicker.tsx +1 -1
- package/src/components/Datepicker/__snapshots__/Datepicker.spec.tsx.snap +2 -2
- package/src/components/Duration/Duration.test.tsx +52 -0
- package/src/components/Duration/Duration.tsx +17 -4
- package/src/components/Duration/durationUtils.ts +0 -2
- package/src/components/Duration/getDurationFromValue.ts +4 -3
- package/src/components/Input/Input.spec.tsx +34 -0
- package/src/components/Input/Input.tsx +26 -18
- package/src/components/Input/__snapshots__/Input.spec.tsx.snap +38 -19
- package/src/components/InputNumber/InputNumber.spec.tsx +15 -1
- package/src/components/InputNumber/InputNumber.tsx +1 -0
- package/src/components/InputNumber/InputNumberThousand.tsx +11 -1
- package/src/components/Loop/Loop.spec.tsx +77 -0
- package/src/components/Loop/Loop.tsx +1 -1
- package/src/components/RosterForLoop/__snapshots__/RosterForLoop.spec.tsx.snap +42 -20
- package/src/components/Roundabout/CustomRoundabout.tsx +13 -4
- package/src/components/Roundabout/roundabout.spec.tsx +3 -0
- package/src/components/Textarea/Textarea.spec.tsx +18 -0
- package/src/components/Textarea/Textarea.tsx +21 -13
- package/src/components/Textarea/__snapshots__/Textarea.spec.tsx.snap +21 -11
- package/src/components/shared/CharactersCount/CharactersCount.spec.tsx +31 -0
- package/src/components/shared/CharactersCount/CharactersCount.tsx +27 -0
- package/src/components/shared/Label/Label.spec.tsx +15 -3
- package/src/components/shared/Label/Label.tsx +1 -1
- package/src/components/shared/utils/getCharactersCountId.test.ts +14 -0
- package/src/components/shared/utils/getCharactersCountId.ts +6 -0
- package/src/components/type.ts +3 -2
- package/src/css/components/Input.scss +10 -0
- package/src/css/components/Roundabout.scss +10 -0
- package/src/index.ts +0 -1
- package/src/stories/accordion/source.json +1 -5
- package/src/stories/behaviour/cleaning/cleaning.stories.jsx +11 -0
- package/src/stories/behaviour/cleaning/loop.json +246 -0
- package/src/stories/behaviour/cleaning/source-loop.json +3 -15
- package/src/stories/behaviour/cleaning/source.json +2 -10
- package/src/stories/behaviour/controls/boucles-n.json +2 -10
- package/src/stories/behaviour/controls/loop.json +2 -10
- package/src/stories/behaviour/controls/roundabout.json +3 -15
- package/src/stories/behaviour/controls/simple-numeric.json +19 -95
- package/src/stories/behaviour/controls/simple.json +7 -35
- package/src/stories/behaviour/filter/dataLoop.json +0 -8
- package/src/stories/behaviour/filter/source.json +0 -12
- package/src/stories/behaviour/filter/sourceLoop.json +0 -12
- package/src/stories/behaviour/missing/source.json +12 -60
- package/src/stories/behaviour/others/V2_DeclarationsSimples.json +14 -70
- package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +5 -25
- package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +107 -535
- package/src/stories/behaviour/others/V2_TCMRallyeGames.json +33 -165
- package/src/stories/behaviour/others/test-dylan.json +5 -25
- package/src/stories/behaviour/paste/source.json +1 -5
- package/src/stories/behaviour/performance/performance.stories.jsx +2 -2
- package/src/stories/behaviour/performance/source.json +4 -20
- package/src/stories/behaviour/resizing/source-resizing-cleaning.json +2 -10
- package/src/stories/behaviour/resizing/source.json +5 -25
- package/src/stories/checkbox-boolean/source.json +1 -5
- package/src/stories/checkbox-group/source.json +16 -80
- package/src/stories/checkbox-group/sourceCondition.json +3 -15
- package/src/stories/checkbox-group/sourceDetail.json +18 -90
- package/src/stories/checkbox-group/sourceLoop.json +2 -10
- package/src/stories/checkbox-one/source.json +1 -5
- package/src/stories/checkbox-one/sourceDetail.json +2 -10
- package/src/stories/date-picker/source.json +1 -5
- package/src/stories/declaration/source.json +2 -10
- package/src/stories/disabled/data.json +0 -16
- package/src/stories/disabled/source.json +7 -35
- package/src/stories/dropdown/data.json +2 -10
- package/src/stories/dropdown/source.json +2 -10
- package/src/stories/duration/mois.json +1 -5
- package/src/stories/duration/time.json +1 -5
- package/src/stories/filter-description/source-options.json +3 -15
- package/src/stories/input/source.json +1 -5
- package/src/stories/input-number/input-number.stories.jsx +5 -0
- package/src/stories/input-number/source-big-number.json +27 -0
- package/src/stories/input-number/source-euro.json +2 -6
- package/src/stories/input-number/source.json +1 -5
- package/src/stories/loop/source-bloc.json +2 -10
- package/src/stories/loop/source-paginated.json +2 -10
- package/src/stories/loop/source-roster.json +2 -10
- package/src/stories/loop/source-with-header.json +2 -10
- package/src/stories/overview/dataLoop.json +24 -120
- package/src/stories/overview/overview.stories.jsx +9 -0
- package/src/stories/overview/source.json +1 -5
- package/src/stories/overview/sourceLoop.json +24 -120
- package/src/stories/overview/sourceWithHierarchy.json +164 -820
- package/src/stories/pairwise/source.json +5 -25
- package/src/stories/question/source.json +2 -10
- package/src/stories/questionnaires/logement/data.json +0 -1288
- package/src/stories/questionnaires/logement/source-sequence.json +564 -2820
- package/src/stories/questionnaires/logement/source-sum.json +280 -1400
- package/src/stories/questionnaires/logement/source.json +564 -2820
- package/src/stories/questionnaires/recensement/source.json +106 -530
- package/src/stories/questionnaires/rp/source.json +8 -40
- package/src/stories/questionnaires/simpsons/source.json +104 -520
- package/src/stories/radio/source.json +1 -5
- package/src/stories/radio/sourceCondition.json +2 -10
- package/src/stories/radio/sourceDetail.json +2 -10
- package/src/stories/radio/sourceHorizontal.json +1 -5
- package/src/stories/roundabout/data1.json +0 -12
- package/src/stories/roundabout/data2.json +0 -16
- package/src/stories/roundabout/source.json +11 -35
- package/src/stories/suggester/source-arbitrary-response.json +6 -30
- package/src/stories/suggester/source-error.json +6 -30
- package/src/stories/suggester/source-multiline.json +0 -16
- package/src/stories/suggester/source-option-responses.json +5 -25
- package/src/stories/suggester/source.json +7 -35
- package/src/stories/summary/data.json +0 -16
- package/src/stories/summary/source.json +7 -35
- package/src/stories/switch/data-forced.json +2 -10
- package/src/stories/switch/source.json +4 -20
- package/src/stories/table/source-colspan.json +8 -40
- package/src/stories/table/table-dynamique.json +1 -5
- package/src/stories/text/source-roster.json +3 -15
- package/src/stories/text/source-table.json +9 -45
- package/src/stories/textarea/source.json +1 -5
- package/src/stories/utils/{SchemaValidator.tsx → SchemaValidator.jsx} +1 -1
- package/src/stories/utils/{orchestrator.tsx → orchestrator.jsx} +9 -13
- package/src/stories/utils/{overview.tsx → overview.jsx} +0 -2
- package/src/tests/utils/lunatic.ts +0 -4
- package/src/type.source.ts +8 -7
- package/src/use-lunatic/__snapshots__/use-lunatic.test.ts.snap +0 -1159
- package/src/use-lunatic/commons/fill-components/fill-components.ts +4 -1
- package/src/use-lunatic/commons/page.ts +10 -0
- package/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.ts +182 -24
- package/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.ts +2 -5
- package/src/use-lunatic/commons/variables/get-questionnaire-data.ts +0 -12
- package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +207 -9
- package/src/use-lunatic/commons/variables/lunatic-variables-store.ts +7 -4
- package/src/use-lunatic/hooks/use-page-has-response.test.ts +200 -0
- package/src/use-lunatic/hooks/use-page-has-response.ts +67 -44
- package/src/use-lunatic/hooks/useOverview.spec.ts +42 -0
- package/src/use-lunatic/hooks/useOverview.ts +41 -18
- package/src/use-lunatic/props/propOptions.spec.ts +71 -5
- package/src/use-lunatic/props/propOptions.ts +23 -3
- package/src/use-lunatic/props/propValue.spec.ts +105 -2
- package/src/use-lunatic/props/propValue.ts +26 -8
- package/src/use-lunatic/reducer/reducerInitializer.tsx +31 -41
- package/src/use-lunatic/test.utils.ts +17 -0
- package/src/use-lunatic/type.ts +18 -8
- package/src/use-lunatic/use-lunatic.test.ts +15 -44
- package/src/use-lunatic/use-lunatic.ts +7 -7
- package/src/utils/cast.ts +67 -0
- package/src/utils/constants/variable-status.ts +0 -4
- package/src/utils/variables.spec.ts +0 -8
- package/stories/overview/sourceWithHierarchy.json +5151 -0
- package/tests/utils/lunatic.d.ts +0 -4
- package/tests/utils/lunatic.js +0 -4
- package/tests/utils/lunatic.js.map +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/type.source.d.ts +6 -6
- package/type.source.js +0 -1
- package/type.source.js.map +1 -1
- package/use-lunatic/commons/fill-components/fill-components.d.ts +2 -0
- package/use-lunatic/commons/fill-components/fill-components.js +1 -1
- package/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
- package/use-lunatic/commons/page.js +8 -0
- package/use-lunatic/commons/page.js.map +1 -1
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +1 -1
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +111 -14
- package/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js.map +1 -1
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +3 -3
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
- package/use-lunatic/commons/variables/get-questionnaire-data.js +0 -8
- package/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.d.ts +2 -2
- package/use-lunatic/commons/variables/lunatic-variables-store.js +5 -3
- package/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +204 -9
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/use-lunatic/hooks/use-page-has-response.js +49 -34
- package/use-lunatic/hooks/use-page-has-response.js.map +1 -1
- package/use-lunatic/hooks/useOverview.d.ts +1 -1
- package/use-lunatic/hooks/useOverview.js +19 -14
- package/use-lunatic/hooks/useOverview.js.map +1 -1
- package/use-lunatic/hooks/useOverview.spec.d.ts +1 -0
- package/use-lunatic/hooks/useOverview.spec.js +43 -0
- package/use-lunatic/hooks/useOverview.spec.js.map +1 -0
- package/use-lunatic/props/getComponentTypeProps.d.ts +2 -1
- package/use-lunatic/props/propOptions.d.ts +2 -1
- package/use-lunatic/props/propOptions.js +23 -3
- package/use-lunatic/props/propOptions.js.map +1 -1
- package/use-lunatic/props/propOptions.spec.js +46 -5
- package/use-lunatic/props/propOptions.spec.js.map +1 -1
- package/use-lunatic/props/propValue.js +18 -6
- package/use-lunatic/props/propValue.js.map +1 -1
- package/use-lunatic/props/propValue.spec.js +97 -2
- package/use-lunatic/props/propValue.spec.js.map +1 -1
- package/use-lunatic/reducer/reducerInitializer.d.ts +2 -2
- package/use-lunatic/reducer/reducerInitializer.js +25 -32
- package/use-lunatic/reducer/reducerInitializer.js.map +1 -1
- package/use-lunatic/test.utils.d.ts +2 -0
- package/use-lunatic/test.utils.js +17 -0
- package/use-lunatic/test.utils.js.map +1 -0
- package/use-lunatic/type.d.ts +18 -8
- package/use-lunatic/use-lunatic.d.ts +1 -2
- package/use-lunatic/use-lunatic.js +2 -3
- package/use-lunatic/use-lunatic.js.map +1 -1
- package/utils/cast.d.ts +19 -0
- package/utils/cast.js +70 -0
- package/utils/cast.js.map +1 -0
- package/utils/constants/variable-status.d.ts +0 -4
- package/utils/constants/variable-status.js +1 -5
- package/utils/constants/variable-status.js.map +1 -1
- package/utils/variables.spec.js +0 -8
- package/utils/variables.spec.js.map +1 -1
- package/constants/component-types.d.ts +0 -1
- package/constants/component-types.js +0 -5
- package/constants/component-types.js.map +0 -1
- package/constants/declarations.d.ts +0 -9
- package/constants/declarations.js +0 -15
- package/constants/declarations.js.map +0 -1
- package/constants/event-types.d.ts +0 -10
- package/constants/event-types.js +0 -16
- package/constants/event-types.js.map +0 -1
- package/constants/index.d.ts +0 -5
- package/constants/index.js +0 -22
- package/constants/index.js.map +0 -1
- package/constants/indexedDBStore.d.ts +0 -21
- package/constants/indexedDBStore.js +0 -22
- package/constants/indexedDBStore.js.map +0 -1
- package/constants/supported-preferences.d.ts +0 -1
- package/constants/supported-preferences.js +0 -36
- package/constants/supported-preferences.js.map +0 -1
- package/constants/value-types.d.ts +0 -5
- package/constants/value-types.js +0 -9
- package/constants/value-types.js.map +0 -1
- package/constants/variable-types.d.ts +0 -2
- package/constants/variable-types.js +0 -8
- package/constants/variable-types.js.map +0 -1
- package/esm/constants/component-types.d.ts +0 -1
- package/esm/constants/component-types.js +0 -2
- package/esm/constants/component-types.js.map +0 -1
- package/esm/constants/declarations.d.ts +0 -9
- package/esm/constants/declarations.js +0 -12
- package/esm/constants/declarations.js.map +0 -1
- package/esm/constants/event-types.d.ts +0 -10
- package/esm/constants/event-types.js +0 -13
- package/esm/constants/event-types.js.map +0 -1
- package/esm/constants/index.d.ts +0 -5
- package/esm/constants/index.js +0 -6
- package/esm/constants/index.js.map +0 -1
- package/esm/constants/indexedDBStore.d.ts +0 -21
- package/esm/constants/indexedDBStore.js +0 -19
- package/esm/constants/indexedDBStore.js.map +0 -1
- package/esm/constants/supported-preferences.d.ts +0 -1
- package/esm/constants/supported-preferences.js +0 -10
- package/esm/constants/supported-preferences.js.map +0 -1
- package/esm/constants/value-types.d.ts +0 -5
- package/esm/constants/value-types.js +0 -6
- package/esm/constants/value-types.js.map +0 -1
- package/esm/constants/variable-types.d.ts +0 -2
- package/esm/constants/variable-types.js +0 -5
- package/esm/constants/variable-types.js.map +0 -1
- package/esm/utils/getArticulation.d.ts +0 -58
- package/esm/utils/getArticulation.js +0 -78
- package/esm/utils/getArticulation.js.map +0 -1
- package/src/constants/component-types.ts +0 -1
- package/src/constants/declarations.ts +0 -14
- package/src/constants/event-types.ts +0 -13
- package/src/constants/index.ts +0 -5
- package/src/constants/indexedDBStore.ts +0 -20
- package/src/constants/supported-preferences.ts +0 -10
- package/src/constants/value-types.ts +0 -5
- package/src/constants/variable-types.ts +0 -4
- package/src/stories/behaviour/articulation/articulation.stories.tsx +0 -108
- package/src/stories/behaviour/articulation/roundabout.json +0 -348
- package/src/utils/getArticulation.ts +0 -117
- package/utils/getArticulation.d.ts +0 -58
- package/utils/getArticulation.js +0 -77
- package/utils/getArticulation.js.map +0 -1
|
@@ -5,12 +5,17 @@ exports[`Textarea > renders without crashing 1`] = `
|
|
|
5
5
|
<div
|
|
6
6
|
class="lunatic-textarea"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
id="input"
|
|
8
|
+
<div
|
|
9
|
+
class="field-with-count"
|
|
11
10
|
>
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
<textarea
|
|
12
|
+
aria-invalid="false"
|
|
13
|
+
aria-labelledby="label-input"
|
|
14
|
+
id="input"
|
|
15
|
+
>
|
|
16
|
+
input
|
|
17
|
+
</textarea>
|
|
18
|
+
</div>
|
|
14
19
|
</div>
|
|
15
20
|
</div>
|
|
16
21
|
`;
|
|
@@ -20,13 +25,18 @@ exports[`Textarea > should handle readOnly 1`] = `
|
|
|
20
25
|
<div
|
|
21
26
|
class="lunatic-textarea"
|
|
22
27
|
>
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
id="textarea"
|
|
26
|
-
readonly=""
|
|
28
|
+
<div
|
|
29
|
+
class="field-with-count"
|
|
27
30
|
>
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
<textarea
|
|
32
|
+
aria-invalid="false"
|
|
33
|
+
aria-labelledby="label-textarea"
|
|
34
|
+
id="textarea"
|
|
35
|
+
readonly=""
|
|
36
|
+
>
|
|
37
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
38
|
+
</textarea>
|
|
39
|
+
</div>
|
|
30
40
|
</div>
|
|
31
41
|
</div>
|
|
32
42
|
`;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { CharactersCount } from './CharactersCount';
|
|
3
|
+
import { render } from '@testing-library/react';
|
|
4
|
+
|
|
5
|
+
describe('CharactersCount', () => {
|
|
6
|
+
const defaultProps = {
|
|
7
|
+
id: 'test-id',
|
|
8
|
+
maxLength: 20,
|
|
9
|
+
value: 'Hello',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
it('renders correctly characters count if there is a maximum length', () => {
|
|
13
|
+
const { getByText } = render(<CharactersCount {...defaultProps} />);
|
|
14
|
+
|
|
15
|
+
expect(getByText('5/20')).toBeInTheDocument();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should apply the max-length-reached class when limit is reached', () => {
|
|
19
|
+
const props = { ...defaultProps, maxLength: 5 };
|
|
20
|
+
const { getByText } = render(<CharactersCount {...props} />);
|
|
21
|
+
|
|
22
|
+
expect(getByText('5/5')).toHaveClass('max-length-reached');
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('should not render anything when maxLength is not provided', () => {
|
|
26
|
+
const props = { ...defaultProps, maxLength: undefined };
|
|
27
|
+
const { container } = render(<CharactersCount {...props} />);
|
|
28
|
+
|
|
29
|
+
expect(container.firstChild).toBeNull();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import classNames from 'classnames';
|
|
2
|
+
import { getCharactersCountId } from '../utils/getCharactersCountId';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
id: string;
|
|
6
|
+
maxLength?: number;
|
|
7
|
+
value?: string | null;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export function CharactersCount({ id, maxLength, value }: Readonly<Props>) {
|
|
11
|
+
if (!maxLength) return null;
|
|
12
|
+
|
|
13
|
+
const currentLength = value?.length ?? 0;
|
|
14
|
+
const charactersCountId = getCharactersCountId(id, maxLength);
|
|
15
|
+
const hasReachedMaxLength = currentLength === maxLength;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<span
|
|
19
|
+
id={charactersCountId}
|
|
20
|
+
className={classNames('characters-count', {
|
|
21
|
+
'max-length-reached': hasReachedMaxLength,
|
|
22
|
+
})}
|
|
23
|
+
>
|
|
24
|
+
{`${currentLength}/${maxLength}`}
|
|
25
|
+
</span>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -3,9 +3,9 @@ import { Label } from './Label';
|
|
|
3
3
|
import { describe, it, expect } from 'vitest';
|
|
4
4
|
|
|
5
5
|
describe('Label', () => {
|
|
6
|
-
it('renders null when children
|
|
6
|
+
it('renders null when children and description are falsy', () => {
|
|
7
7
|
const { container } = render(
|
|
8
|
-
<Label htmlFor="input" id="label"
|
|
8
|
+
<Label htmlFor="input" id="label">
|
|
9
9
|
{null}
|
|
10
10
|
</Label>
|
|
11
11
|
);
|
|
@@ -34,8 +34,20 @@ describe('Label', () => {
|
|
|
34
34
|
|
|
35
35
|
const label = getByText('Name');
|
|
36
36
|
expect(label).toBeInTheDocument();
|
|
37
|
-
expect(label.
|
|
37
|
+
expect(label.closest('label')).toHaveAttribute('for', 'kze792d8');
|
|
38
38
|
const description = queryByText('This is a label');
|
|
39
39
|
expect(description).not.toBeInTheDocument();
|
|
40
40
|
});
|
|
41
|
+
|
|
42
|
+
it('renders a label with description and no label', () => {
|
|
43
|
+
const { container, queryByText } = render(
|
|
44
|
+
<Label htmlFor="kze792d8" id="label" description="This is a label" />
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
const label = container.querySelector('label');
|
|
48
|
+
expect(label).toBeInTheDocument();
|
|
49
|
+
expect(label).toHaveAttribute('for', 'kze792d8');
|
|
50
|
+
const description = queryByText('This is a label');
|
|
51
|
+
expect(description).toBeInTheDocument();
|
|
52
|
+
});
|
|
41
53
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { getCharactersCountId } from './getCharactersCountId';
|
|
3
|
+
|
|
4
|
+
describe('getCharacterCountId', () => {
|
|
5
|
+
it('should return the correct ID when maxLength is provided', () => {
|
|
6
|
+
expect(getCharactersCountId('test-id', 100)).toBe(
|
|
7
|
+
'characters-count-test-id'
|
|
8
|
+
);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('should return undefined when maxLength is not provided', () => {
|
|
12
|
+
expect(getCharactersCountId('test-id')).toBeUndefined();
|
|
13
|
+
});
|
|
14
|
+
});
|
package/src/components/type.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
} from '../use-lunatic/type';
|
|
10
10
|
import type { InterpretedOption } from '../use-lunatic/props/propOptions';
|
|
11
11
|
|
|
12
|
-
type
|
|
12
|
+
export type DurationFormat = 'PTnHnM' | 'PnYnM';
|
|
13
13
|
export type VtlExpression = {
|
|
14
14
|
value: string;
|
|
15
15
|
type: 'VTL' | 'VTL|MD' | 'TXT';
|
|
@@ -78,7 +78,7 @@ export type ComponentPropsByType = {
|
|
|
78
78
|
};
|
|
79
79
|
Duration: LunaticBaseProps<string | null> &
|
|
80
80
|
LunaticExtraProps & {
|
|
81
|
-
format:
|
|
81
|
+
format: DurationFormat;
|
|
82
82
|
response: { name: string };
|
|
83
83
|
componentType?: 'Duration';
|
|
84
84
|
};
|
|
@@ -126,6 +126,7 @@ export type ComponentPropsByType = {
|
|
|
126
126
|
components: LunaticComponentProps[];
|
|
127
127
|
componentType?: 'Question';
|
|
128
128
|
iteration?: number;
|
|
129
|
+
value: Record<string, unknown>;
|
|
129
130
|
};
|
|
130
131
|
RosterForLoop: LunaticBaseProps<unknown> &
|
|
131
132
|
LunaticExtraProps & {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
.lunatic-roundabout__label {
|
|
2
|
+
color: var(--color-primary-dark);
|
|
3
|
+
background-color: var(--color-primary-contrast-text);
|
|
4
|
+
border: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
margin-bottom: 0.375rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
.lunatic-roundabout__items {
|
|
2
12
|
margin-top: 1rem;
|
|
3
13
|
display: flex;
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { Button } from './components/shared/Button/Button';
|
|
|
8
8
|
|
|
9
9
|
export { LunaticComponents } from './components/LunaticComponents';
|
|
10
10
|
export { useLunatic } from './use-lunatic/use-lunatic';
|
|
11
|
-
export { getArticulation } from './utils/getArticulation';
|
|
12
11
|
|
|
13
12
|
export type {
|
|
14
13
|
LunaticComponentDefinition,
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import Orchestrator from '../../utils/orchestrator';
|
|
3
3
|
import source from './source.json';
|
|
4
4
|
import sourceLoop from './source-loop.json';
|
|
5
|
+
import sourceLoop2 from './loop.json';
|
|
5
6
|
import defaultArgTypes from '../../utils/default-arg-types';
|
|
6
7
|
|
|
7
8
|
const stories = {
|
|
@@ -56,3 +57,13 @@ Loop.args = {
|
|
|
56
57
|
pagination: true,
|
|
57
58
|
source: sourceLoop,
|
|
58
59
|
};
|
|
60
|
+
|
|
61
|
+
export const Loop2 = Template.bind({});
|
|
62
|
+
Loop2.args = {
|
|
63
|
+
id: 'cleaning-loop-2',
|
|
64
|
+
pagination: true,
|
|
65
|
+
source: sourceLoop2,
|
|
66
|
+
data: {
|
|
67
|
+
COLLECTED: { PRENOM: { COLLECTED: ['Laurent', 'Alain', 'toto'] } },
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "m8ilargw",
|
|
3
|
+
"componentType": "Questionnaire",
|
|
4
|
+
"modele": "LCCLEANING",
|
|
5
|
+
"generatingDate": "21-03-2025 13:49:55",
|
|
6
|
+
"pagination": "question",
|
|
7
|
+
"maxPage": "4",
|
|
8
|
+
"label": { "value": "[LC]: cleaning mixe de scope", "type": "VTL|MD" },
|
|
9
|
+
"components": [
|
|
10
|
+
{
|
|
11
|
+
"id": "m8illrg8",
|
|
12
|
+
"componentType": "Sequence",
|
|
13
|
+
"page": "1",
|
|
14
|
+
"label": { "value": "\"I - \" || \"S1\"", "type": "VTL" },
|
|
15
|
+
"conditionFilter": { "value": "true", "type": "VTL" }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "question-m8ilsr46",
|
|
19
|
+
"componentType": "Question",
|
|
20
|
+
"page": "2",
|
|
21
|
+
"label": { "value": "\"1\\. \" || \"Prénoms ?\"", "type": "VTL|MD" },
|
|
22
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
23
|
+
"components": [
|
|
24
|
+
{
|
|
25
|
+
"id": "m8ilsr46",
|
|
26
|
+
"componentType": "RosterForLoop",
|
|
27
|
+
"mandatory": false,
|
|
28
|
+
"page": "2",
|
|
29
|
+
"lines": {
|
|
30
|
+
"min": { "value": "1", "type": "VTL" },
|
|
31
|
+
"max": { "value": "10", "type": "VTL" }
|
|
32
|
+
},
|
|
33
|
+
"header": [
|
|
34
|
+
{ "label": { "value": "\"Prenoms ?\"", "type": "VTL|MD" } }
|
|
35
|
+
],
|
|
36
|
+
"components": [
|
|
37
|
+
{
|
|
38
|
+
"componentType": "Input",
|
|
39
|
+
"maxLength": 249,
|
|
40
|
+
"id": "m8ilsr46-RDOP-m8im0j91",
|
|
41
|
+
"response": { "name": "PRENOM" }
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"positioning": "HORIZONTAL"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "m8iltdbt",
|
|
50
|
+
"componentType": "Loop",
|
|
51
|
+
"page": "3",
|
|
52
|
+
"maxPage": "4",
|
|
53
|
+
"depth": 1,
|
|
54
|
+
"paginatedLoop": true,
|
|
55
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
56
|
+
"loopDependencies": ["PRENOM"],
|
|
57
|
+
"components": [
|
|
58
|
+
{
|
|
59
|
+
"id": "m8ilmimd",
|
|
60
|
+
"componentType": "Sequence",
|
|
61
|
+
"page": "3.1",
|
|
62
|
+
"label": {
|
|
63
|
+
"value": "\"II - \" || \"Sequence de \" || PRENOM ",
|
|
64
|
+
"type": "VTL"
|
|
65
|
+
},
|
|
66
|
+
"conditionFilter": { "value": "true", "type": "VTL" }
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "question-m8ilvkbt",
|
|
70
|
+
"componentType": "Question",
|
|
71
|
+
"page": "3.2",
|
|
72
|
+
"label": {
|
|
73
|
+
"value": "\"2\\. \" || \"Cette question est pour tout le monde\"",
|
|
74
|
+
"type": "VTL|MD"
|
|
75
|
+
},
|
|
76
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
77
|
+
"components": [
|
|
78
|
+
{
|
|
79
|
+
"id": "m8ilvkbt",
|
|
80
|
+
"componentType": "Input",
|
|
81
|
+
"mandatory": false,
|
|
82
|
+
"page": "3.2",
|
|
83
|
+
"maxLength": 249,
|
|
84
|
+
"response": { "name": "CETTEQUEST" }
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "question-m8iljjiu",
|
|
90
|
+
"componentType": "Question",
|
|
91
|
+
"page": "3.3",
|
|
92
|
+
"label": {
|
|
93
|
+
"value": "\"3\\. \" || \"Cette question est pour Laurent uniquement\"",
|
|
94
|
+
"type": "VTL|MD"
|
|
95
|
+
},
|
|
96
|
+
"conditionFilter": {
|
|
97
|
+
"value": "(nvl(PRENOM,\"\") = \"Laurent\")",
|
|
98
|
+
"type": "VTL"
|
|
99
|
+
},
|
|
100
|
+
"components": [
|
|
101
|
+
{
|
|
102
|
+
"id": "m8iljjiu",
|
|
103
|
+
"componentType": "Input",
|
|
104
|
+
"mandatory": false,
|
|
105
|
+
"page": "3.3",
|
|
106
|
+
"maxLength": 249,
|
|
107
|
+
"response": { "name": "ONLY_LAURENT" }
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "question-m8ili0k6",
|
|
113
|
+
"componentType": "Question",
|
|
114
|
+
"page": "3.4",
|
|
115
|
+
"label": {
|
|
116
|
+
"value": "\"4\\. \" || \"Cette question est pour Laurent uniquement et s'il y a au moins 3 personnes dans le tableau\"",
|
|
117
|
+
"type": "VTL|MD"
|
|
118
|
+
},
|
|
119
|
+
"conditionFilter": {
|
|
120
|
+
"value": "(NB_PERS >= 3 and PRENOM = \"Laurent\")",
|
|
121
|
+
"type": "VTL"
|
|
122
|
+
},
|
|
123
|
+
"components": [
|
|
124
|
+
{
|
|
125
|
+
"id": "m8ili0k6",
|
|
126
|
+
"componentType": "Input",
|
|
127
|
+
"mandatory": false,
|
|
128
|
+
"page": "3.4",
|
|
129
|
+
"maxLength": 249,
|
|
130
|
+
"response": { "name": "ONLY_TROIS_LAURENT" }
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"iterations": { "value": "count(PRENOM)", "type": "VTL" }
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "m8iluttj",
|
|
139
|
+
"componentType": "Sequence",
|
|
140
|
+
"page": "4",
|
|
141
|
+
"label": { "value": "\"III - \" || \"Fin\"", "type": "VTL" },
|
|
142
|
+
"conditionFilter": { "value": "true", "type": "VTL" }
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"variables": [
|
|
146
|
+
{
|
|
147
|
+
"name": "NB_PERS",
|
|
148
|
+
"variableType": "CALCULATED",
|
|
149
|
+
"expression": { "value": "count(PRENOM)", "type": "VTL" },
|
|
150
|
+
"bindingDependencies": ["PRENOM"],
|
|
151
|
+
"dimension": 0
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "PRENOM",
|
|
155
|
+
"variableType": "COLLECTED",
|
|
156
|
+
"values": { "COLLECTED": [] },
|
|
157
|
+
"iterationReference": "m8ilsr46",
|
|
158
|
+
"dimension": 1
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "CETTEQUEST",
|
|
162
|
+
"variableType": "COLLECTED",
|
|
163
|
+
"values": { "COLLECTED": [] },
|
|
164
|
+
"iterationReference": "m8ilsr46",
|
|
165
|
+
"dimension": 1
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "ONLY_LAURENT",
|
|
169
|
+
"variableType": "COLLECTED",
|
|
170
|
+
"values": { "COLLECTED": [] },
|
|
171
|
+
"iterationReference": "m8ilsr46",
|
|
172
|
+
"dimension": 1
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "ONLY_TROIS_LAURENT",
|
|
176
|
+
"variableType": "COLLECTED",
|
|
177
|
+
"values": { "COLLECTED": [] },
|
|
178
|
+
"iterationReference": "m8ilsr46",
|
|
179
|
+
"dimension": 1
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "FILTER_RESULT_PRENOM",
|
|
183
|
+
"variableType": "CALCULATED",
|
|
184
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
185
|
+
"shapeFrom": ["PRENOM"],
|
|
186
|
+
"iterationReference": "m8ilsr46",
|
|
187
|
+
"dimension": 1
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "FILTER_RESULT_CETTEQUEST",
|
|
191
|
+
"variableType": "CALCULATED",
|
|
192
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
193
|
+
"shapeFrom": ["PRENOM"],
|
|
194
|
+
"iterationReference": "m8ilsr46",
|
|
195
|
+
"dimension": 1
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "FILTER_RESULT_ONLY_LAURENT",
|
|
199
|
+
"variableType": "CALCULATED",
|
|
200
|
+
"expression": {
|
|
201
|
+
"value": "(nvl(PRENOM,\"\") = \"Laurent\")",
|
|
202
|
+
"type": "VTL"
|
|
203
|
+
},
|
|
204
|
+
"bindingDependencies": ["PRENOM"],
|
|
205
|
+
"shapeFrom": ["PRENOM"],
|
|
206
|
+
"iterationReference": "m8ilsr46",
|
|
207
|
+
"dimension": 1
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "FILTER_RESULT_ONLY_TROIS_LAURENT",
|
|
211
|
+
"variableType": "CALCULATED",
|
|
212
|
+
"expression": {
|
|
213
|
+
"value": "(NB_PERS >= 3 and PRENOM = \"Laurent\")",
|
|
214
|
+
"type": "VTL"
|
|
215
|
+
},
|
|
216
|
+
"bindingDependencies": ["NB_PERS", "PRENOM"],
|
|
217
|
+
"shapeFrom": ["PRENOM"],
|
|
218
|
+
"iterationReference": "m8ilsr46",
|
|
219
|
+
"dimension": 1
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"cleaning": {
|
|
223
|
+
"PRENOM": {
|
|
224
|
+
"ONLY_LAURENT": [
|
|
225
|
+
{
|
|
226
|
+
"expression": "nvl(PRENOM,\"\") = \"Laurent\"",
|
|
227
|
+
"shapeFrom": "PRENOM",
|
|
228
|
+
"isAggregatorUsed": false
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"ONLY_TROIS_LAURENT": [
|
|
232
|
+
{
|
|
233
|
+
"expression": "NB_PERS >= 3 and PRENOM = \"Laurent\"",
|
|
234
|
+
"shapeFrom": "PRENOM",
|
|
235
|
+
"isAggregatorUsed": true
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"resizing": {
|
|
241
|
+
"PRENOM": {
|
|
242
|
+
"size": "count(PRENOM)",
|
|
243
|
+
"variables": ["CETTEQUEST", "ONLY_LAURENT", "ONLY_TROIS_LAURENT"]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -15,33 +15,21 @@
|
|
|
15
15
|
{
|
|
16
16
|
"variableType": "COLLECTED",
|
|
17
17
|
"values": {
|
|
18
|
-
"COLLECTED": ["John", "Jane"]
|
|
19
|
-
"EDITED": null,
|
|
20
|
-
"INPUTTED": null,
|
|
21
|
-
"FORCED": null,
|
|
22
|
-
"PREVIOUS": null
|
|
18
|
+
"COLLECTED": ["John", "Jane"]
|
|
23
19
|
},
|
|
24
20
|
"name": "PRENOM"
|
|
25
21
|
},
|
|
26
22
|
{
|
|
27
23
|
"variableType": "COLLECTED",
|
|
28
24
|
"values": {
|
|
29
|
-
"COLLECTED": [null]
|
|
30
|
-
"EDITED": null,
|
|
31
|
-
"INPUTTED": null,
|
|
32
|
-
"FORCED": null,
|
|
33
|
-
"PREVIOUS": null
|
|
25
|
+
"COLLECTED": [null]
|
|
34
26
|
},
|
|
35
27
|
"name": "AGE"
|
|
36
28
|
},
|
|
37
29
|
{
|
|
38
30
|
"variableType": "COLLECTED",
|
|
39
31
|
"values": {
|
|
40
|
-
"COLLECTED": [null]
|
|
41
|
-
"EDITED": null,
|
|
42
|
-
"INPUTTED": null,
|
|
43
|
-
"FORCED": null,
|
|
44
|
-
"PREVIOUS": null
|
|
32
|
+
"COLLECTED": [null]
|
|
45
33
|
},
|
|
46
34
|
"name": "HIDE_AGE"
|
|
47
35
|
}
|
|
@@ -9,22 +9,14 @@
|
|
|
9
9
|
{
|
|
10
10
|
"variableType": "COLLECTED",
|
|
11
11
|
"values": {
|
|
12
|
-
"COLLECTED": null
|
|
13
|
-
"EDITED": null,
|
|
14
|
-
"INPUTTED": null,
|
|
15
|
-
"FORCED": null,
|
|
16
|
-
"PREVIOUS": null
|
|
12
|
+
"COLLECTED": null
|
|
17
13
|
},
|
|
18
14
|
"name": "ORIGIN"
|
|
19
15
|
},
|
|
20
16
|
{
|
|
21
17
|
"variableType": "COLLECTED",
|
|
22
18
|
"values": {
|
|
23
|
-
"COLLECTED": null
|
|
24
|
-
"EDITED": null,
|
|
25
|
-
"INPUTTED": null,
|
|
26
|
-
"FORCED": null,
|
|
27
|
-
"PREVIOUS": null
|
|
19
|
+
"COLLECTED": null
|
|
28
20
|
},
|
|
29
21
|
"name": "CITY"
|
|
30
22
|
}
|
|
@@ -4,22 +4,14 @@
|
|
|
4
4
|
{
|
|
5
5
|
"variableType": "COLLECTED",
|
|
6
6
|
"values": {
|
|
7
|
-
"COLLECTED": null
|
|
8
|
-
"EDITED": null,
|
|
9
|
-
"INPUTTED": null,
|
|
10
|
-
"FORCED": null,
|
|
11
|
-
"PREVIOUS": null
|
|
7
|
+
"COLLECTED": null
|
|
12
8
|
},
|
|
13
9
|
"name": "COMMENT_QE"
|
|
14
10
|
},
|
|
15
11
|
{
|
|
16
12
|
"variableType": "COLLECTED",
|
|
17
13
|
"values": {
|
|
18
|
-
"COLLECTED": [null]
|
|
19
|
-
"EDITED": [null],
|
|
20
|
-
"INPUTTED": [null],
|
|
21
|
-
"FORCED": [null],
|
|
22
|
-
"PREVIOUS": [null]
|
|
14
|
+
"COLLECTED": [null]
|
|
23
15
|
},
|
|
24
16
|
"name": "Q1"
|
|
25
17
|
},
|
|
@@ -118,22 +118,14 @@
|
|
|
118
118
|
{
|
|
119
119
|
"variableType": "COLLECTED",
|
|
120
120
|
"values": {
|
|
121
|
-
"COLLECTED": ["John", "Jane"]
|
|
122
|
-
"EDITED": null,
|
|
123
|
-
"INPUTTED": null,
|
|
124
|
-
"FORCED": null,
|
|
125
|
-
"PREVIOUS": null
|
|
121
|
+
"COLLECTED": ["John", "Jane"]
|
|
126
122
|
},
|
|
127
123
|
"name": "PRENOMS"
|
|
128
124
|
},
|
|
129
125
|
{
|
|
130
126
|
"variableType": "COLLECTED",
|
|
131
127
|
"values": {
|
|
132
|
-
"COLLECTED": [10, 12]
|
|
133
|
-
"EDITED": null,
|
|
134
|
-
"INPUTTED": null,
|
|
135
|
-
"FORCED": null,
|
|
136
|
-
"PREVIOUS": null
|
|
128
|
+
"COLLECTED": [10, 12]
|
|
137
129
|
},
|
|
138
130
|
"name": "AGES"
|
|
139
131
|
}
|
|
@@ -80,33 +80,21 @@
|
|
|
80
80
|
{
|
|
81
81
|
"variableType": "COLLECTED",
|
|
82
82
|
"values": {
|
|
83
|
-
"COLLECTED": ["John", "Jane"]
|
|
84
|
-
"EDITED": null,
|
|
85
|
-
"INPUTTED": null,
|
|
86
|
-
"FORCED": null,
|
|
87
|
-
"PREVIOUS": null
|
|
83
|
+
"COLLECTED": ["John", "Jane"]
|
|
88
84
|
},
|
|
89
85
|
"name": "PRENOMS"
|
|
90
86
|
},
|
|
91
87
|
{
|
|
92
88
|
"variableType": "COLLECTED",
|
|
93
89
|
"values": {
|
|
94
|
-
"COLLECTED": [null]
|
|
95
|
-
"EDITED": [null],
|
|
96
|
-
"INPUTTED": [null],
|
|
97
|
-
"FORCED": [null],
|
|
98
|
-
"PREVIOUS": [null]
|
|
90
|
+
"COLLECTED": [null]
|
|
99
91
|
},
|
|
100
92
|
"name": "PROGRESS"
|
|
101
93
|
},
|
|
102
94
|
{
|
|
103
95
|
"variableType": "COLLECTED",
|
|
104
96
|
"values": {
|
|
105
|
-
"COLLECTED": [17, 22]
|
|
106
|
-
"EDITED": [null],
|
|
107
|
-
"INPUTTED": [null],
|
|
108
|
-
"FORCED": [null],
|
|
109
|
-
"PREVIOUS": [null]
|
|
97
|
+
"COLLECTED": [17, 22]
|
|
110
98
|
},
|
|
111
99
|
"name": "AGES"
|
|
112
100
|
}
|