1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/// The value an ARIA attribute carries when the state it reports is on.
pub const SELECT_ATTRIBUTE_ON: &str = "true";
/// The value an ARIA attribute carries when the state it reports is off.
pub const SELECT_ATTRIBUTE_OFF: &str = "false";
/// The value an attribute carries when there is nothing to report.
pub const SELECT_ATTRIBUTE_EMPTY: &str = "";
/// The glyph drawn by the Select scroll-up indicator.
pub const SELECT_SCROLL_UP_GLYPH: &str = "⌃";
/// The glyph drawn by the Select scroll-down indicator.
pub const SELECT_SCROLL_DOWN_GLYPH: &str = "⌄";
/// The check glyph shown by the selected Select option.
pub const SELECT_CHECKMARK: &str = "✓";
/// Selects the root that owns one Select's trigger and option panel.
pub const SELECT_ROOT_SELECTOR: &str = "[data-slot='select']";
/// Selects the trigger to restore focus to after a selection closes.
pub const SELECT_TRIGGER_SELECTOR: &str = "[data-slot='select-trigger']";
/// Selects every enabled option in one Select panel.
pub const SELECT_OPTION_SELECTOR: &str = "[data-slot='select-item']:not([disabled])";
/// The DOM attribute carrying the value of one Select option.
pub const SELECT_VALUE_ATTRIBUTE: &str = "data-value";
/// Selects the content panel whose position follows the trigger.
pub const SELECT_CONTENT_SELECTOR: &str = "[data-slot='select-content']";
/// Selects the scrollable viewport inside the Select content panel.
pub const SELECT_VIEWPORT_SELECTOR: &str = "[data-slot='select-viewport']";
/// The minimum viewport gap used before falling back to edge alignment.
pub const SELECT_ALIGNMENT_VIEWPORT_GUTTER_PX: f64 = 20.0;
/// The ArrowDown keyboard key name.
pub const SELECT_KEY_ARROW_DOWN: &str = "ArrowDown";
/// The ArrowUp keyboard key name.
pub const SELECT_KEY_ARROW_UP: &str = "ArrowUp";
/// The Home keyboard key name.
pub const SELECT_KEY_HOME: &str = "Home";
/// The End keyboard key name.
pub const SELECT_KEY_END: &str = "End";
/// The Enter keyboard key name.
pub const SELECT_KEY_ENTER: &str = "Enter";
/// The Space keyboard key name.
pub const SELECT_KEY_SPACE: &str = " ";
/// The Escape keyboard key name.
pub const SELECT_KEY_ESCAPE: &str = "Escape";
/// The keyboard typeahead prefix is cleared after this idle duration.
pub const SELECT_TYPEAHEAD_RESET_MS: i32 = 700;