@rcarls/rc-listbox 0.4.2 → 0.6.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @rcarls/rc-listbox
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6683eb9]
|
|
8
|
+
- Updated dependencies [ee7ba6c]
|
|
9
|
+
- Updated dependencies [30eb232]
|
|
10
|
+
- @rcarls/rc-common@0.6.0
|
|
11
|
+
|
|
12
|
+
## 0.5.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [4ae2ef0]
|
|
17
|
+
- Updated dependencies [689340c]
|
|
18
|
+
- @rcarls/rc-common@0.5.0
|
|
19
|
+
|
|
3
20
|
## 0.4.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -61,30 +61,30 @@ listbox.addEventListener('rc-listbox-change', (event) => {
|
|
|
61
61
|
|
|
62
62
|
## API
|
|
63
63
|
|
|
64
|
-
| Property / method
|
|
65
|
-
|
|
|
66
|
-
| `multiple`
|
|
67
|
-
| `checkmark`
|
|
68
|
-
| `filterStrategy`
|
|
69
|
-
| `value`
|
|
70
|
-
| `defaultValue`
|
|
71
|
-
| `options`
|
|
72
|
-
| `allOptions`
|
|
73
|
-
| `filteredOptions`
|
|
74
|
-
| `selectedValues`
|
|
75
|
-
| `appendOption(opt)`
|
|
76
|
-
| `setSelectedValues(values)` | `void`
|
|
77
|
-
| `toggleOption(value)`
|
|
78
|
-
| `clearSelection()`
|
|
79
|
-
| `filterOptions(text)`
|
|
80
|
-
| `clearFilter()`
|
|
81
|
-
| `navigableItems`
|
|
82
|
-
| `setCreateOption(label)`
|
|
64
|
+
| Property / method | Type | Description |
|
|
65
|
+
| --------------------------- | ------------------------------------ | ------------------------------------------------------------ |
|
|
66
|
+
| `multiple` | `boolean` | Enables multi-selection and reflects `aria-multiselectable`. |
|
|
67
|
+
| `checkmark` | `boolean` | Renders a checkmark indicator inside each option element. |
|
|
68
|
+
| `filterStrategy` | `'prefix' \| 'contains' \| function` | Controls how `filterOptions()` matches labels. |
|
|
69
|
+
| `value` | `string \| string[]` | Current selection. Host writes update silently. |
|
|
70
|
+
| `defaultValue` | `string \| string[] \| undefined` | Initial uncontrolled selection. |
|
|
71
|
+
| `options` | `ListboxOption[]` | Replaces the rendered option list. |
|
|
72
|
+
| `allOptions` | `readonly ListboxOption[]` | All configured options. |
|
|
73
|
+
| `filteredOptions` | `readonly ListboxOption[]` | Options currently passing the filter. |
|
|
74
|
+
| `selectedValues` | `string[]` | Current selected values. |
|
|
75
|
+
| `appendOption(opt)` | `void` | Adds one option. |
|
|
76
|
+
| `setSelectedValues(values)` | `void` | Replaces selection without firing an event. |
|
|
77
|
+
| `toggleOption(value)` | `void` | Toggles selection and fires `rc-listbox-change`. |
|
|
78
|
+
| `clearSelection()` | `void` | Clears selected values. |
|
|
79
|
+
| `filterOptions(text)` | `void` | Filters visible options. |
|
|
80
|
+
| `clearFilter()` | `void` | Clears the active filter. |
|
|
81
|
+
| `navigableItems` | `Element[]` | Visible, enabled options for active-descendant navigation. |
|
|
82
|
+
| `setCreateOption(label)` | `void` | Shows or hides the synthetic create option. |
|
|
83
83
|
|
|
84
84
|
## Events
|
|
85
85
|
|
|
86
|
-
| Event
|
|
87
|
-
|
|
|
86
|
+
| Event | Detail | Description |
|
|
87
|
+
| ------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------ |
|
|
88
88
|
| `rc-listbox-change` | `{ reason: 'select'; value; selected; option } \| { reason: 'action'; action; option }` | Fires when an option or action row is activated. |
|
|
89
89
|
|
|
90
90
|
## Accessibility
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './rc-listbox';
|
|
1
|
+
export * from './rc-listbox.js';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.0",
|
|
7
7
|
"description": "Listbox that keeps option DOM in light DOM for aria-activedescendant navigation.",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:browser:firefox": "vitest --run --project=firefox"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rcarls/rc-common": "0.
|
|
48
|
+
"@rcarls/rc-common": "0.6.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@custom-elements-manifest/analyzer": "0.11.0",
|
|
File without changes
|