@legalplace/wizardx-core 4.42.15 → 4.43.0
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.
|
@@ -37,7 +37,8 @@ export class IntputsInitiator {
|
|
|
37
37
|
for (let i = 0; i < optionsIds.length; i += 1) {
|
|
38
38
|
const optionId = optionsIds[i];
|
|
39
39
|
const option = this.references.options[optionId];
|
|
40
|
-
|
|
40
|
+
const defaultValue = !!option.meta.prechecked;
|
|
41
|
+
let values = [defaultValue];
|
|
41
42
|
if (this.ovc &&
|
|
42
43
|
Object.prototype.hasOwnProperty.call(this.ovc.options, optionId)) {
|
|
43
44
|
if ([
|
|
@@ -59,10 +60,10 @@ export class IntputsInitiator {
|
|
|
59
60
|
const rootOptionInput = this.ovc.options[rootOptionId];
|
|
60
61
|
const { length } = !rootOptionInput && rootOptionReference.meta.type === "static"
|
|
61
62
|
? [true]
|
|
62
|
-
: rootOptionInput !== null && rootOptionInput !== void 0 ? rootOptionInput : [
|
|
63
|
+
: rootOptionInput !== null && rootOptionInput !== void 0 ? rootOptionInput : [defaultValue];
|
|
63
64
|
values = new Array(length)
|
|
64
|
-
.fill(
|
|
65
|
-
.map((_, index) => { var _a, _b; return ((_b = (_a = this.ovc) === null || _a === void 0 ? void 0 : _a.options[optionId]) === null || _b === void 0 ? void 0 : _b[index])
|
|
65
|
+
.fill(defaultValue)
|
|
66
|
+
.map((_, index) => { var _a, _b, _c; return (_c = (_b = (_a = this.ovc) === null || _a === void 0 ? void 0 : _a.options[optionId]) === null || _b === void 0 ? void 0 : _b[index]) !== null && _c !== void 0 ? _c : defaultValue; });
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
else if ([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.43.0",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@legalplace/lplogic": "2.3.1",
|
|
27
27
|
"@legalplace/model-healthcheck": "^1.1.5",
|
|
28
28
|
"@legalplace/pappers": "^1.2.4",
|
|
29
|
-
"@legalplace/referencesparser": "^3.1.
|
|
29
|
+
"@legalplace/referencesparser": "^3.1.82",
|
|
30
30
|
"@legalplace/storybook": "2.364.5",
|
|
31
|
-
"@legalplace/typeorm-constants": "^3.77.
|
|
31
|
+
"@legalplace/typeorm-constants": "^3.77.2",
|
|
32
32
|
"@loadable/component": "^5.15.0",
|
|
33
33
|
"@redux-saga/core": "^1.1.3",
|
|
34
34
|
"axios": "^0.24.0",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@legalplace/data-gouv": "^1.6.30",
|
|
62
62
|
"@legalplace/eslint-config": "^2.3.0",
|
|
63
|
-
"@legalplace/models-v3-types": "^5.
|
|
63
|
+
"@legalplace/models-v3-types": "^5.15.0",
|
|
64
64
|
"@legalplace/prettier-config": "^2.1.3",
|
|
65
|
-
"@legalplace/typeorm-entities": "^5.67.
|
|
65
|
+
"@legalplace/typeorm-entities": "^5.67.4",
|
|
66
66
|
"@swc-node/jest": "^1.3.2",
|
|
67
67
|
"@swc/core": "^1.2.93",
|
|
68
68
|
"@swc/jest": "^0.2.4",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"*.test.ts",
|
|
101
101
|
"*.test.tsx"
|
|
102
102
|
],
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "d2d0d8360797b61c9dc6f9c2c041eff334b91190"
|
|
104
104
|
}
|