@inseefr/lunatic 2.0.5-v2 → 2.0.6-v2-uglytest
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/commons/build-style-object.js +1 -1
- package/lib/components/commons/components/combo-box/combo-box.js +4 -2
- package/lib/components/commons/components/combo-box/state-management/actions.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-blur.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-change.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-delete.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-focus.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-init.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-down.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-arrow-up.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-end.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-enter.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-escape.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-home.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-keydown/on-tab.js +4 -1
- package/lib/components/commons/components/combo-box/state-management/reducer/reduce-on-select.js +4 -1
- package/lib/components/commons/components/dragger/dragger.js +1 -1
- package/lib/components/commons/components/errors/errors.js +1 -1
- package/lib/components/commons/components/is-network/is-network.js +1 -1
- package/lib/components/commons/components/md-label/md-label.js +4 -1
- package/lib/components/commons/components/variable-status/variable-status.js +1 -1
- package/lib/components/commons/use-document-add-event-listener.js +5 -2
- package/lib/components/dropdown/dropdown-writable/dropdown-writable.js +1 -1
- package/lib/components/dropdown/dropdown-writable/writable-option-renderer.js +4 -2
- package/lib/components/input-number/input-number.js +2 -1
- package/lib/components/loop/block-for-loop/block-for-loop.js +4 -2
- package/lib/components/loop/commons/row-component.js +1 -1
- package/lib/components/loop/roster-for-loop/body.js +4 -2
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +4 -3
- package/lib/components/modal-controls/close-or-skip.js +4 -3
- package/lib/components/modal-controls/modal-controls.js +1 -1
- package/lib/components/pairwise-links/orchestrator.js +6 -3
- package/lib/components/pairwise-links/row.js +1 -1
- package/lib/components/suggester/check-store.js +2 -2
- package/lib/components/suggester/idb-suggester.js +1 -1
- package/lib/components/suggester/searching/create-searching.js +1 -1
- package/lib/components/suggester/suggester.js +3 -3
- package/lib/components/suggester-loader-widget/loader-row.js +2 -2
- package/lib/components/suggester-loader-widget/loader.js +2 -2
- package/lib/components/suggester-loader-widget/widget.js +4 -2
- package/lib/components/table/lunatic-table.js +1 -1
- package/lib/i18n/build-dictionary.js +3 -1
- package/lib/i18n/dictionary.js +8 -0
- package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +1 -1
- package/lib/stories/filter-description/filter-description.stories.js +4 -1
- package/lib/stories/overview/data.json +1 -0
- package/lib/stories/overview/overview.stories.js +30 -0
- package/lib/stories/overview/source.json +28 -0
- package/lib/stories/overview/sourceWithHierarchy.json +6290 -0
- package/lib/stories/paste-questionnaire/test.stories.js +4 -1
- package/lib/stories/questionnaires/logement/data.json +6 -11
- package/lib/stories/questionnaires/logement/logement.stories.js +15 -5
- package/lib/stories/questionnaires/recensement/recensement.stories.js +4 -1
- package/lib/stories/questionnaires/rp/data.json +5 -0
- package/lib/stories/questionnaires/rp/rp.stories.js +36 -0
- package/lib/stories/questionnaires/rp/source.json +262 -0
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +4 -1
- package/lib/stories/questionnaires-test/controls/controls.stories.js +4 -1
- package/lib/stories/questionnaires-test/test.stories.js +4 -1
- package/lib/stories/roster-for-loop/roster-for-loop.stories.js +8 -1
- package/lib/stories/roster-for-loop/source-with-header.json +127 -0
- package/lib/stories/suggester/suggester-workers.stories.js +2 -2
- package/lib/stories/switch/switch.js +1 -1
- package/lib/stories/utils/default-arg-types.js +4 -1
- package/lib/stories/utils/orchestrator.js +12 -4
- package/lib/stories/utils/overview.js +50 -0
- package/lib/stories/utils/overview.scss +30 -0
- package/lib/use-lunatic/commons/calculated-variables.js +5 -2
- package/lib/use-lunatic/commons/check-loops.js +5 -2
- package/lib/use-lunatic/commons/create-map-pages.js +4 -1
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +17 -11
- package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +5 -2
- package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +5 -2
- package/lib/use-lunatic/commons/execute-expression/execute-expression.js +7 -3
- package/lib/use-lunatic/commons/execute-expression/get-safety-expression.js +3 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +5 -3
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js +4 -1
- package/lib/use-lunatic/commons/fill-components/fill-errors.js +4 -1
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +4 -1
- package/lib/use-lunatic/commons/fill-components/fill-management.js +4 -1
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +4 -1
- package/lib/use-lunatic/commons/fill-components/fill-pagination.js +4 -1
- package/lib/use-lunatic/commons/get-component-value/get-component-value.js +4 -2
- package/lib/use-lunatic/commons/get-components-from-state.js +7 -4
- package/lib/use-lunatic/commons/get-data.js +5 -2
- package/lib/use-lunatic/commons/get-errors-without-empty-value.js +1 -1
- package/lib/use-lunatic/commons/getOverview.js +50 -0
- package/lib/use-lunatic/commons/load-suggesters.js +2 -2
- package/lib/use-lunatic/commons/page-tag.js +7 -2
- package/lib/use-lunatic/commons/use-components-from-state.js +7 -2
- package/lib/use-lunatic/initial-state.js +1 -0
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js +1 -1
- package/lib/use-lunatic/reducer/overview/overview-on-change.js +42 -0
- package/lib/use-lunatic/reducer/overview/overview-on-init.js +98 -0
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +19 -12
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +4 -1
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +4 -1
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +5 -2
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +4 -1
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +5 -2
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +4 -1
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +5 -2
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.js +4 -1
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.js +4 -1
- package/lib/use-lunatic/reducer/reduce-on-init.js +19 -4
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +4 -1
- package/lib/use-lunatic/reducer/validate-controls/create-controls-reducer.js +4 -1
- package/lib/use-lunatic/reducer/validate-controls/create-modal-controls-reducer.js +4 -1
- package/lib/use-lunatic/use-lunatic.js +17 -9
- package/lib/use-lunatic/use-lunatic.spec.js +71 -0
- package/lib/utils/idb-tools/clear-store.js +1 -1
- package/lib/utils/idb-tools/idb-bulk-insert.js +4 -1
- package/lib/utils/store-tools/auto-load.js +2 -2
- package/lib/utils/store-tools/clear-store-data.js +1 -1
- package/lib/utils/store-tools/clear-store-info.js +1 -1
- package/lib/utils/store-tools/create/create.js +1 -1
- package/lib/utils/store-tools/use-store-index.js +2 -2
- package/lib/utils/suggester-workers/append-to-index/append.js +1 -1
- package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +5 -2
- package/lib/utils/suggester-workers/append-to-index/store-messages.js +4 -1
- package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +4 -1
- package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +5 -2
- package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +4 -1
- package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +4 -1
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +3 -1
- package/lib/utils/suggester-workers/find-best-label/find-best-label.js +5 -2
- package/lib/utils/suggester-workers/find-best-label/tokenize.js +1 -1
- package/lib/utils/suggester-workers/searching/compute-score.js +4 -1
- package/lib/utils/suggester-workers/searching/get-db.js +1 -1
- package/lib/utils/suggester-workers/searching/resolve-query-parser.js +1 -1
- package/lib/utils/suggester-workers/searching/searching.js +5 -3
- package/package.json +3 -2
|
@@ -9,9 +9,12 @@ var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
|
9
9
|
var _source = _interopRequireDefault(require("./source"));
|
|
10
10
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
12
13
|
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; }
|
|
13
14
|
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; }
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
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; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
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); }
|
|
15
18
|
var stories = {
|
|
16
19
|
title: 'Questionnaires-PasteYour/Paste',
|
|
17
20
|
component: _orchestrator["default"],
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"EXTERNAL": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"PREN_D1": "JEAN-MARC",
|
|
10
|
-
"PREN_D2": null,
|
|
11
|
-
"CODEPOST1": "75017",
|
|
12
|
-
"NOMVOUS_D1": "MIERLOT",
|
|
13
|
-
"NOMVOUS_D2": null
|
|
3
|
+
"COM": "SAINT_MARTIN_DU_PALU",
|
|
4
|
+
"CODE_COM": "000",
|
|
5
|
+
"CODE_DEP": "973",
|
|
6
|
+
"ILOT": null,
|
|
7
|
+
"RANG_L": null,
|
|
8
|
+
"RANG_A": null
|
|
14
9
|
},
|
|
15
10
|
"COLLECTED": {
|
|
16
11
|
"DAG": {
|
|
@@ -4,17 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.Sequence = exports.DefaultSum = exports.Default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _orchestrator = _interopRequireDefault(require("../../utils/orchestrator"));
|
|
9
|
-
var
|
|
10
|
-
var _sourceSum = _interopRequireDefault(require("./source-sum"));
|
|
11
|
-
var _sourceSequence = _interopRequireDefault(require("./source-sequence"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
9
|
var _data = _interopRequireDefault(require("./data"));
|
|
13
10
|
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
11
|
+
var _source = _interopRequireDefault(require("./source"));
|
|
12
|
+
var _sourceSequence = _interopRequireDefault(require("./source-sequence"));
|
|
13
|
+
var _sourceSum = _interopRequireDefault(require("./source-sum"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
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); }
|
|
15
16
|
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; }
|
|
16
17
|
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; }
|
|
17
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
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; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
+
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); }
|
|
18
21
|
var stories = {
|
|
19
22
|
title: 'Questionnaires/Logement',
|
|
20
23
|
component: _orchestrator["default"],
|
|
@@ -39,6 +42,13 @@ var stories = {
|
|
|
39
42
|
},
|
|
40
43
|
control: 'boolean',
|
|
41
44
|
defaultValue: false
|
|
45
|
+
},
|
|
46
|
+
showOverview: {
|
|
47
|
+
table: {
|
|
48
|
+
disable: false
|
|
49
|
+
},
|
|
50
|
+
control: 'boolean',
|
|
51
|
+
defaultValue: false
|
|
42
52
|
}
|
|
43
53
|
})
|
|
44
54
|
};
|
|
@@ -10,9 +10,12 @@ var _source = _interopRequireDefault(require("./source"));
|
|
|
10
10
|
var _data = _interopRequireDefault(require("./data"));
|
|
11
11
|
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
12
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); }
|
|
13
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; }
|
|
14
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; }
|
|
15
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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); }
|
|
16
19
|
var stories = {
|
|
17
20
|
title: 'Questionnaires/Recensement',
|
|
18
21
|
component: _orchestrator["default"],
|
|
@@ -0,0 +1,36 @@
|
|
|
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 _data = _interopRequireDefault(require("./data"));
|
|
10
|
+
var _source = _interopRequireDefault(require("./source"));
|
|
11
|
+
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
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/RP',
|
|
21
|
+
component: _orchestrator["default"],
|
|
22
|
+
argTypes: _objectSpread({}, _defaultArgTypes["default"])
|
|
23
|
+
};
|
|
24
|
+
var _default = stories;
|
|
25
|
+
exports["default"] = _default;
|
|
26
|
+
var Template = function Template(args) {
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_orchestrator["default"], args);
|
|
28
|
+
};
|
|
29
|
+
var Default = Template.bind({});
|
|
30
|
+
exports.Default = Default;
|
|
31
|
+
Default.args = {
|
|
32
|
+
id: 'rp-default',
|
|
33
|
+
source: _source["default"],
|
|
34
|
+
data: _data["default"],
|
|
35
|
+
pagination: true
|
|
36
|
+
};
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "kqhlz2",
|
|
3
|
+
"modele": "m1",
|
|
4
|
+
"enoCoreVersion": "nop",
|
|
5
|
+
"lunaticModelVersion": "2.2.13",
|
|
6
|
+
"generatingDate": "07-07-2022 10:10:17",
|
|
7
|
+
"missing": false,
|
|
8
|
+
"pagination": "question",
|
|
9
|
+
"maxPage": "2",
|
|
10
|
+
"label": { "value": "RP", "type": "VTL|MD" },
|
|
11
|
+
"components": [
|
|
12
|
+
{
|
|
13
|
+
"id": "kb9hi4j0",
|
|
14
|
+
"componentType": "Sequence",
|
|
15
|
+
"page": "1",
|
|
16
|
+
"label": { "value": "\"Identification du logement\"", "type": "VTL|MD" },
|
|
17
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
18
|
+
"declarations": [
|
|
19
|
+
{
|
|
20
|
+
"id": "kb9hi4j0-krnoclfe",
|
|
21
|
+
"declarationType": "HELP",
|
|
22
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
23
|
+
"label": {
|
|
24
|
+
"value": "\"Veuillez recopier ici les informations qui figurent dans le cadre rempli par l'agent recenseur. Ce cadre est situé dans la partie gauche de la notice.\"",
|
|
25
|
+
"type": "VTL|MD"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "com",
|
|
32
|
+
"componentType": "Input",
|
|
33
|
+
"mandatory": false,
|
|
34
|
+
"page": "1",
|
|
35
|
+
"maxLength": 60,
|
|
36
|
+
"label": {
|
|
37
|
+
"value": "\"Commune\"",
|
|
38
|
+
"type": "VTL|MD"
|
|
39
|
+
},
|
|
40
|
+
"conditionFilter": {
|
|
41
|
+
"value": "true",
|
|
42
|
+
"type": "VTL"
|
|
43
|
+
},
|
|
44
|
+
"response": { "name": "COM_COLL" }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "code_dep",
|
|
48
|
+
"componentType": "Input",
|
|
49
|
+
"mandatory": false,
|
|
50
|
+
"page": "1",
|
|
51
|
+
"maxLength": 3,
|
|
52
|
+
"label": {
|
|
53
|
+
"value": "\"Code de votre département\"",
|
|
54
|
+
"type": "VTL|MD"
|
|
55
|
+
},
|
|
56
|
+
"conditionFilter": {
|
|
57
|
+
"value": "true",
|
|
58
|
+
"type": "VTL"
|
|
59
|
+
},
|
|
60
|
+
"response": { "name": "CODE_DEP_COLL" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "code_com",
|
|
64
|
+
"componentType": "Input",
|
|
65
|
+
"mandatory": false,
|
|
66
|
+
"page": "1",
|
|
67
|
+
"maxLength": 3,
|
|
68
|
+
"label": {
|
|
69
|
+
"value": "\"Code de votre commune\"",
|
|
70
|
+
"type": "VTL|MD"
|
|
71
|
+
},
|
|
72
|
+
"conditionFilter": {
|
|
73
|
+
"value": "true",
|
|
74
|
+
"type": "VTL"
|
|
75
|
+
},
|
|
76
|
+
"response": { "name": "CODE_COM_COLL" }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "iris",
|
|
80
|
+
"componentType": "Input",
|
|
81
|
+
"mandatory": false,
|
|
82
|
+
"page": "1",
|
|
83
|
+
"maxLength": 3,
|
|
84
|
+
"label": {
|
|
85
|
+
"value": "\"Iris\"",
|
|
86
|
+
"type": "VTL|MD"
|
|
87
|
+
},
|
|
88
|
+
"conditionFilter": {
|
|
89
|
+
"value": "true",
|
|
90
|
+
"type": "VTL"
|
|
91
|
+
},
|
|
92
|
+
"response": { "name": "IRIS_COLL" }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "rang-a",
|
|
96
|
+
"componentType": "Input",
|
|
97
|
+
"mandatory": false,
|
|
98
|
+
"page": "1",
|
|
99
|
+
"maxLength": 3,
|
|
100
|
+
"label": {
|
|
101
|
+
"value": "\"Rang A\"",
|
|
102
|
+
"type": "VTL|MD"
|
|
103
|
+
},
|
|
104
|
+
"conditionFilter": {
|
|
105
|
+
"value": "true",
|
|
106
|
+
"type": "VTL"
|
|
107
|
+
},
|
|
108
|
+
"response": { "name": "RANG_A_COLL" }
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "rang-l",
|
|
112
|
+
"componentType": "Input",
|
|
113
|
+
"mandatory": false,
|
|
114
|
+
"page": "1",
|
|
115
|
+
"maxLength": 3,
|
|
116
|
+
"label": {
|
|
117
|
+
"value": "\"Rang L\"",
|
|
118
|
+
"type": "VTL|MD"
|
|
119
|
+
},
|
|
120
|
+
"conditionFilter": {
|
|
121
|
+
"value": "true",
|
|
122
|
+
"type": "VTL"
|
|
123
|
+
},
|
|
124
|
+
"response": { "name": "RANG_L_COLL" }
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "kb9hi4j0",
|
|
128
|
+
"componentType": "Sequence",
|
|
129
|
+
"page": "2",
|
|
130
|
+
"label": { "value": "\"Type de construction\"", "type": "VTL|MD" },
|
|
131
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
132
|
+
"declarations": []
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "log-indic-coll",
|
|
136
|
+
"componentType": "Radio",
|
|
137
|
+
"mandatory": false,
|
|
138
|
+
"page": "2",
|
|
139
|
+
"label": {
|
|
140
|
+
"value": "\"Votre batiment d'habitation ne comprend qu'un seul logement ?\"",
|
|
141
|
+
"type": "VTL|MD"
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
145
|
+
"options": [
|
|
146
|
+
{ "value": "1", "label": { "value": "\"oui\"", "type": "VTL|MD" } },
|
|
147
|
+
|
|
148
|
+
{ "value": "0", "label": { "value": "\"non\"", "type": "VTL|MD" } }
|
|
149
|
+
],
|
|
150
|
+
"response": { "name": "LOG_INDIV_COLL" }
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "log-isole-coll",
|
|
154
|
+
"componentType": "Radio",
|
|
155
|
+
"mandatory": false,
|
|
156
|
+
"page": "2",
|
|
157
|
+
"label": {
|
|
158
|
+
"value": "\"Votre logement possède au moins un mur mitoyen avec un autre batiment ?\"",
|
|
159
|
+
"type": "VTL|MD"
|
|
160
|
+
},
|
|
161
|
+
"conditionFilter": {
|
|
162
|
+
"value": "(LOG_INDIV_COLL = \"1\")",
|
|
163
|
+
"type": "VTL"
|
|
164
|
+
},
|
|
165
|
+
"options": [
|
|
166
|
+
{ "value": "1", "label": { "value": "\"oui\"", "type": "VTL|MD" } },
|
|
167
|
+
{ "value": "0", "label": { "value": "\"non\"", "type": "VTL|MD" } }
|
|
168
|
+
],
|
|
169
|
+
"response": { "name": "LOG_ISOLE_COLL" }
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"variables": [
|
|
173
|
+
{
|
|
174
|
+
"variableType": "COLLECTED",
|
|
175
|
+
"name": "COM_COLL",
|
|
176
|
+
"values": {
|
|
177
|
+
"PREVIOUS": null,
|
|
178
|
+
"COLLECTED": "SAINT_MARTIN_LE_TROU",
|
|
179
|
+
"FORCED": null,
|
|
180
|
+
"EDITED": null,
|
|
181
|
+
"INPUTED": null
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"variableType": "COLLECTED",
|
|
186
|
+
"name": "CODE_COM_COLL",
|
|
187
|
+
"values": {
|
|
188
|
+
"PREVIOUS": null,
|
|
189
|
+
"COLLECTED": "000",
|
|
190
|
+
"FORCED": null,
|
|
191
|
+
"EDITED": null,
|
|
192
|
+
"INPUTED": null
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"variableType": "COLLECTED",
|
|
197
|
+
"name": "CODE_DEP_COLL",
|
|
198
|
+
"values": {
|
|
199
|
+
"PREVIOUS": null,
|
|
200
|
+
"COLLECTED": "97",
|
|
201
|
+
"FORCED": null,
|
|
202
|
+
"EDITED": null,
|
|
203
|
+
"INPUTED": null
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"variableType": "COLLECTED",
|
|
208
|
+
"name": "ILOT_COLL",
|
|
209
|
+
"values": {
|
|
210
|
+
"PREVIOUS": null,
|
|
211
|
+
"COLLECTED": null,
|
|
212
|
+
"FORCED": null,
|
|
213
|
+
"EDITED": null,
|
|
214
|
+
"INPUTED": null
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"variableType": "COLLECTED",
|
|
219
|
+
"name": "RANG_A_COLL",
|
|
220
|
+
"values": {
|
|
221
|
+
"PREVIOUS": null,
|
|
222
|
+
"COLLECTED": null,
|
|
223
|
+
"FORCED": null,
|
|
224
|
+
"EDITED": null,
|
|
225
|
+
"INPUTED": null
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"variableType": "COLLECTED",
|
|
230
|
+
"name": "RANG_L_COLL",
|
|
231
|
+
"values": {
|
|
232
|
+
"PREVIOUS": null,
|
|
233
|
+
"COLLECTED": null,
|
|
234
|
+
"FORCED": null,
|
|
235
|
+
"EDITED": null,
|
|
236
|
+
"INPUTED": null
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"variableType": "COLLECTED",
|
|
241
|
+
"name": "LOG_INDIV_COLL",
|
|
242
|
+
"values": {
|
|
243
|
+
"PREVIOUS": null,
|
|
244
|
+
"COLLECTED": null,
|
|
245
|
+
"FORCED": null,
|
|
246
|
+
"EDITED": null,
|
|
247
|
+
"INPUTED": null
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"variableType": "COLLECTED",
|
|
252
|
+
"name": "LOG_ISOLE_COLL",
|
|
253
|
+
"values": {
|
|
254
|
+
"PREVIOUS": null,
|
|
255
|
+
"COLLECTED": null,
|
|
256
|
+
"FORCED": null,
|
|
257
|
+
"EDITED": null,
|
|
258
|
+
"INPUTED": null
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
}
|
|
@@ -9,9 +9,12 @@ var _orchestrator = _interopRequireDefault(require("../../utils/orchestrator"));
|
|
|
9
9
|
var _source = _interopRequireDefault(require("./source"));
|
|
10
10
|
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
12
13
|
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; }
|
|
13
14
|
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; }
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
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; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
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); }
|
|
15
18
|
var stories = {
|
|
16
19
|
title: 'Questionnaires/Simpsons',
|
|
17
20
|
component: _orchestrator["default"],
|
|
@@ -13,9 +13,12 @@ var _V2_Controles_BouclesLiees2_PasPageFin = _interopRequireDefault(require("./V
|
|
|
13
13
|
var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
|
|
14
14
|
var _bouclesN = _interopRequireDefault(require("./boucles-n"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
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); }
|
|
16
17
|
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; }
|
|
17
18
|
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; }
|
|
18
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
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; }
|
|
20
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
+
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
22
|
var stories = {
|
|
20
23
|
title: 'Questionnaires-Tests/Controls',
|
|
21
24
|
component: _orchestrator["default"],
|
|
@@ -13,9 +13,12 @@ var _V2_TCMRallyeGames = _interopRequireDefault(require("./V2_TCMRallyeGames"));
|
|
|
13
13
|
var _V2_DeclarationsSimples = _interopRequireDefault(require("./V2_DeclarationsSimples"));
|
|
14
14
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
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); }
|
|
16
17
|
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; }
|
|
17
18
|
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; }
|
|
18
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
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; }
|
|
20
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
+
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
22
|
var stories = {
|
|
20
23
|
title: 'Questionnaires - Tests/Others',
|
|
21
24
|
component: _orchestrator["default"],
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.Default = void 0;
|
|
6
|
+
exports["default"] = exports.WithHeader = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
9
|
var _source = _interopRequireDefault(require("./source"));
|
|
10
|
+
var _sourceWithHeader = _interopRequireDefault(require("./source-with-header.json"));
|
|
10
11
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
11
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
13
|
var stories = {
|
|
@@ -24,4 +25,10 @@ exports.Default = Default;
|
|
|
24
25
|
Default.args = {
|
|
25
26
|
id: 'roster-for-loop',
|
|
26
27
|
source: _source["default"]
|
|
28
|
+
};
|
|
29
|
+
var WithHeader = Template.bind({});
|
|
30
|
+
exports.WithHeader = WithHeader;
|
|
31
|
+
WithHeader.args = {
|
|
32
|
+
id: 'roster-for-loop-headers',
|
|
33
|
+
source: _sourceWithHeader["default"]
|
|
27
34
|
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxPage": "3",
|
|
3
|
+
"components": [
|
|
4
|
+
{
|
|
5
|
+
"id": "seq",
|
|
6
|
+
"componentType": "Sequence",
|
|
7
|
+
"label": {
|
|
8
|
+
"value": "\"Description des individus de votre logement\"",
|
|
9
|
+
"type": "VTL|MD"
|
|
10
|
+
},
|
|
11
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
12
|
+
"page": "1"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "loop-prenom",
|
|
16
|
+
"componentType": "RosterForLoop",
|
|
17
|
+
"headers": [
|
|
18
|
+
{ "headerCell": true, "label": "Prénom" },
|
|
19
|
+
{ "headerCell": true, "label": "Age" }
|
|
20
|
+
],
|
|
21
|
+
"label": { "value": "\"Ajouter un individu\"", "type": "VTL|MD" },
|
|
22
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
23
|
+
"bindingDependencies": ["PRENOM", "AGE"],
|
|
24
|
+
"lines": {
|
|
25
|
+
"min": { "value": 1, "type": "VTL" },
|
|
26
|
+
"max": { "value": 10, "type": "VTL" }
|
|
27
|
+
},
|
|
28
|
+
"page": "1",
|
|
29
|
+
"components": [
|
|
30
|
+
{
|
|
31
|
+
"componentType": "Input",
|
|
32
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
33
|
+
"maxLength": 30,
|
|
34
|
+
"bindingDependencies": ["PRENOM"],
|
|
35
|
+
"id": "prenom",
|
|
36
|
+
"response": {
|
|
37
|
+
"name": "PRENOM"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"componentType": "Input",
|
|
42
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
43
|
+
"maxLength": 30,
|
|
44
|
+
"bindingDependencies": ["AGE"],
|
|
45
|
+
"id": "age",
|
|
46
|
+
"response": {
|
|
47
|
+
"name": "AGE"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "loop",
|
|
54
|
+
"componentType": "Loop",
|
|
55
|
+
|
|
56
|
+
"loopDependencies": ["PRENOM"],
|
|
57
|
+
"iterations": { "value": "count(PRENOM)", "type": "VTL" },
|
|
58
|
+
"page": "2",
|
|
59
|
+
"maxPage": "1",
|
|
60
|
+
"depth": 1,
|
|
61
|
+
"paginatedLoop": true,
|
|
62
|
+
"conditionFilter": {
|
|
63
|
+
"value": "true",
|
|
64
|
+
"type": "VTL"
|
|
65
|
+
},
|
|
66
|
+
"components": [
|
|
67
|
+
{
|
|
68
|
+
"id": "age",
|
|
69
|
+
"label": {
|
|
70
|
+
"value": "PRENOM || \", quel est vôtre âge ?\"",
|
|
71
|
+
"type": "VTL"
|
|
72
|
+
},
|
|
73
|
+
"conditionFilter": {
|
|
74
|
+
"value": "true",
|
|
75
|
+
"type": "VTL"
|
|
76
|
+
},
|
|
77
|
+
"page": "2.1",
|
|
78
|
+
"componentType": "InputNumber",
|
|
79
|
+
"min": 0,
|
|
80
|
+
"max": 120,
|
|
81
|
+
"decimals": 0,
|
|
82
|
+
"response": { "name": "AGE" }
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "seq-end",
|
|
88
|
+
"componentType": "Sequence",
|
|
89
|
+
"label": {
|
|
90
|
+
"value": "\"End\"",
|
|
91
|
+
"type": "VTL|MD"
|
|
92
|
+
},
|
|
93
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
94
|
+
"page": "3"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"resizing": {
|
|
98
|
+
"PRENOM": {
|
|
99
|
+
"size": "count(PRENOM)",
|
|
100
|
+
"variables": ["AGE"]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"variables": [
|
|
104
|
+
{
|
|
105
|
+
"variableType": "COLLECTED",
|
|
106
|
+
"name": "PRENOM",
|
|
107
|
+
"values": {
|
|
108
|
+
"PREVIOUS": [null],
|
|
109
|
+
"COLLECTED": [null],
|
|
110
|
+
"FORCED": [null],
|
|
111
|
+
"EDITED": [null],
|
|
112
|
+
"INPUTED": [null]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"variableType": "COLLECTED",
|
|
117
|
+
"name": "AGE",
|
|
118
|
+
"values": {
|
|
119
|
+
"PREVIOUS": [null],
|
|
120
|
+
"COLLECTED": [null],
|
|
121
|
+
"FORCED": [null],
|
|
122
|
+
"EDITED": [null],
|
|
123
|
+
"INPUTED": [null]
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|