@openeuropa/bcl-data-select 0.1.3 → 0.1.202411051450

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.
@@ -0,0 +1,33 @@
1
+ const drupalAttribute = require("drupal-attribute");
2
+
3
+ module.exports = {
4
+ id: "multiselect-1",
5
+ multiple: true,
6
+ clean_class: true,
7
+ required: true,
8
+ size: "md",
9
+ label: "A multiselect form element",
10
+ helper_text: "Helper text for the select element",
11
+ helper_text_id: "helperText",
12
+ invalid_feedback: "Invalid feedback example",
13
+ valid_feedback: "Valid feedback example",
14
+ selectByGroup: true,
15
+ placeholder: "Please select a value",
16
+ options: [
17
+ {
18
+ optgroup: true,
19
+ label: "Group 1",
20
+ options: [
21
+ { value: 1, label: "Option group 1" },
22
+ { value: 2, label: "Option group 2" },
23
+ { value: 3, label: "Option group 3" },
24
+ ],
25
+ },
26
+ { value: 5, label: "a select option" },
27
+ { value: 6, label: "another select option" },
28
+ { value: 7, label: "another option" },
29
+ { value: 8, label: "last option" },
30
+ { value: 9, label: "the selected option", selected: true },
31
+ ],
32
+ attributes: new drupalAttribute().addClass("multi-select"),
33
+ };
package/data--sort.js ADDED
@@ -0,0 +1,15 @@
1
+ const drupalAttribute = require("drupal-attribute");
2
+
3
+ module.exports = {
4
+ label: "Sort by",
5
+ attributes: new drupalAttribute().addClass("mb-4 mb-md-0 ms-md-4"),
6
+ aria_label: "sort-select",
7
+ label_extra_classes: "mb-0",
8
+ options: [
9
+ { value: 1, label: "a select option" },
10
+ { value: 2, label: "another select option" },
11
+ { value: 3, label: "another option" },
12
+ { value: 4, label: "last option" },
13
+ { label: "A-Z", selected: true },
14
+ ],
15
+ };
package/data.js CHANGED
@@ -1,8 +1,11 @@
1
1
  module.exports = {
2
+ id: "select-1",
3
+ label: "A select form element",
2
4
  required: true,
3
- size: "md",
4
5
  helper_text: "Helper text for the select element",
5
6
  helper_text_id: "helperText",
7
+ invalid_feedback: "Invalid feedback example",
8
+ valid_feedback: "Valid feedback example",
6
9
  options: [
7
10
  { value: 1, label: "a select option" },
8
11
  { value: 2, label: "another select option" },
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": "0.1.3",
5
+ "version": "0.1.202411051450",
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": "ab1587b9ba4971ea0ca72c3de6b632f2c314c200"
23
+ "gitHead": "d553864c2d2214729cf74aa765606f2c447bb456"
24
24
  }