@legalplace/prerenderx 2.2.0 → 2.2.1
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.
|
@@ -43,7 +43,19 @@ var IntputsInitiator = (function () {
|
|
|
43
43
|
var values = [false];
|
|
44
44
|
if (this.ovc &&
|
|
45
45
|
Object.prototype.hasOwnProperty.call(this.ovc.options, optionId)) {
|
|
46
|
-
|
|
46
|
+
if ([
|
|
47
|
+
"static",
|
|
48
|
+
"hidden",
|
|
49
|
+
"brut-text",
|
|
50
|
+
"repeated",
|
|
51
|
+
"box",
|
|
52
|
+
"separator"
|
|
53
|
+
].includes(option.meta.type)) {
|
|
54
|
+
values = new Array(this.ovc.options[optionId].length).fill(true);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
values = this.ovc.options[optionId];
|
|
58
|
+
}
|
|
47
59
|
}
|
|
48
60
|
else if ([
|
|
49
61
|
"static",
|
|
@@ -16,8 +16,12 @@ var OvcConverter = (function () {
|
|
|
16
16
|
if (Array.isArray(currentOption)) {
|
|
17
17
|
var occurences_1 = currentOption.length;
|
|
18
18
|
currentOption.forEach(function (childId, index) {
|
|
19
|
-
if (typeof childId === "string" && childId.trim().length === 0)
|
|
19
|
+
if (typeof childId === "string" && childId.trim().length === 0) {
|
|
20
|
+
if (!Object.prototype.hasOwnProperty.call(inputs.options, childId)) {
|
|
21
|
+
inputs.options[id] = new Array(occurences_1).fill(false);
|
|
22
|
+
}
|
|
20
23
|
return;
|
|
24
|
+
}
|
|
21
25
|
if (!Object.prototype.hasOwnProperty.call(inputs.options, childId)) {
|
|
22
26
|
inputs.options[childId] = new Array(occurences_1).fill(false);
|
|
23
27
|
}
|
package/package.json
CHANGED
|
@@ -83,7 +83,20 @@ class IntputsInitiator {
|
|
|
83
83
|
this.ovc &&
|
|
84
84
|
Object.prototype.hasOwnProperty.call(this.ovc.options, optionId)
|
|
85
85
|
) {
|
|
86
|
-
|
|
86
|
+
if (
|
|
87
|
+
[
|
|
88
|
+
"static",
|
|
89
|
+
"hidden",
|
|
90
|
+
"brut-text",
|
|
91
|
+
"repeated",
|
|
92
|
+
"box",
|
|
93
|
+
"separator"
|
|
94
|
+
].includes(option.meta.type)
|
|
95
|
+
) {
|
|
96
|
+
values = new Array(this.ovc.options[optionId].length).fill(true);
|
|
97
|
+
} else {
|
|
98
|
+
values = this.ovc.options[optionId];
|
|
99
|
+
}
|
|
87
100
|
} else if (
|
|
88
101
|
[
|
|
89
102
|
"static",
|
package/src/libs/OvcConverter.ts
CHANGED
|
@@ -30,8 +30,15 @@ class OvcConverter {
|
|
|
30
30
|
if (Array.isArray(currentOption)) {
|
|
31
31
|
const occurences = currentOption.length;
|
|
32
32
|
currentOption.forEach((childId, index) => {
|
|
33
|
-
if (typeof childId === "string" && childId.trim().length === 0)
|
|
33
|
+
if (typeof childId === "string" && childId.trim().length === 0) {
|
|
34
|
+
// Creating input if it doesn't exist
|
|
35
|
+
if (
|
|
36
|
+
!Object.prototype.hasOwnProperty.call(inputs.options, childId)
|
|
37
|
+
) {
|
|
38
|
+
inputs.options[id] = new Array(occurences).fill(false);
|
|
39
|
+
}
|
|
34
40
|
return;
|
|
41
|
+
}
|
|
35
42
|
|
|
36
43
|
// Creating input if it doesn't exist
|
|
37
44
|
if (
|