@inseefr/lunatic 2.7.13 → 2.7.15
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/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +3 -1
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +4 -1
- package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +7 -2
- package/lib/components/commons/components/missing/missing.js +4 -1
- package/lib/components/commons/components/missing/missing.scss +26 -29
- package/lib/components/datepicker/lunatic-datepicker.js +1 -0
- package/lib/components/dropdown/lunatic-dropdown.js +1 -0
- package/lib/components/duration/duration.js +4 -1
- package/lib/components/input/lunatic-input.js +1 -0
- package/lib/components/input-number/lunatic-input-number.js +1 -0
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +1 -0
- package/lib/components/lunatic-components.js +3 -1
- package/lib/components/radio/lunatic-radio-group.js +1 -0
- package/lib/components/suggester/lunatic-suggester.js +1 -0
- package/lib/components/switch/lunatic-switch.js +7 -2
- package/lib/components/textarea/lunatic-textarea.js +3 -1
- package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -1
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +1 -1
- package/lib/src/components/commons/components/missing/missing.d.ts +2 -1
- package/lib/src/components/lunatic-components.d.ts +2 -1
- package/lib/src/components/switch/html/switch.d.ts +1 -0
- package/lib/src/components/switch/lunatic-switch.d.ts +1 -1
- package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/commons/index.d.ts +0 -1
- package/lib/src/utils/array.d.ts +1 -0
- package/lib/src/utils/variables.spec.d.ts +1 -0
- package/lib/stories/behaviour/missing/missing.stories.js +90 -0
- package/lib/stories/behaviour/missing/source.json +822 -0
- package/lib/stories/behaviour/performance/performance.stories.js +47 -0
- package/lib/stories/behaviour/performance/source.json +172 -0
- package/lib/stories/utils/orchestrator.js +13 -1
- package/lib/stories/utils/referentiel.js +3 -3
- package/lib/use-lunatic/commons/compile-controls.js +11 -5
- package/lib/use-lunatic/commons/execute-condition-filter.js +4 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +4 -2
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +22 -5
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +5 -0
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +10 -0
- package/lib/use-lunatic/hooks/use-page-has-response.js +11 -3
- package/lib/use-lunatic/reducer/commons/index.js +1 -9
- package/lib/utils/array.js +21 -0
- package/lib/utils/variables.js +4 -15
- package/lib/utils/variables.spec.js +74 -0
- package/package.json +1 -1
- package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +0 -10
- package/lib/use-lunatic/reducer/commons/is-loop-component.js +0 -9
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { LunaticComponentDefinition } from '../../type';
|
|
2
|
-
export declare const isLoopComponent: (component: LunaticComponentDefinition) => component is (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRosterForLoopType & {
|
|
3
|
-
componentType: "CheckboxOne" | "ConfirmationModal" | "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "ComponentSet" | "QuestionExplication";
|
|
4
|
-
} & {
|
|
5
|
-
componentType: 'Loop' | 'RosterForLoop';
|
|
6
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentLoopType & {
|
|
7
|
-
componentType: "CheckboxOne" | "ConfirmationModal" | "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "ComponentSet" | "QuestionExplication";
|
|
8
|
-
} & {
|
|
9
|
-
componentType: 'Loop' | 'RosterForLoop';
|
|
10
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isLoopComponent = void 0;
|
|
7
|
-
var isLoopComponent = exports.isLoopComponent = function isLoopComponent(component) {
|
|
8
|
-
return ['Loop', 'RosterForLoop'].includes(component.componentType);
|
|
9
|
-
};
|