@inseefr/lunatic 3.5.3 → 3.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Input/Input.spec.js +6 -0
- package/components/Input/Input.spec.js.map +1 -1
- package/components/InputNumber/InputNumber.spec.js +6 -0
- package/components/InputNumber/InputNumber.spec.js.map +1 -1
- package/components/InputNumber/InputNumberThousand.js +1 -1
- package/components/InputNumber/InputNumberThousand.js.map +1 -1
- package/components/Textarea/Textarea.js +1 -1
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Textarea/Textarea.spec.js +7 -0
- package/components/Textarea/Textarea.spec.js.map +1 -1
- package/esm/components/Input/Input.spec.js +6 -0
- package/esm/components/Input/Input.spec.js.map +1 -1
- package/esm/components/InputNumber/InputNumber.spec.js +6 -0
- package/esm/components/InputNumber/InputNumber.spec.js.map +1 -1
- package/esm/components/InputNumber/InputNumberThousand.js +1 -1
- package/esm/components/InputNumber/InputNumberThousand.js.map +1 -1
- package/esm/components/Textarea/Textarea.js +1 -1
- package/esm/components/Textarea/Textarea.js.map +1 -1
- package/esm/components/Textarea/Textarea.spec.js +7 -0
- package/esm/components/Textarea/Textarea.spec.js.map +1 -1
- package/esm/hooks/use-track-changes.js +2 -1
- package/esm/hooks/use-track-changes.js.map +1 -1
- package/esm/stories/overview/sourceWithHierarchy.json +32 -32
- package/esm/type.source.d.ts +1 -1
- package/esm/use-lunatic/actions.d.ts +2 -0
- package/esm/use-lunatic/actions.js.map +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-component.spec.js +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-component.spec.js.map +1 -1
- 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/variables/behaviours/resizing-behaviour.js +11 -7
- package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
- package/esm/use-lunatic/commons/variables/get-questionnaire-data.js +1 -0
- package/esm/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.d.ts +18 -3
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.js +49 -5
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +44 -0
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/esm/use-lunatic/reducer/reducer.js +9 -0
- package/esm/use-lunatic/reducer/reducer.js.map +1 -1
- package/esm/use-lunatic/reducer/reducerInitializer.js +1 -1
- package/esm/use-lunatic/reducer/reducerInitializer.js.map +1 -1
- package/esm/use-lunatic/type.d.ts +3 -0
- package/hooks/use-track-changes.js +2 -1
- package/hooks/use-track-changes.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Input/Input.spec.tsx +9 -0
- package/src/components/InputNumber/InputNumber.spec.tsx +9 -0
- package/src/components/InputNumber/InputNumberThousand.tsx +1 -0
- package/src/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +2 -0
- package/src/components/Textarea/Textarea.spec.tsx +10 -0
- package/src/components/Textarea/Textarea.tsx +1 -0
- package/src/hooks/use-track-changes.ts +2 -1
- package/src/stories/behaviour/cleaning/loop.json +4 -4
- package/src/stories/behaviour/cleaning/source-loop.json +1 -1
- package/src/stories/behaviour/cleaning/source.json +2 -2
- package/src/stories/behaviour/controls/boucles-n.json +2 -2
- package/src/stories/behaviour/controls/simple-numeric.json +19 -19
- package/src/stories/behaviour/controls/simple.json +7 -7
- package/src/stories/behaviour/filter/source.json +3 -3
- package/src/stories/behaviour/filter/sourceLoop.json +3 -3
- package/src/stories/behaviour/missing/source.json +6 -6
- package/src/stories/behaviour/others/V2_DeclarationsSimples.json +14 -14
- package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +5 -5
- package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +28 -28
- package/src/stories/behaviour/others/V2_TCMRallyeGames.json +24 -24
- package/src/stories/behaviour/others/test-dylan.json +5 -5
- package/src/stories/behaviour/resizing/source-resizing-cleaning.json +2 -2
- package/src/stories/behaviour/resizing/source.json +5 -5
- package/src/stories/checkbox-boolean/source.json +1 -1
- package/src/stories/checkbox-one/source.json +1 -1
- package/src/stories/checkbox-one/sourceDetail.json +1 -1
- package/src/stories/date-picker/source.json +1 -1
- package/src/stories/disabled/source.json +5 -5
- package/src/stories/dropdown/source.json +2 -2
- package/src/stories/duration/mois.json +1 -1
- package/src/stories/duration/time.json +1 -1
- package/src/stories/input-number/source-big-number.json +1 -1
- package/src/stories/input-number/source-euro.json +2 -2
- package/src/stories/overview/sourceLoop.json +12 -12
- package/src/stories/overview/sourceWithHierarchy.json +32 -32
- package/src/stories/question/source.json +2 -2
- package/src/stories/questionnaires/logement/source-sequence.json +216 -216
- package/src/stories/questionnaires/logement/source-sum.json +189 -189
- package/src/stories/questionnaires/logement/source.json +216 -216
- package/src/stories/questionnaires/recensement/source.json +85 -85
- package/src/stories/questionnaires/rp/source.json +8 -8
- package/src/stories/questionnaires/simpsons/source.json +34 -34
- package/src/stories/radio/source.json +1 -1
- package/src/stories/radio/sourceDetail.json +1 -1
- package/src/stories/radio/sourceHorizontal.json +1 -1
- package/src/stories/roundabout/source.json +3 -3
- package/src/stories/suggester/source-arbitrary-response.json +2 -2
- package/src/stories/suggester/source-error.json +2 -2
- package/src/stories/suggester/source-multiline.json +2 -2
- package/src/stories/suggester/source-option-responses.json +2 -2
- package/src/stories/suggester/source.json +5 -5
- package/src/stories/summary/source.json +4 -4
- package/src/stories/switch/data-forced.json +2 -2
- package/src/stories/switch/source.json +2 -2
- package/src/stories/table/source-colspan.json +1 -1
- package/src/stories/table/source.json +1 -1
- package/src/stories/table/table-dynamique.json +1 -1
- package/src/stories/text/source-roster.json +1 -1
- package/src/stories/text/source-table.json +1 -1
- package/src/type.source.ts +1 -1
- package/src/use-lunatic/actions.ts +2 -0
- package/src/use-lunatic/commons/fill-components/fill-component.spec.ts +1 -1
- package/src/use-lunatic/commons/fill-components/fill-components.ts +1 -1
- package/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.ts +14 -6
- package/src/use-lunatic/commons/variables/get-questionnaire-data.ts +1 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +49 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.ts +63 -6
- package/src/use-lunatic/reducer/reducer.ts +11 -0
- package/src/use-lunatic/reducer/reducerInitializer.tsx +2 -1
- package/src/use-lunatic/type.ts +3 -0
- package/src/use-lunatic/use-lunatic.test.ts +40 -1
- package/stories/overview/sourceWithHierarchy.json +32 -32
- package/tsconfig.build.tsbuildinfo +1 -1
- package/type.source.d.ts +1 -1
- package/use-lunatic/actions.d.ts +2 -0
- package/use-lunatic/actions.js.map +1 -1
- package/use-lunatic/commons/fill-components/fill-component.spec.js +1 -1
- package/use-lunatic/commons/fill-components/fill-component.spec.js.map +1 -1
- 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/variables/behaviours/resizing-behaviour.js +11 -7
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
- package/use-lunatic/commons/variables/get-questionnaire-data.js +1 -0
- package/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.d.ts +18 -3
- package/use-lunatic/commons/variables/lunatic-variables-store.js +49 -5
- package/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +44 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/use-lunatic/reducer/reducer.js +9 -0
- package/use-lunatic/reducer/reducer.js.map +1 -1
- package/use-lunatic/reducer/reducerInitializer.js +1 -1
- package/use-lunatic/reducer/reducerInitializer.js.map +1 -1
- package/use-lunatic/type.d.ts +3 -0
|
@@ -3,7 +3,16 @@ import { reduceGoNextPage } from './reduce-go-next-page';
|
|
|
3
3
|
import { reduceHandleChanges } from './reduce-handle-changes';
|
|
4
4
|
import { reduceGoPreviousPage } from './reduce-go-previous-page';
|
|
5
5
|
import { reduceGoToPage } from './reduce-go-to-page';
|
|
6
|
+
// Actions that trigger a change in the store
|
|
7
|
+
const commitActions = [
|
|
8
|
+
ActionKind.GO_PREVIOUS_PAGE,
|
|
9
|
+
ActionKind.GO_NEXT_PAGE,
|
|
10
|
+
ActionKind.GO_TO_PAGE,
|
|
11
|
+
];
|
|
6
12
|
export function reducer(state, action) {
|
|
13
|
+
if (commitActions.includes(action.type)) {
|
|
14
|
+
state.variables.commit();
|
|
15
|
+
}
|
|
7
16
|
switch (action.type) {
|
|
8
17
|
case ActionKind.GO_PREVIOUS_PAGE:
|
|
9
18
|
return reduceGoPreviousPage(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../../src/use-lunatic/reducer/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,UAAU,OAAO,CACtB,KAA0B,EAC1B,MAAc;IAEd,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,UAAU,CAAC,gBAAgB;YAC/B,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC;QACpC,KAAK,UAAU,CAAC,YAAY;YAC3B,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAChC,KAAK,UAAU,CAAC,UAAU;YACzB,OAAO,cAAc,CAAC,K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ACf,CAAC;AACF,CAAC"}
|
|
@@ -31,7 +31,7 @@ const baseState = {
|
|
|
31
31
|
};
|
|
32
32
|
export function reducerInitializer({ source, data, features = ['VTL'], initialPage = '1', lastReachedPage = undefined, withOverview = false, disableFilters = false, disableFiltersDescription = true, getReferentiel, onVariableChange, logger, }) {
|
|
33
33
|
var _a;
|
|
34
|
-
const variables = LunaticVariablesStore.makeFromSource(source, data, onVariableChange, disableFilters);
|
|
34
|
+
const variables = LunaticVariablesStore.makeFromSource(source, data, onVariableChange, disableFilters, source.pagination !== 'question');
|
|
35
35
|
const pages = checkLoops(createMapPages(source));
|
|
36
36
|
if (!source || !data) {
|
|
37
37
|
return baseState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducerInitializer.js","sourceRoot":"","sources":["../../../src/use-lunatic/reducer/reducerInitializer.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAI3E,MAAM,SAAS,GAAG;IACjB,IAAI,EAAE,CAAC;IACP,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,SAAS;IACpB,gBAAgB,EAAE,SAAS;IAC3B,YAAY,EAAE,SAAS;CACvB,CAAC;AACF,MAAM,SAAS,GAAG;IACjB,SAAS,EAAE,IAAI,qBAAqB,EAAE;IACtC,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,SAAS;IACxB,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;IACrB,QAAQ,EAAE,EAAE;IACZ,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;IACxB,iBAAiB,EAAE,GAAO,EAAE,CAAC,IAAS;IACtC,OAAO,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE;CACrC,CAAC;AAEhC,MAAM,UAAU,kBAAkB,CAAC,EAClC,MAAM,EACN,IAAI,EACJ,QAAQ,GAAG,CAAC,KAAK,CAAC,EAClB,WAAW,GAAG,GAAG,EACjB,eAAe,GAAG,SAAS,EAC3B,YAAY,GAAG,KAAK,EACpB,cAAc,GAAG,KAAK,EACtB,yBAAyB,GAAG,IAAI,EAChC,cAAc,EACd,gBAAgB,EAChB,MAAM,GAaN;;IACA,MAAM,SAAS,GAAG,qBAAqB,CAAC,cAAc,CACrD,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,cAAc,
|
|
1
|
+
{"version":3,"file":"reducerInitializer.js","sourceRoot":"","sources":["../../../src/use-lunatic/reducer/reducerInitializer.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC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,CAAC,CAAC;AACJ,CAAC;AAED;;IAEI;AACJ,SAAS,gBAAgB,CAAC,KAA0B;;IACnD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAC/B,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC;IACD,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7E,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO;QACN,GAAG,KAAK;QACR,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE;YACN,GAAG,KAAK;YACR,OAAO,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,mCAAI,CAAC;YAC5B,UAAU,EAAE,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC,CAAC,MAAM;YACnC,SAAS,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,mCAAI,CAAC;YAChC,YAAY,EAAE,QAAQ,CACrB,KAAK,CAAC,iBAAiB,CAAC,UAAU,EAAE;gBACnC,IAAI,EAAE,gBAAgB;aACtB,CAAC,CACF;SACD;KACD,CAAC;AACH,CAAC"}
|
|
@@ -204,6 +204,8 @@ export type LunaticOptions = {
|
|
|
204
204
|
componentsOptions?: {
|
|
205
205
|
detailAlwaysDisplayed?: boolean;
|
|
206
206
|
};
|
|
207
|
+
/** Commit variable change automatically for resizing / cleaning (used for testing) **/
|
|
208
|
+
autoCommit?: boolean;
|
|
207
209
|
};
|
|
208
210
|
/**
|
|
209
211
|
* Return type of {@link useLunatic}.
|
|
@@ -333,4 +335,5 @@ export type LunaticChangesHandler = (args: {
|
|
|
333
335
|
name: string;
|
|
334
336
|
value: any;
|
|
335
337
|
iteration?: number[];
|
|
338
|
+
ignoreIterationOnScalar?: boolean;
|
|
336
339
|
}[]) => void;
|
|
@@ -30,12 +30,13 @@ function useTrackChanges(enabled, store, getData) {
|
|
|
30
30
|
if (!enabledRef.current) {
|
|
31
31
|
throw new Error('getChangedData() cannot be used without enabling tracking mode, add "trackChanges: true" to useLunatic options');
|
|
32
32
|
}
|
|
33
|
+
store.commit();
|
|
33
34
|
const data = getDataRef.current(Array.from(changedVariables.current));
|
|
34
35
|
if (reset) {
|
|
35
36
|
resetChangedData();
|
|
36
37
|
}
|
|
37
38
|
return data;
|
|
38
|
-
}, [enabledRef, getDataRef, resetChangedData]);
|
|
39
|
+
}, [enabledRef, getDataRef, resetChangedData, store]);
|
|
39
40
|
return {
|
|
40
41
|
getChangedData,
|
|
41
42
|
resetChangedData,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-track-changes.js","sourceRoot":"","sources":["../src/hooks/use-track-changes.ts"],"names":[],"mappings":";;AAWA,
|
|
1
|
+
{"version":3,"file":"use-track-changes.js","sourceRoot":"","sources":["../src/hooks/use-track-changes.ts"],"names":[],"mappings":";;AAWA,0CAgDC;AA3DD,iCAAuD;AACvD,6CAA0C;AAO1C;;GAEG;AACH,SAAgB,eAAe,CAC9B,OAAgB,EAChB,KAA4B,EAC5B,OAAyC;IAEzC,qCAAqC;IACrC,MAAM,gBAAgB,GAAG,IAAA,cAAM,EAAC,IAAI,GAAG,EAAU,CAAC,CAAC;IACnD,+CAA+C;IAC/C,MAAM,UAAU,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,CAAC;IACvC,MAAM,UAAU,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,CAAC;IAEvC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO;QACR,CAAC;QACD,MAAM,YAAY,GAAG,CAAC,CAAuC,EAAE,EAAE;YAChE,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC,CAAC;QACF,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACjC,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAChD,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAErB,kCAAkC;IAClC,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACzC,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEvB,MAAM,cAAc,GAAG,IAAA,mBAAW,EACjC,CAAC,QAAiB,KAAK,EAAE,EAAE;QAC1B,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACd,gHAAgH,CAChH,CAAC;QACH,CAAC;QACD,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;QACtE,IAAI,KAAK,EAAE,CAAC;YACX,gBAAgB,EAAE,CAAC;QACpB,CAAC;QACD,OAAO,IAAI,CAAC;IACb,CAAC,EACD,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,CAAC,CACjD,CAAC;IAEF,OAAO;QACN,cAAc;QACd,gBAAgB;KAChB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -93,6 +93,15 @@ describe('Input', () => {
|
|
|
93
93
|
expect(input).toHaveValue('toto');
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
+
it('should handle required', () => {
|
|
97
|
+
const { container } = render(<Input {...baseProps} required />);
|
|
98
|
+
|
|
99
|
+
const input = container.querySelector('input[type="text"]');
|
|
100
|
+
|
|
101
|
+
expect(input).toHaveAttribute('required');
|
|
102
|
+
expect(input).toHaveAttribute('aria-required', 'true');
|
|
103
|
+
});
|
|
104
|
+
|
|
96
105
|
it('should display input value from the start when user leave input', () => {
|
|
97
106
|
const setSelectionRangeMock = vi.fn();
|
|
98
107
|
const { container } = render(<Input {...baseProps} />);
|
|
@@ -106,6 +106,15 @@ describe('InputNumber', () => {
|
|
|
106
106
|
expect(input).toHaveValue('123');
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
+
it('should handle required', () => {
|
|
110
|
+
const { container } = render(<InputNumber {...baseProps} required />);
|
|
111
|
+
|
|
112
|
+
const input = container.querySelector('input[type="text"]');
|
|
113
|
+
|
|
114
|
+
expect(input).toHaveAttribute('required');
|
|
115
|
+
expect(input).toHaveAttribute('aria-required', 'true');
|
|
116
|
+
});
|
|
117
|
+
|
|
109
118
|
it('renders with unit', () => {
|
|
110
119
|
const { container } = render(<InputNumber {...baseProps} unit="kg" />);
|
|
111
120
|
|
|
@@ -8,6 +8,7 @@ exports[`InputNumber > renders without crashing 1`] = `
|
|
|
8
8
|
<input
|
|
9
9
|
aria-invalid="false"
|
|
10
10
|
aria-labelledby="label-number"
|
|
11
|
+
aria-required="false"
|
|
11
12
|
class=""
|
|
12
13
|
id="number"
|
|
13
14
|
inputmode="numeric"
|
|
@@ -28,6 +29,7 @@ exports[`InputNumber > should handle readOnly 1`] = `
|
|
|
28
29
|
<input
|
|
29
30
|
aria-invalid="false"
|
|
30
31
|
aria-labelledby="label-number"
|
|
32
|
+
aria-required="false"
|
|
31
33
|
class=""
|
|
32
34
|
id="number"
|
|
33
35
|
inputmode="numeric"
|
|
@@ -61,4 +61,14 @@ describe('Textarea', () => {
|
|
|
61
61
|
'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.'
|
|
62
62
|
);
|
|
63
63
|
});
|
|
64
|
+
|
|
65
|
+
it('should handle required', () => {
|
|
66
|
+
const { container } = render(<Textarea {...baseProps} required />);
|
|
67
|
+
|
|
68
|
+
const textarea = container.querySelector('textarea');
|
|
69
|
+
|
|
70
|
+
expect(textarea).toBeInTheDocument();
|
|
71
|
+
expect(textarea).toHaveAttribute('required');
|
|
72
|
+
expect(textarea).toHaveAttribute('aria-required', 'true');
|
|
73
|
+
});
|
|
64
74
|
});
|
|
@@ -43,13 +43,14 @@ export function useTrackChanges(
|
|
|
43
43
|
'getChangedData() cannot be used without enabling tracking mode, add "trackChanges: true" to useLunatic options'
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
|
+
store.commit();
|
|
46
47
|
const data = getDataRef.current(Array.from(changedVariables.current));
|
|
47
48
|
if (reset) {
|
|
48
49
|
resetChangedData();
|
|
49
50
|
}
|
|
50
51
|
return data;
|
|
51
52
|
},
|
|
52
|
-
[enabledRef, getDataRef, resetChangedData]
|
|
53
|
+
[enabledRef, getDataRef, resetChangedData, store]
|
|
53
54
|
);
|
|
54
55
|
|
|
55
56
|
return {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{
|
|
25
25
|
"id": "m8ilsr46",
|
|
26
26
|
"componentType": "RosterForLoop",
|
|
27
|
-
"
|
|
27
|
+
"isMandatory": false,
|
|
28
28
|
"page": "2",
|
|
29
29
|
"lines": {
|
|
30
30
|
"min": { "value": "1", "type": "VTL" },
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
{
|
|
79
79
|
"id": "m8ilvkbt",
|
|
80
80
|
"componentType": "Input",
|
|
81
|
-
"
|
|
81
|
+
"isMandatory": false,
|
|
82
82
|
"page": "3.2",
|
|
83
83
|
"maxLength": 249,
|
|
84
84
|
"response": { "name": "CETTEQUEST" }
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
{
|
|
102
102
|
"id": "m8iljjiu",
|
|
103
103
|
"componentType": "Input",
|
|
104
|
-
"
|
|
104
|
+
"isMandatory": false,
|
|
105
105
|
"page": "3.3",
|
|
106
106
|
"maxLength": 249,
|
|
107
107
|
"response": { "name": "ONLY_LAURENT" }
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
{
|
|
125
125
|
"id": "m8ili0k6",
|
|
126
126
|
"componentType": "Input",
|
|
127
|
-
"
|
|
127
|
+
"isMandatory": false,
|
|
128
128
|
"page": "3.4",
|
|
129
129
|
"maxLength": 249,
|
|
130
130
|
"response": { "name": "ONLY_TROIS_LAURENT" }
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"type": "VTL|MD",
|
|
84
84
|
"value": "\"➡ 1. \" || \"Origine\""
|
|
85
85
|
},
|
|
86
|
-
"
|
|
86
|
+
"isMandatory": false,
|
|
87
87
|
"bindingDependencies": ["ORIGIN"],
|
|
88
88
|
"response": {
|
|
89
89
|
"name": "ORIGIN"
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"type": "VTL|MD",
|
|
113
113
|
"value": "\"➡ 2. \" || \"Ville de france\""
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"isMandatory": false,
|
|
116
116
|
"bindingDependencies": ["CITY"],
|
|
117
117
|
"response": {
|
|
118
118
|
"name": "CITY"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"type": "VTL|MD",
|
|
111
111
|
"value": "\"➡ 1. \" || \"\"question 1 : Q1\" \""
|
|
112
112
|
},
|
|
113
|
-
"
|
|
113
|
+
"isMandatory": false,
|
|
114
114
|
"maxLength": 5,
|
|
115
115
|
"declarations": [
|
|
116
116
|
{
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"type": "VTL|MD",
|
|
178
178
|
"value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
|
|
179
179
|
},
|
|
180
|
-
"
|
|
180
|
+
"isMandatory": false,
|
|
181
181
|
"maxLength": 2000
|
|
182
182
|
}
|
|
183
183
|
],
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
{
|
|
65
65
|
"id": "k0dzbfek",
|
|
66
66
|
"componentType": "InputNumber",
|
|
67
|
-
"
|
|
67
|
+
"isMandatory": false,
|
|
68
68
|
"page": "2",
|
|
69
69
|
"min": 0,
|
|
70
70
|
"max": 100,
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
{
|
|
133
133
|
"id": "kd0a6rn3",
|
|
134
134
|
"componentType": "InputNumber",
|
|
135
|
-
"
|
|
135
|
+
"isMandatory": false,
|
|
136
136
|
"page": "3",
|
|
137
137
|
"min": 0,
|
|
138
138
|
"max": 100,
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
{
|
|
179
179
|
"id": "kd0a8h62",
|
|
180
180
|
"componentType": "InputNumber",
|
|
181
|
-
"
|
|
181
|
+
"isMandatory": false,
|
|
182
182
|
"page": "4",
|
|
183
183
|
"min": 0,
|
|
184
184
|
"max": 100,
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
{
|
|
239
239
|
"id": "kd0a4t4f",
|
|
240
240
|
"componentType": "InputNumber",
|
|
241
|
-
"
|
|
241
|
+
"isMandatory": false,
|
|
242
242
|
"page": "5",
|
|
243
243
|
"min": 0,
|
|
244
244
|
"max": 100,
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
{
|
|
299
299
|
"id": "kd0ac92p",
|
|
300
300
|
"componentType": "InputNumber",
|
|
301
|
-
"
|
|
301
|
+
"isMandatory": false,
|
|
302
302
|
"page": "6",
|
|
303
303
|
"min": 0,
|
|
304
304
|
"max": 100,
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
{
|
|
359
359
|
"id": "k1cahy88",
|
|
360
360
|
"componentType": "InputNumber",
|
|
361
|
-
"
|
|
361
|
+
"isMandatory": false,
|
|
362
362
|
"page": "7",
|
|
363
363
|
"min": 0,
|
|
364
364
|
"max": 9,
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
{
|
|
408
408
|
"id": "kd0ch7pf",
|
|
409
409
|
"componentType": "InputNumber",
|
|
410
|
-
"
|
|
410
|
+
"isMandatory": false,
|
|
411
411
|
"page": "8",
|
|
412
412
|
"min": 0,
|
|
413
413
|
"max": 9,
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
{
|
|
470
470
|
"id": "kd0aamy0",
|
|
471
471
|
"componentType": "InputNumber",
|
|
472
|
-
"
|
|
472
|
+
"isMandatory": false,
|
|
473
473
|
"page": "9",
|
|
474
474
|
"min": -100,
|
|
475
475
|
"max": 100,
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
{
|
|
632
632
|
"id": "kd0aa5ah",
|
|
633
633
|
"componentType": "InputNumber",
|
|
634
|
-
"
|
|
634
|
+
"isMandatory": false,
|
|
635
635
|
"page": "10",
|
|
636
636
|
"min": -100,
|
|
637
637
|
"max": 100,
|
|
@@ -708,7 +708,7 @@
|
|
|
708
708
|
{
|
|
709
709
|
"id": "l5qvuk9e",
|
|
710
710
|
"componentType": "InputNumber",
|
|
711
|
-
"
|
|
711
|
+
"isMandatory": false,
|
|
712
712
|
"page": "11",
|
|
713
713
|
"min": -100,
|
|
714
714
|
"max": 100,
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
{
|
|
766
766
|
"id": "l5qvtc2l",
|
|
767
767
|
"componentType": "InputNumber",
|
|
768
|
-
"
|
|
768
|
+
"isMandatory": false,
|
|
769
769
|
"page": "12",
|
|
770
770
|
"min": -100,
|
|
771
771
|
"max": 100,
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
{
|
|
823
823
|
"id": "kd0c3h3b",
|
|
824
824
|
"componentType": "InputNumber",
|
|
825
|
-
"
|
|
825
|
+
"isMandatory": false,
|
|
826
826
|
"page": "13",
|
|
827
827
|
"min": 0,
|
|
828
828
|
"max": 1000000000,
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
{
|
|
930
930
|
"id": "kd0achk0",
|
|
931
931
|
"componentType": "InputNumber",
|
|
932
|
-
"
|
|
932
|
+
"isMandatory": false,
|
|
933
933
|
"page": "15",
|
|
934
934
|
"min": -100,
|
|
935
935
|
"max": 100,
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
{
|
|
975
975
|
"id": "kd0bl558",
|
|
976
976
|
"componentType": "InputNumber",
|
|
977
|
-
"
|
|
977
|
+
"isMandatory": false,
|
|
978
978
|
"page": "16",
|
|
979
979
|
"min": -100,
|
|
980
980
|
"max": 100,
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
{
|
|
1093
1093
|
"id": "l5qt3xu9",
|
|
1094
1094
|
"componentType": "InputNumber",
|
|
1095
|
-
"
|
|
1095
|
+
"isMandatory": false,
|
|
1096
1096
|
"page": "17",
|
|
1097
1097
|
"min": 0,
|
|
1098
1098
|
"max": 100,
|
|
@@ -1149,7 +1149,7 @@
|
|
|
1149
1149
|
{
|
|
1150
1150
|
"id": "kd0bu8xz",
|
|
1151
1151
|
"componentType": "InputNumber",
|
|
1152
|
-
"
|
|
1152
|
+
"isMandatory": false,
|
|
1153
1153
|
"page": "18",
|
|
1154
1154
|
"min": -400,
|
|
1155
1155
|
"max": 400,
|
|
@@ -1237,7 +1237,7 @@
|
|
|
1237
1237
|
{
|
|
1238
1238
|
"id": "k0gj7g4v",
|
|
1239
1239
|
"componentType": "InputNumber",
|
|
1240
|
-
"
|
|
1240
|
+
"isMandatory": false,
|
|
1241
1241
|
"page": "19",
|
|
1242
1242
|
"min": -200,
|
|
1243
1243
|
"max": 200,
|
|
@@ -1345,7 +1345,7 @@
|
|
|
1345
1345
|
{
|
|
1346
1346
|
"id": "kd0bx24r",
|
|
1347
1347
|
"componentType": "InputNumber",
|
|
1348
|
-
"
|
|
1348
|
+
"isMandatory": false,
|
|
1349
1349
|
"page": "20",
|
|
1350
1350
|
"min": -400,
|
|
1351
1351
|
"max": 400,
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
{
|
|
1440
1440
|
"id": "kd0c2j4a",
|
|
1441
1441
|
"componentType": "InputNumber",
|
|
1442
|
-
"
|
|
1442
|
+
"isMandatory": false,
|
|
1443
1443
|
"page": "21",
|
|
1444
1444
|
"min": -400,
|
|
1445
1445
|
"max": 400,
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"type": "VTL|MD",
|
|
184
184
|
"value": "\"➡ 1. \" || \"Controle sur booleen\""
|
|
185
185
|
},
|
|
186
|
-
"
|
|
186
|
+
"isMandatory": false
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"componentType": "Input",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"type": "VTL|MD",
|
|
240
240
|
"value": "\"➡ 2. \" || \"Controle sur du texte < 255\""
|
|
241
241
|
},
|
|
242
|
-
"
|
|
242
|
+
"isMandatory": false,
|
|
243
243
|
"maxLength": 15,
|
|
244
244
|
"declarations": [
|
|
245
245
|
{
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"type": "VTL|MD",
|
|
345
345
|
"value": "\"➡ 3. \" || \"Controle sur code\""
|
|
346
346
|
},
|
|
347
|
-
"
|
|
347
|
+
"isMandatory": false,
|
|
348
348
|
"declarations": [
|
|
349
349
|
{
|
|
350
350
|
"declarationType": "INSTRUCTION",
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
"type": "VTL|MD",
|
|
409
409
|
"value": "\"➡ 4. \" || \"Controle sur date AAAA-MM-JJ (saisie entre 31/12/1990 et 31/12/2040)\""
|
|
410
410
|
},
|
|
411
|
-
"
|
|
411
|
+
"isMandatory": false,
|
|
412
412
|
"declarations": [
|
|
413
413
|
{
|
|
414
414
|
"declarationType": "INSTRUCTION",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
"type": "VTL|MD",
|
|
487
487
|
"value": "\"➡ 5. \" || \"Controle sur date AAAA-MM (manque lunatic)\""
|
|
488
488
|
},
|
|
489
|
-
"
|
|
489
|
+
"isMandatory": false,
|
|
490
490
|
"declarations": [
|
|
491
491
|
{
|
|
492
492
|
"declarationType": "INSTRUCTION",
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
"type": "VTL|MD",
|
|
556
556
|
"value": "\"➡ 6. \" || \"Controle sur date AAAA (si supérieur à 2020) manque lunatic\""
|
|
557
557
|
},
|
|
558
|
-
"
|
|
558
|
+
"isMandatory": false,
|
|
559
559
|
"declarations": [
|
|
560
560
|
{
|
|
561
561
|
"declarationType": "INSTRUCTION",
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
"type": "VTL|MD",
|
|
621
621
|
"value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
|
|
622
622
|
},
|
|
623
|
-
"
|
|
623
|
+
"isMandatory": false,
|
|
624
624
|
"maxLength": 2000
|
|
625
625
|
}
|
|
626
626
|
],
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"response": {
|
|
94
94
|
"name": "NAME"
|
|
95
95
|
},
|
|
96
|
-
"
|
|
96
|
+
"isMandatory": false,
|
|
97
97
|
"maxLength": 249,
|
|
98
98
|
"componentType": "Input"
|
|
99
99
|
}
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"response": {
|
|
152
152
|
"name": "AGE"
|
|
153
153
|
},
|
|
154
|
-
"
|
|
154
|
+
"isMandatory": false,
|
|
155
155
|
"description": {
|
|
156
156
|
"type": "TXT",
|
|
157
157
|
"value": "Format attendu : un nombre entre 1 et 200"
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"response": {
|
|
207
207
|
"name": "APPLE"
|
|
208
208
|
},
|
|
209
|
-
"
|
|
209
|
+
"isMandatory": false,
|
|
210
210
|
"orientation": "vertical",
|
|
211
211
|
"componentType": "Radio"
|
|
212
212
|
}
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"response": {
|
|
153
153
|
"name": "NBHAB"
|
|
154
154
|
},
|
|
155
|
-
"
|
|
155
|
+
"isMandatory": false,
|
|
156
156
|
"description": {
|
|
157
157
|
"type": "TXT",
|
|
158
158
|
"value": "Format attendu : un nombre entre 1 et 10"
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"response": {
|
|
210
210
|
"name": "NAME"
|
|
211
211
|
},
|
|
212
|
-
"
|
|
212
|
+
"isMandatory": false,
|
|
213
213
|
"maxLength": 249,
|
|
214
214
|
"componentType": "Input"
|
|
215
215
|
}
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"response": {
|
|
312
312
|
"name": "AGE"
|
|
313
313
|
},
|
|
314
|
-
"
|
|
314
|
+
"isMandatory": false,
|
|
315
315
|
"description": {
|
|
316
316
|
"type": "TXT",
|
|
317
317
|
"value": "Format attendu : un nombre entre 1 et 200"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{
|
|
40
40
|
"id": "kze792d8",
|
|
41
41
|
"componentType": "InputNumber",
|
|
42
|
-
"
|
|
42
|
+
"isMandatory": false,
|
|
43
43
|
"page": "2",
|
|
44
44
|
"min": 0,
|
|
45
45
|
"max": 10,
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
{
|
|
166
166
|
"id": "ksyjvi40",
|
|
167
167
|
"componentType": "Input",
|
|
168
|
-
"
|
|
168
|
+
"isMandatory": false,
|
|
169
169
|
"maxLength": 249,
|
|
170
170
|
"label": {
|
|
171
171
|
"value": "\"prénom\"",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
{
|
|
198
198
|
"id": "nomksyjvi40",
|
|
199
199
|
"componentType": "Input",
|
|
200
|
-
"
|
|
200
|
+
"isMandatory": false,
|
|
201
201
|
"maxLength": 249,
|
|
202
202
|
"label": {
|
|
203
203
|
"value": "\"Nom\"",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
{
|
|
311
311
|
"id": "ksyke448",
|
|
312
312
|
"componentType": "InputNumber",
|
|
313
|
-
"
|
|
313
|
+
"isMandatory": false,
|
|
314
314
|
"page": "5.1",
|
|
315
315
|
"min": 0,
|
|
316
316
|
"max": 100,
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
{
|
|
468
468
|
"id": "ku2pxugf",
|
|
469
469
|
"componentType": "Input",
|
|
470
|
-
"
|
|
470
|
+
"isMandatory": false,
|
|
471
471
|
"page": "7",
|
|
472
472
|
"maxLength": 249,
|
|
473
473
|
"label": {
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
{
|
|
585
585
|
"id": "COMMENT-QUESTION",
|
|
586
586
|
"componentType": "Textarea",
|
|
587
|
-
"
|
|
587
|
+
"isMandatory": false,
|
|
588
588
|
"page": "10",
|
|
589
589
|
"maxLength": 2000,
|
|
590
590
|
"label": {
|