@inseefr/lunatic 0.3.6-experimental → 0.3.9-experimental

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inseefr/lunatic",
3
- "version": "0.3.6-experimental",
4
- "workersVersion": "0.2.1-experimental",
3
+ "version": "0.3.9-experimental",
4
+ "workersVersion": "0.2.4-experimental",
5
5
  "description": "Library of questionnaire components",
6
6
  "repository": {
7
7
  "type": "git",
@@ -51,6 +51,7 @@
51
51
  ],
52
52
  "dependencies": {
53
53
  "@inseefr/trevas": "^0.1.14",
54
+ "array-flat-polyfill": "^1.0.1",
54
55
  "date-fns": "^2.25.0",
55
56
  "lodash.camelcase": "^4.3.0",
56
57
  "lodash.debounce": "^4.0.8",
@@ -1,3 +1,5 @@
1
- export * from './components';
2
- export { default as Table } from './table';
3
- export * from '../utils/to-expose';
1
+ import 'array-flat-polyfill';
2
+
3
+ export * from './components';
4
+ export { default as Table } from './table';
5
+ export * from '../utils/to-expose';
@@ -59,10 +59,8 @@ function CheckStore({ storeName, version, setStore, children }) {
59
59
  }
60
60
  return (
61
61
  <div className="lunatic-suggester-unvailable">
62
- Le store {storeName} n'est pas disponible.
63
- <button disabled={disabled} onClick={() => setRefresh(true)}>
64
- Refresh
65
- </button>
62
+ La suggestion sur liste n'est pas possible sur votre navigateur, vous
63
+ pouvez passer la question en appuyant sur Enregistrer et Continuer
66
64
  </div>
67
65
  );
68
66
  }
