@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.
Files changed (48) hide show
  1. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +3 -1
  2. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +4 -1
  3. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +7 -2
  4. package/lib/components/commons/components/missing/missing.js +4 -1
  5. package/lib/components/commons/components/missing/missing.scss +26 -29
  6. package/lib/components/datepicker/lunatic-datepicker.js +1 -0
  7. package/lib/components/dropdown/lunatic-dropdown.js +1 -0
  8. package/lib/components/duration/duration.js +4 -1
  9. package/lib/components/input/lunatic-input.js +1 -0
  10. package/lib/components/input-number/lunatic-input-number.js +1 -0
  11. package/lib/components/loop/roster-for-loop/roster-for-loop.js +1 -0
  12. package/lib/components/lunatic-components.js +3 -1
  13. package/lib/components/radio/lunatic-radio-group.js +1 -0
  14. package/lib/components/suggester/lunatic-suggester.js +1 -0
  15. package/lib/components/switch/lunatic-switch.js +7 -2
  16. package/lib/components/textarea/lunatic-textarea.js +3 -1
  17. package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -1
  18. package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +1 -1
  19. package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -1
  20. package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +1 -1
  21. package/lib/src/components/commons/components/missing/missing.d.ts +2 -1
  22. package/lib/src/components/lunatic-components.d.ts +2 -1
  23. package/lib/src/components/switch/html/switch.d.ts +1 -0
  24. package/lib/src/components/switch/lunatic-switch.d.ts +1 -1
  25. package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +1 -1
  26. package/lib/src/use-lunatic/reducer/commons/index.d.ts +0 -1
  27. package/lib/src/utils/array.d.ts +1 -0
  28. package/lib/src/utils/variables.spec.d.ts +1 -0
  29. package/lib/stories/behaviour/missing/missing.stories.js +90 -0
  30. package/lib/stories/behaviour/missing/source.json +822 -0
  31. package/lib/stories/behaviour/performance/performance.stories.js +47 -0
  32. package/lib/stories/behaviour/performance/source.json +172 -0
  33. package/lib/stories/utils/orchestrator.js +13 -1
  34. package/lib/stories/utils/referentiel.js +3 -3
  35. package/lib/use-lunatic/commons/compile-controls.js +11 -5
  36. package/lib/use-lunatic/commons/execute-condition-filter.js +4 -1
  37. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +4 -2
  38. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +22 -5
  39. package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +5 -0
  40. package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +10 -0
  41. package/lib/use-lunatic/hooks/use-page-has-response.js +11 -3
  42. package/lib/use-lunatic/reducer/commons/index.js +1 -9
  43. package/lib/utils/array.js +21 -0
  44. package/lib/utils/variables.js +4 -15
  45. package/lib/utils/variables.spec.js +74 -0
  46. package/package.json +1 -1
  47. package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +0 -10
  48. 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
- };