@inseefr/lunatic 2.4.1 → 2.4.2

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 (98) hide show
  1. package/lib/components/commons/components/lunatic-component-with-label.js +5 -6
  2. package/lib/components/component-set/html/component-set-component-container.js +20 -0
  3. package/lib/components/component-set/html/component-set-components.js +59 -0
  4. package/lib/components/component-set/html/component-set.js +32 -0
  5. package/lib/components/component-set/html/legend/index.js +13 -0
  6. package/lib/components/component-set/html/legend/legend.js +31 -0
  7. package/lib/components/component-set/index.js +20 -0
  8. package/lib/components/component-set/lunatic-component-set.js +69 -0
  9. package/lib/components/components.js +9 -1
  10. package/lib/components/declarations/declarations.scss +8 -2
  11. package/lib/components/input/html/input.scss +1 -1
  12. package/lib/components/radio/html/radio-group-content.js +4 -2
  13. package/lib/components/radio/html/radio-group-content.spec.js +14 -0
  14. package/lib/components/radio/html/radio-group.js +8 -4
  15. package/lib/components/radio/html/radio-option.js +14 -10
  16. package/lib/components/radio/lunatic-radio-group.js +6 -3
  17. package/lib/components/radio/radio-group.js +5 -2
  18. package/lib/components/suggester/html/suggester.js +2 -1
  19. package/lib/i18n/dictionary.js +4 -0
  20. package/lib/src/i18n/dictionary.d.ts +4 -0
  21. package/lib/src/i18n/index.d.ts +1 -1
  22. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +2 -2
  23. package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.spec.d.ts +1 -0
  24. package/lib/src/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +1 -1
  25. package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +39 -0
  26. package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +30 -0
  27. package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
  28. package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +2 -2
  29. package/lib/src/use-lunatic/reducer/resolve-component-controls/index.d.ts +1 -0
  30. package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-roundabout-control.d.ts +10 -0
  31. package/lib/src/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.d.ts +3 -0
  32. package/lib/src/use-lunatic/replace-component-sequence.d.ts +9 -0
  33. package/lib/src/use-lunatic/type-source.d.ts +14 -3
  34. package/lib/src/use-lunatic/use-lunatic.d.ts +1 -1
  35. package/lib/src/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.d.ts +2 -0
  36. package/lib/src/utils/suggester-workers/searching/compute-score.d.ts +3 -0
  37. package/lib/src/utils/suggester-workers/searching/meloto-order.d.ts +24 -0
  38. package/lib/stories/Introduction.stories.mdx +4 -4
  39. package/lib/stories/checkboxGroup/source.json +4 -5
  40. package/lib/stories/component-set/component-set.stories.js +56 -0
  41. package/lib/stories/component-set/data.json +18 -0
  42. package/lib/stories/component-set/data1.json +18 -0
  43. package/lib/stories/component-set/data2.json +18 -0
  44. package/lib/stories/component-set/source.json +99 -0
  45. package/lib/stories/component-set/source1.json +287 -0
  46. package/lib/stories/component-set/source2.json +413 -0
  47. package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +1 -2
  48. package/lib/stories/declaration/source.json +24 -0
  49. package/lib/stories/loop/paginated-loop.stories.js +34 -0
  50. package/lib/stories/loop/source-paginated.json +126 -0
  51. package/lib/stories/paste-questionnaire/test.stories.js +1 -1
  52. package/lib/stories/questionnaires-test/controls/controls-externes.json +75 -0
  53. package/lib/stories/questionnaires-test/controls/controls-externes.stories.js +62 -0
  54. package/lib/stories/questionnaires-test/controls/controls.stories.js +1 -1
  55. package/lib/stories/questionnaires-test/test.stories.js +1 -1
  56. package/lib/stories/questionnaires2023/bySequence/source.json +5054 -0
  57. package/lib/stories/questionnaires2023/bySequence/ticWeb.stories.js +64 -0
  58. package/lib/stories/questionnaires2023/famille/famille.stories.js +64 -0
  59. package/lib/stories/questionnaires2023/famille/source.json +50344 -0
  60. package/lib/stories/questionnaires2023/simpsons/simpsons.stories.js +64 -0
  61. package/lib/stories/questionnaires2023/simpsons/source.json +5176 -0
  62. package/lib/stories/questionnaires2023/ticTel/source.json +12888 -0
  63. package/lib/stories/questionnaires2023/ticTel/ticWeb.stories.js +64 -0
  64. package/lib/stories/questionnaires2023/ticWeb/source.json +11331 -0
  65. package/lib/stories/questionnaires2023/ticWeb/ticWeb.stories.js +64 -0
  66. package/lib/stories/resizing-questionnaire/source.json +789 -0
  67. package/lib/stories/resizing-questionnaire/test.stories.js +84 -0
  68. package/lib/stories/roundabout/source.json +16 -0
  69. package/lib/stories/suggester/SuggesterNotification.js +26 -0
  70. package/lib/stories/suggester/suggester-workers.stories.js +8 -5
  71. package/lib/stories/suggester/suggester.stories.js +1 -0
  72. package/lib/use-lunatic/actions.js +4 -4
  73. package/lib/use-lunatic/commons/calculated-variables.js +1 -1
  74. package/lib/use-lunatic/commons/compile-controls.js +4 -3
  75. package/lib/use-lunatic/commons/execute-expression/create-execute-expression.spec.js +155 -0
  76. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +3 -2
  77. package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.spec.js +128 -0
  78. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +4 -1
  79. package/lib/use-lunatic/reducer/reduce-on-init.js +1 -2
  80. package/lib/use-lunatic/reducer/resolve-component-controls/index.js +12 -0
  81. package/lib/use-lunatic/reducer/{validate-controls/validation-utils.js → resolve-component-controls/resolve-component-control.js} +10 -34
  82. package/lib/use-lunatic/reducer/resolve-component-controls/resolve-roundabout-control.js +54 -0
  83. package/lib/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.js +44 -0
  84. package/lib/use-lunatic/replace-component-sequence.js +28 -0
  85. package/lib/use-lunatic/type-source.js +15 -9
  86. package/lib/use-lunatic/use-lunatic.js +1 -1
  87. package/lib/use-lunatic/use-suggesters.js +5 -5
  88. package/lib/utils/suggester-workers/append-to-index/create-append-task.js +4 -2
  89. package/lib/utils/suggester-workers/append-to-index/dist/create-append-task.js +4 -2
  90. package/lib/utils/suggester-workers/commons-tokenizer/get-stemmer.spec.js +11 -0
  91. package/lib/utils/suggester-workers/commons-tokenizer/prepare-string-indexation.spec.js +10 -0
  92. package/lib/utils/suggester-workers/searching/compute-score.js +7 -12
  93. package/lib/utils/suggester-workers/searching/meloto-order.js +53 -0
  94. package/lib/utils/suggester-workers/searching/meloto-order.spec.js +67 -0
  95. package/lib/utils/suggester-workers/searching/searching.js +3 -3
  96. package/lib/utils/suggester-workers/searching/searching.worker.js +4 -2
  97. package/package.json +1 -1
  98. /package/lib/src/use-lunatic/reducer/{validate-controls/validation-utils.d.ts → resolve-component-controls/resolve-component-control.d.ts} +0 -0
