@openeuropa/bcl-data-select 1.9.2 → 1.10.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.
- package/data--multiselect.js +1 -1
- package/data--single.js +30 -0
- package/package.json +2 -2
package/data--multiselect.js
CHANGED
|
@@ -29,5 +29,5 @@ module.exports = {
|
|
|
29
29
|
{ value: 8, label: "last option" },
|
|
30
30
|
{ value: 9, label: "the selected option", selected: true },
|
|
31
31
|
],
|
|
32
|
-
attributes: new drupalAttribute().addClass("multi-select"),
|
|
32
|
+
attributes: new drupalAttribute().addClass("multi-select form-select"),
|
|
33
33
|
};
|
package/data--single.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const drupalAttribute = require("drupal-attribute");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
id: "singleselect-1",
|
|
5
|
+
clean_class: true,
|
|
6
|
+
required: true,
|
|
7
|
+
size: "md",
|
|
8
|
+
label: "A single select form element",
|
|
9
|
+
helper_text: "Helper text for the select element",
|
|
10
|
+
helper_text_id: "helperText",
|
|
11
|
+
invalid_feedback: "Invalid feedback example",
|
|
12
|
+
valid_feedback: "Valid feedback example",
|
|
13
|
+
placeholder: "Please select a value",
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
optgroup: true,
|
|
17
|
+
label: "Group 1",
|
|
18
|
+
options: [
|
|
19
|
+
{ value: 1, label: "Option group 1" },
|
|
20
|
+
{ value: 2, label: "Option group 2" },
|
|
21
|
+
{ value: 3, label: "Option group 3" },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
{ value: 5, label: "a select option" },
|
|
25
|
+
{ value: 6, label: "another select option" },
|
|
26
|
+
{ value: 7, label: "another option" },
|
|
27
|
+
{ value: 8, label: "last option" },
|
|
28
|
+
],
|
|
29
|
+
attributes: new drupalAttribute().addClass("single-select form-select"),
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-select",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.10.1",
|
|
6
6
|
"description": "OE select data",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"component-library",
|
|
21
21
|
"design-system"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "6c77dfb1e65950872e806cd0acb14023c279b934"
|
|
24
24
|
}
|