@@ -1,28 +1,28 @@
1
- import { actions } from '../state-management';
2
- import { BINDED_KEYS } from '../commons-tools';
3
-
4
- function create(dispatch) {
5
- return function (e) {
6
- const { key } = e;
7
- switch (key) {
8
- case BINDED_KEYS.Tab:
9
- e.stopPropagation();
10
- // e.preventDefault();
11
- dispatch(actions.onKeyDown(key));
12
- break;
13
- case BINDED_KEYS.ArrowDown:
14
- case BINDED_KEYS.ArrowUp:
15
- case BINDED_KEYS.Home:
16
- case BINDED_KEYS.End:
17
- case BINDED_KEYS.Enter:
18
- case BINDED_KEYS.Escape:
19
- e.preventDefault();
20
- e.stopPropagation();
21
- dispatch(actions.onKeyDown(key));
22
- break;
23
- default:
24
- }
25
- };
26
- }
27
-
28
- export default create;
1
+ import { actions } from '../state-management';
2
+ import { BINDED_KEYS } from '../commons-tools';
3
+
4
+ function create(dispatch) {
5
+ return function (e) {
6
+ const { key } = e;
7
+ switch (key) {
8
+ case BINDED_KEYS.Tab:
9
+ e.stopPropagation();
10
+ // e.preventDefault();
11
+ dispatch(actions.onKeyDown(key));
12
+ break;
13
+ case BINDED_KEYS.ArrowDown:
14
+ case BINDED_KEYS.ArrowUp:
15
+ case BINDED_KEYS.Home:
16
+ case BINDED_KEYS.End:
17
+ case BINDED_KEYS.Enter:
18
+ case BINDED_KEYS.Escape:
19
+ e.preventDefault();
20
+ e.stopPropagation();
21
+ dispatch(actions.onKeyDown(key));
22
+ break;
23
+ default:
24
+ }
25
+ };
26
+ }
27
+
28
+ export default create;
@@ -1,102 +1,102 @@
1
- {
2
- "components": [
3
- {
4
- "id": "gg",
5
- "componentType": "CheckboxGroup",
6
- "label": "➡ 1. What are the pet names that the Simpsons family had?",
7
- "missingResponse": { "name": "PET_MISSING" },
8
- "responses": [
9
- {
10
- "id": "j334akov-QOP-jbgd8qmn",
11
- "label": "Santa's Little Helper",
12
- "response": {
13
- "name": "PET1"
14
- }
15
- },
16
- {
17
- "id": "j334akov-QOP-jbgd60vl",
18
- "label": "Snowball I",
19
- "response": {
20
- "name": "PET2"
21
- }
22
- },
23
- {
24
- "id": "j334akov-QOP-jbgda2jo",
25
- "label": "Coltrane",
26
- "response": {
27
- "name": "PET3"
28
- }
29
- },
30
- {
31
- "id": "j334akov-QOP-jbgdfssy",
32
- "label": "NAME || \" the Helper Monkey\"",
33
- "response": {
34
- "name": "PET4"
35
- }
36
- }
37
- ]
38
- }
39
- ],
40
- "variables": [
41
- {
42
- "variableType": "COLLECTED",
43
- "name": "PET1",
44
- "componentRef": "gg",
45
- "values": {
46
- "PREVIOUS": null,
47
- "COLLECTED": true,
48
- "FORCED": false,
49
- "EDITED": null,
50
- "INPUTED": null
51
- }
52
- },
53
- {
54
- "variableType": "COLLECTED",
55
- "name": "PET2",
56
- "componentRef": "gg",
57
- "values": {
58
- "PREVIOUS": null,
59
- "COLLECTED": true,
60
- "FORCED": null,
61
- "EDITED": null,
62
- "INPUTED": null
63
- }
64
- },
65
- {
66
- "variableType": "COLLECTED",
67
- "name": "PET3",
68
- "componentRef": "gg",
69
- "values": {
70
- "PREVIOUS": null,
71
- "COLLECTED": null,
72
- "FORCED": null,
73
- "EDITED": null,
74
- "INPUTED": null
75
- }
76
- },
77
- {
78
- "variableType": "COLLECTED",
79
- "name": "PET4",
80
- "componentRef": "gg",
81
- "values": {
82
- "PREVIOUS": null,
83
- "COLLECTED": null,
84
- "FORCED": null,
85
- "EDITED": null,
86
- "INPUTED": null
87
- }
88
- },
89
- {
90
- "variableType": "COLLECTED",
91
- "name": "PET_MISSING",
92
- "componentRef": "gg",
93
- "values": {
94
- "PREVIOUS": null,
95
- "COLLECTED": null,
96
- "FORCED": null,
97
- "EDITED": null,
98
- "INPUTED": null
99
- }
100
- }
101
- ]
102
- }
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "gg",
5
+ "componentType": "CheckboxGroup",
6
+ "label": "➡ 1. What are the pet names that the Simpsons family had?",
7
+ "missingResponse": { "name": "PET_MISSING" },
8
+ "responses": [
9
+ {
10
+ "id": "j334akov-QOP-jbgd8qmn",
11
+ "label": "Santa's Little Helper",
12
+ "response": {
13
+ "name": "PET1"
14
+ }
15
+ },
16
+ {
17
+ "id": "j334akov-QOP-jbgd60vl",
18
+ "label": "Snowball I",
19
+ "response": {
20
+ "name": "PET2"
21
+ }
22
+ },
23
+ {
24
+ "id": "j334akov-QOP-jbgda2jo",
25
+ "label": "Coltrane",
26
+ "response": {
27
+ "name": "PET3"
28
+ }
29
+ },
30
+ {
31
+ "id": "j334akov-QOP-jbgdfssy",
32
+ "label": "NAME || \" the Helper Monkey\"",
33
+ "response": {
34
+ "name": "PET4"
35
+ }
36
+ }
37
+ ]
38
+ }
39
+ ],
40
+ "variables": [
41
+ {
42
+ "variableType": "COLLECTED",
43
+ "name": "PET1",
44
+ "componentRef": "gg",
45
+ "values": {
46
+ "PREVIOUS": null,
47
+ "COLLECTED": true,
48
+ "FORCED": false,
49
+ "EDITED": null,
50
+ "INPUTED": null
51
+ }
52
+ },
53
+ {
54
+ "variableType": "COLLECTED",
55
+ "name": "PET2",
56
+ "componentRef": "gg",
57
+ "values": {
58
+ "PREVIOUS": null,
59
+ "COLLECTED": true,
60
+ "FORCED": null,
61
+ "EDITED": null,
62
+ "INPUTED": null
63
+ }
64
+ },
65
+ {
66
+ "variableType": "COLLECTED",
67
+ "name": "PET3",
68
+ "componentRef": "gg",
69
+ "values": {
70
+ "PREVIOUS": null,
71
+ "COLLECTED": null,
72
+ "FORCED": null,
73
+ "EDITED": null,
74
+ "INPUTED": null
75
+ }
76
+ },
77
+ {
78
+ "variableType": "COLLECTED",
79
+ "name": "PET4",
80
+ "componentRef": "gg",
81
+ "values": {
82
+ "PREVIOUS": null,
83
+ "COLLECTED": null,
84
+ "FORCED": null,
85
+ "EDITED": null,
86
+ "INPUTED": null
87
+ }
88
+ },
89
+ {
90
+ "variableType": "COLLECTED",
91
+ "name": "PET_MISSING",
92
+ "componentRef": "gg",
93
+ "values": {
94
+ "PREVIOUS": null,
95
+ "COLLECTED": null,
96
+ "FORCED": null,
97
+ "EDITED": null,
98
+ "INPUTED": null
99
+ }
100
+ }
101
+ ]
102
+ }