@@ -25,14 +25,13 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
25
25
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
26
26
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
27
27
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
28
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import ClearIcon from '@mui/icons-material/Clear';
29
29
  // function getSelection(options, selectedIndex) {
30
30
  // if (selectedIndex !== undefined) {
31
31
  // return options[selectedIndex];
32
32
  // }
33
33
  // return undefined;
34
34
  // }
35
-
36
35
  function SuggesterContainer(_ref) {
37
36
  var children = _ref.children,
38
37
  onKeyDown = _ref.onKeyDown,
@@ -41,6 +41,30 @@
41
41
  "value": "\"Il faut manger pour vivre \n sur 2 lignes\"",
42
42
  "type": "VTL|MD"
43
43
  }
44
+ },
45
+ {
46
+ "declarationType": "INSTRUCTION",
47
+ "id": "jjy2j3hv-kocpsr93",
48
+ "label": "Je suis une consigne CATI donc en bleu",
49
+ "position": "AFTER_QUESTION_TEXT"
50
+ },
51
+ {
52
+ "declarationType": "HELP",
53
+ "id": "jjy2j3hv-krlygnqz",
54
+ "label": "Je suis une aide / help CATI CAPI donc en noir",
55
+ "position": "AFTER_QUESTION_TEXT"
56
+ },
57
+ {
58
+ "declarationType": "INSTRUCTION",
59
+ "id": "jjy2j3hv-krlyj1im",
60
+ "label": "Je suis une consigne CATI CAPI",
61
+ "position": "AFTER_QUESTION_TEXT"
62
+ },
63
+ {
64
+ "declarationType": "CODECARD",
65
+ "id": "jjy2j3hv-kocpy9pe",
66
+ "label": "Je suis une carte code CATI CAPI",
67
+ "position": "AFTER_QUESTION_TEXT"
44
68
  }
45
69
  ]
46
70
  }
