@openeuropa/bcl-data-form 0.5.0 → 0.9.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.
- package/data-disabled.js +5 -1
- package/data-grid.js +10 -8
- package/data-horizontal.js +3 -0
- package/data-inline.js +5 -7
- package/data.js +16 -4
- package/package.json +2 -2
package/data-disabled.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
const drupalAttribute = require("drupal-attribute");
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
4
|
+
attributes: new drupalAttribute()
|
|
5
|
+
.setAttribute("novalidate", true)
|
|
6
|
+
.setAttribute("onsubmit", "return false;"),
|
|
2
7
|
submit: {
|
|
3
8
|
label: "Submit",
|
|
4
9
|
type: "submit",
|
|
@@ -24,7 +29,6 @@ module.exports = {
|
|
|
24
29
|
wrapper_classes: "mb-3",
|
|
25
30
|
type: "select",
|
|
26
31
|
id: "disabledSelect",
|
|
27
|
-
size: "md",
|
|
28
32
|
helper_text: "Helper text for the select element",
|
|
29
33
|
helper_text_id: "helperText",
|
|
30
34
|
options: [
|
package/data-grid.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
const drupalAttribute = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
attributes: new drupalAttribute()
|
|
4
|
+
attributes: new drupalAttribute()
|
|
5
|
+
.addClass(["row", "g-3"])
|
|
6
|
+
.setAttribute("novalidate", true)
|
|
7
|
+
.setAttribute("onsubmit", "return false;"),
|
|
5
8
|
submit: {
|
|
6
9
|
wrapper: "col-12",
|
|
7
10
|
label: "Submit",
|
|
@@ -14,7 +17,7 @@ module.exports = {
|
|
|
14
17
|
wrapper_classes: "col-md-6",
|
|
15
18
|
input_type: "email",
|
|
16
19
|
required: true,
|
|
17
|
-
label: "Email address",
|
|
20
|
+
label: "Email address *",
|
|
18
21
|
id: "exampleInputEmail1",
|
|
19
22
|
helper_text: "We'll never share your email with anyone else.",
|
|
20
23
|
helper_text_id: "emailHelp",
|
|
@@ -23,13 +26,12 @@ module.exports = {
|
|
|
23
26
|
wrapper_classes: "col-md-6",
|
|
24
27
|
input_type: "password",
|
|
25
28
|
required: true,
|
|
26
|
-
label: "Password",
|
|
29
|
+
label: "Password *",
|
|
27
30
|
id: "exampleInputPassword1",
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
wrapper_classes: "col-12",
|
|
31
34
|
input_type: "text",
|
|
32
|
-
required: true,
|
|
33
35
|
label: "Address",
|
|
34
36
|
id: "exampleInputAddress1",
|
|
35
37
|
},
|
|
@@ -43,28 +45,28 @@ module.exports = {
|
|
|
43
45
|
wrapper_classes: "col-md-6",
|
|
44
46
|
input_type: "text",
|
|
45
47
|
required: true,
|
|
46
|
-
label: "City",
|
|
48
|
+
label: "City *",
|
|
47
49
|
id: "exampleInputCity1",
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
wrapper_classes: "col-md-4",
|
|
51
53
|
input_type: "text",
|
|
52
54
|
required: true,
|
|
53
|
-
label: "State",
|
|
55
|
+
label: "State *",
|
|
54
56
|
id: "exampleInputState1",
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
wrapper_classes: "col-md-2",
|
|
58
60
|
input_type: "text",
|
|
59
61
|
required: true,
|
|
60
|
-
label: "Zip",
|
|
62
|
+
label: "Zip *",
|
|
61
63
|
id: "exampleInputZip1",
|
|
62
64
|
},
|
|
63
65
|
{
|
|
64
66
|
input_type: "checkbox",
|
|
65
67
|
wrapper_classes: "col-12",
|
|
66
68
|
required: true,
|
|
67
|
-
label: "Check me out",
|
|
69
|
+
label: "Check me out *",
|
|
68
70
|
id: "exampleInputCheck1",
|
|
69
71
|
},
|
|
70
72
|
],
|
package/data-horizontal.js
CHANGED
package/data-inline.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
const drupalAttribute = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
attributes: new drupalAttribute()
|
|
5
|
-
"row",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"align-items-center",
|
|
9
|
-
]),
|
|
4
|
+
attributes: new drupalAttribute()
|
|
5
|
+
.addClass(["row", "row-cols-lg-auto", "g-3", "align-items-center"])
|
|
6
|
+
.setAttribute("novalidate", true)
|
|
7
|
+
.setAttribute("onsubmit", "return false;"),
|
|
10
8
|
submit: {
|
|
11
9
|
wrapper: "col-12",
|
|
12
10
|
label: "Submit",
|
|
@@ -42,7 +40,7 @@ module.exports = {
|
|
|
42
40
|
input_type: "checkbox",
|
|
43
41
|
wrapper_classes: "col-12",
|
|
44
42
|
required: true,
|
|
45
|
-
label: "Remember me",
|
|
43
|
+
label: "Remember me *",
|
|
46
44
|
id: "exampleInputCheck1",
|
|
47
45
|
},
|
|
48
46
|
],
|
package/data.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
const drupalAttribute = require("drupal-attribute");
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
4
|
+
attributes: new drupalAttribute()
|
|
5
|
+
.addClass("needs-validation")
|
|
6
|
+
.setAttribute("novalidate", true)
|
|
7
|
+
.setAttribute("onsubmit", "return false;"),
|
|
2
8
|
submit: {
|
|
3
9
|
label: "Submit",
|
|
4
10
|
type: "submit",
|
|
@@ -10,10 +16,12 @@ module.exports = {
|
|
|
10
16
|
classes: "mb-3",
|
|
11
17
|
input_type: "email",
|
|
12
18
|
required: true,
|
|
13
|
-
label: "Email address",
|
|
19
|
+
label: "Email address *",
|
|
14
20
|
id: "exampleInputEmail1",
|
|
15
21
|
helper_text: "We'll never share your email with anyone else.",
|
|
16
22
|
helper_text_id: "emailHelp",
|
|
23
|
+
valid_feedback: "Valid feedback regarding email.",
|
|
24
|
+
invalid_feedback: "Please provide an email.",
|
|
17
25
|
},
|
|
18
26
|
],
|
|
19
27
|
[
|
|
@@ -21,8 +29,10 @@ module.exports = {
|
|
|
21
29
|
input_type: "password",
|
|
22
30
|
classes: "mb-3",
|
|
23
31
|
required: true,
|
|
24
|
-
label: "Password",
|
|
32
|
+
label: "Password *",
|
|
25
33
|
id: "exampleInputPassword1",
|
|
34
|
+
valid_feedback: "Valid feedback regarding password.",
|
|
35
|
+
invalid_feedback: "Please provide a password.",
|
|
26
36
|
},
|
|
27
37
|
],
|
|
28
38
|
[
|
|
@@ -30,8 +40,10 @@ module.exports = {
|
|
|
30
40
|
input_type: "checkbox",
|
|
31
41
|
classes: "mb-3",
|
|
32
42
|
required: true,
|
|
33
|
-
label: "Check me out",
|
|
34
|
-
id: "
|
|
43
|
+
label: "Check me out *",
|
|
44
|
+
id: "exampleInputCheck1",
|
|
45
|
+
valid_feedback: "Valid feedback regarding check.",
|
|
46
|
+
invalid_feedback: "Please check the required checkbox.",
|
|
35
47
|
},
|
|
36
48
|
],
|
|
37
49
|
],
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-form",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.9.0",
|
|
6
6
|
"description": "OE - BCL data form",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"design-system",
|
|
22
22
|
"twig"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "dc021a9c36d22809e33a8485e42f59af602451c1"
|
|
25
25
|
}
|