@@ -0,0 +1,34 @@
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 _sourcePaginated = _interopRequireDefault(require("./source-paginated.json"));
10
+ var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
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: 'Components/Loop/PaginatedLoop',
21
+ component: _orchestrator["default"],
22
+ argTypes: _defaultArgTypes["default"]
23
+ };
24
+ var _default = stories;
25
+ exports["default"] = _default;
26
+ var Template = function Template(args) {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_orchestrator["default"], _objectSpread({}, args));
28
+ };
29
+ var Default = Template.bind({});
30
+ exports.Default = Default;
31
+ Default.args = {
32
+ id: 'paginated-loop',
33
+ source: _sourcePaginated["default"]
34
+ };
@@ -0,0 +1,126 @@
1
+ {
2
+ "maxPage": "3",
3
+ "components": [
4
+ {
5
+ "id": "kb9hi4j0",
6
+ "componentType": "Sequence",
7
+ "page": "1",
8
+ "label": { "value": "\"Sequence\"", "type": "VTL|MD" },
9
+ "declarations": [
10
+ {
11
+ "id": "kb9hi4j0-krnoclfe",
12
+ "declarationType": "HELP",
13
+ "position": "AFTER_QUESTION_TEXT",
14
+ "label": {
15
+ "value": "\"Bonjour!\"",
16
+ "type": "VTL"
17
+ }
18
+ }
19
+ ],
20
+ "conditionFilter": { "value": "true", "type": "VTL" }
21
+ },
22
+ {
23
+ "id": "kmw4iq4w",
24
+ "componentType": "Loop",
25
+ "page": "2",
26
+ "maxPage": "2",
27
+ "depth": 1,
28
+ "paginatedLoop": true,
29
+ "conditionFilter": {
30
+ "value": "true",
31
+ "type": "VTL"
32
+ },
33
+ "loopDependencies": ["3"],
34
+ "iterations": { "value": "3", "type": "VTL" },
35
+ "components": [
36
+ {
37
+ "id": "kmno1n7m",
38
+ "componentType": "Input",
39
+ "mandatory": false,
40
+ "page": "2.1",
41
+ "maxLength": 20,
42
+ "label": {
43
+ "value": "\"Page 1\"",
44
+ "type": "VTL"
45
+ },
46
+ "conditionFilter": {
47
+ "value": "true",
48
+ "type": "VTL"
49
+ },
50
+ "response": { "name": "PAGE1" }
51
+ },
52
+ {
53
+ "id": "kmno1n7m",
54
+ "componentType": "Input",
55
+ "mandatory": false,
56
+ "page": "2.2",
57
+ "maxLength": 20,
58
+ "label": {
59
+ "value": "\"Vous avez mis en page 1 \" || LIBELLE",
60
+ "type": "VTL"
61
+ },
62
+ "conditionFilter": {
63
+ "value": "true",
64
+ "type": "VTL"
65
+ },
66
+ "response": { "name": "PAGE2" }
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "id": "kb9hi4j0",
72
+ "componentType": "Sequence",
73
+ "page": "3",
74
+ "label": { "value": "\"Sequence\"", "type": "VTL" },
75
+ "declarations": [
76
+ {
77
+ "id": "kb9hi4j0-krnoclfe",
78
+ "declarationType": "HELP",
79
+ "position": "AFTER_QUESTION_TEXT",
80
+ "label": {
81
+ "value": "\"Au revoir!\"",
82
+ "type": "VTL"
83
+ }
84
+ }
85
+ ],
86
+ "conditionFilter": { "value": "true", "type": "VTL" }
87
+ }
88
+ ],
89
+ "resizing": {},
90
+ "variables": [
91
+ { "variableType": "EXTERNAL", "name": "NUMBER", "value": "3" },
92
+ {
93
+ "variableType": "COLLECTED",
94
+ "name": "PAGE1",
95
+ "values": {
96
+ "PREVIOUS": [null],
97
+ "COLLECTED": [null],
98
+ "FORCED": [null],
99
+ "EDITED": [null],
100
+ "INPUTED": [null]
101
+ }
102
+ },
103
+ {
104
+ "variableType": "COLLECTED",
105
+ "name": "PAGE2",
106
+ "values": {
107
+ "PREVIOUS": [null],
108
+ "COLLECTED": [null],
109
+ "FORCED": [null],
110
+ "EDITED": [null],
111
+ "INPUTED": [null]
112
+ }
113
+ },
114
+ {
115
+ "variableType": "CALCULATED",
116
+ "name": "LIBELLE",
117
+ "expression": {
118
+ "value": "PAGE1",
119
+ "type": "VTL"
120
+ },
121
+ "bindingDependencies": ["PAGE1"],
122
+ "inFilter": "false",
123
+ "shapeFrom": "PAGE1"
124
+ }
125
+ ]
126
+ }
@@ -17,7 +17,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
17
17
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
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
19
  var stories = {
20
- title: 'Questionnaires-PasteYour/Paste',
20
+ title: 'Behaviour/Paste',
21
21
  component: _orchestrator["default"],
22
22
  argTypes: _objectSpread(_objectSpread({}, _defaultArgTypes["default"]), {}, {
23
23
  missing: {
@@ -0,0 +1,75 @@
1
+ {
2
+ "maxPage": "2",
3
+ "components": [
4
+ {
5
+ "componentType": "Input",
6
+ "controls": [
7
+ {
8
+ "bindingDependencies": ["TESTSURBOO"],
9
+ "criticality": "WARN",
10
+ "errorMessage": {
11
+ "type": "VTL",
12
+ "value": "\"booleen pas coché et on affiche un message un peu long histoire de tester le truc \""
13
+ },
14
+ "typeOfControl": "CONSISTENCY",
15
+ "control": {
16
+ "type": "VTL",
17
+ "value": "not(nvl(TESTSURBOO,false) = false)"
18
+ },
19
+ "id": "kfxmjupm-CI-0"
20
+ },
21
+ {
22
+ "criticality": "WARN",
23
+ "errorMessage": {
24
+ "type": "VTL",
25
+ "value": "\"On a coché le booleen et on met une phrase un peu longue car on veut tester ce qui s\u2019affiche\""
26
+ },
27
+ "typeOfControl": "CONSISTENCY",
28
+ "control": {
29
+ "type": "VTL",
30
+ "value": "not(nvl(VAR,false) = true)"
31
+ },
32
+ "id": "kfxmjupm-CI-1"
33
+ }
34
+ ],
35
+ "response": { "name": "VAR" },
36
+ "conditionFilter": {
37
+ "type": "VTL",
38
+ "value": "true"
39
+ },
40
+ "id": "kfxmjupm",
41
+ "page": "1",
42
+ "label": {
43
+ "type": "VTL",
44
+ "value": "\"➡ 1. \" || \"Controle sur booleen\""
45
+ },
46
+ "mandatory": false
47
+ },
48
+ {
49
+ "componentType": "Sequence",
50
+ "conditionFilter": {
51
+ "type": "VTL",
52
+ "value": "true"
53
+ },
54
+ "id": "kfxmfvwj",
55
+ "page": "2",
56
+ "label": {
57
+ "type": "VTL",
58
+ "value": "\"BYE!\""
59
+ }
60
+ }
61
+ ],
62
+ "variables": [
63
+ {
64
+ "variableType": "COLLECTED",
65
+ "values": {
66
+ "COLLECTED": null,
67
+ "EDITED": null,
68
+ "INPUTED": null,
69
+ "FORCED": null,
70
+ "PREVIOUS": null
71
+ },
72
+ "name": "VAR"
73
+ }
74
+ ]
75
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = exports.BoucleN = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _orchestrator = _interopRequireDefault(require("../../utils/orchestrator"));
9
+ var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
10
+ var _controlsExternes = _interopRequireDefault(require("./controls-externes.json"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
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-Tests/Controls-externes',
21
+ component: _orchestrator["default"],
22
+ argTypes: _objectSpread(_objectSpread({}, _defaultArgTypes["default"]), {}, {
23
+ missing: {
24
+ table: {
25
+ disable: false
26
+ },
27
+ control: 'boolean',
28
+ defaultValue: true
29
+ },
30
+ activeGoNextForMissing: {
31
+ table: {
32
+ disable: false
33
+ },
34
+ control: 'boolean',
35
+ defaultValue: true
36
+ },
37
+ management: {
38
+ table: {
39
+ disable: false
40
+ },
41
+ control: 'boolean',
42
+ defaultValue: false
43
+ },
44
+ activeControls: {
45
+ control: 'boolean',
46
+ defaultValue: true
47
+ }
48
+ })
49
+ };
50
+ var _default = stories;
51
+ exports["default"] = _default;
52
+ var Template = function Template(args) {
53
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_orchestrator["default"], _objectSpread({}, args));
54
+ };
55
+ var BoucleN = Template.bind({});
56
+ exports.BoucleN = BoucleN;
57
+ BoucleN.args = {
58
+ id: 'externes',
59
+ pagination: true,
60
+ activeControls: true,
61
+ source: _controlsExternes["default"]
62
+ };
@@ -21,7 +21,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
21
21
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
22
  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); }
23
23
  var stories = {
24
- title: 'Questionnaires-Tests/Controls',
24
+ title: 'Behaviour/Controls',
25
25
  component: _orchestrator["default"],
26
26
  argTypes: _objectSpread(_objectSpread({}, _defaultArgTypes["default"]), {}, {
27
27
  missing: {
@@ -21,7 +21,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
21
21
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
22
  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); }
23
23
  var stories = {
24
- title: 'Questionnaires - Tests/Others',
24
+ title: 'Behaviour/Others',
25
25
  component: _orchestrator["default"],
26
26
  argTypes: _objectSpread(_objectSpread({}, _defaultArgTypes["default"]), {}, {
27
27
  missing: {