stimeo-ui 0.18.1 → 0.19.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +54 -0
- data/dist/cable/index.js +6 -5
- data/dist/controllers/alert_dialog_controller.js +324 -76
- data/dist/controllers/announcer_controller.js +22 -9
- data/dist/controllers/auto_submit_controller.js +103 -16
- data/dist/controllers/avatar_controller.js +29 -9
- data/dist/controllers/breadcrumb_controller.js +205 -17
- data/dist/controllers/bulk_select_controller.js +31 -13
- data/dist/controllers/calendar_controller.js +242 -7
- data/dist/controllers/carousel_controller.js +70 -15
- data/dist/controllers/character_counter_controller.js +103 -16
- data/dist/controllers/clipboard_controller.js +6 -5
- data/dist/controllers/collapsible_controller.js +35 -8
- data/dist/controllers/combobox_controller.js +155 -26
- data/dist/controllers/command_palette_controller.js +445 -117
- data/dist/controllers/conditional_fields_controller.js +84 -44
- data/dist/controllers/confirm_controller.js +303 -68
- data/dist/controllers/context_menu_controller.js +59 -30
- data/dist/controllers/countdown_controller.js +6 -5
- data/dist/controllers/currency_input_controller.js +72 -7
- data/dist/controllers/data_grid_controller.js +273 -51
- data/dist/controllers/date_range_picker_controller.js +27 -5
- data/dist/controllers/dialog_controller.js +330 -79
- data/dist/controllers/direct_upload_controller.js +6 -5
- data/dist/controllers/dismissible_controller.js +68 -18
- data/dist/controllers/drawer_controller.js +362 -92
- data/dist/controllers/dropdown_controller.js +64 -52
- data/dist/controllers/editable_controller.js +140 -12
- data/dist/controllers/empty_state_controller.js +193 -9
- data/dist/controllers/file_dropzone_controller.js +313 -23
- data/dist/controllers/filter_controller.js +194 -5
- data/dist/controllers/flash_controller.js +205 -17
- data/dist/controllers/focus_controller.js +273 -57
- data/dist/controllers/form_field_controller.js +71 -14
- data/dist/controllers/form_validation_controller.js +11 -7
- data/dist/controllers/frame_loading_controller.js +75 -20
- data/dist/controllers/hover_card_controller.js +108 -39
- data/dist/controllers/input_mask_controller.js +95 -37
- data/dist/controllers/intersection_controller.js +61 -29
- data/dist/controllers/lazy_frame_controller.js +61 -29
- data/dist/controllers/listbox_controller.js +174 -83
- data/dist/controllers/local_time_controller.js +1 -7
- data/dist/controllers/menu_controller.js +45 -24
- data/dist/controllers/menubar_controller.js +232 -52
- data/dist/controllers/meter_controller.js +31 -9
- data/dist/controllers/multi_select_controller.js +195 -62
- data/dist/controllers/navigation_menu_controller.js +1 -1
- data/dist/controllers/nested_form_controller.js +275 -21
- data/dist/controllers/network_status_controller.js +31 -9
- data/dist/controllers/number_input_controller.js +180 -71
- data/dist/controllers/otp_controller.js +97 -11
- data/dist/controllers/overflow_menu_controller.js +190 -24
- data/dist/controllers/pagination_controller.js +186 -24
- data/dist/controllers/password_reveal_controller.js +25 -4
- data/dist/controllers/password_strength_controller.js +6 -5
- data/dist/controllers/popover_controller.js +466 -42
- data/dist/controllers/progress_controller.js +31 -9
- data/dist/controllers/radio_group_controller.js +279 -88
- data/dist/controllers/range_slider_controller.js +72 -54
- data/dist/controllers/rating_controller.js +58 -10
- data/dist/controllers/read_more_controller.js +191 -25
- data/dist/controllers/relative_time_controller.js +1 -7
- data/dist/controllers/roving_controller.js +204 -8
- data/dist/controllers/scroll_area_controller.js +61 -19
- data/dist/controllers/scroll_visibility_controller.js +25 -4
- data/dist/controllers/scrollspy_controller.js +240 -32
- data/dist/controllers/separator_controller.js +97 -58
- data/dist/controllers/sidebar_controller.js +368 -127
- data/dist/controllers/skeleton_controller.js +75 -20
- data/dist/controllers/slider_controller.js +72 -54
- data/dist/controllers/sortable_controller.js +6 -5
- data/dist/controllers/spinner_controller.js +75 -20
- data/dist/controllers/step_indicator_controller.js +181 -6
- data/dist/controllers/stepper_controller.js +188 -6
- data/dist/controllers/sticky_observer_controller.js +86 -33
- data/dist/controllers/submit_once_controller.js +31 -9
- data/dist/controllers/switch_controller.js +84 -44
- data/dist/controllers/tabs_controller.js +189 -3
- data/dist/controllers/tags_input_controller.js +293 -29
- data/dist/controllers/theme_controller.js +192 -5
- data/dist/controllers/time_picker_controller.js +77 -42
- data/dist/controllers/toast_controller.js +478 -16
- data/dist/controllers/toggle_group_controller.js +282 -79
- data/dist/controllers/toolbar_controller.js +276 -15
- data/dist/controllers/tooltip_controller.js +244 -46
- data/dist/controllers/tree_view_controller.js +287 -57
- data/dist/index.js +2258 -1016
- data/lib/stimeo/ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39db221aeffefadda5ac2ba6f447de9a68e37c3e59f88b9b152ac776f05b3844
|
|
4
|
+
data.tar.gz: 4fbc0cf886a5e8089c466f5b775f90afbcf1d055bb6d8d3c2236529c72a902c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 942b36cd7302fe31729b88c943b125aa041b326bc3e50b309cdfbc8cb97696baced2b384521099137f42fc4e69a80cfd7b479246ee7f047515ef6d90c1df3374
|
|
7
|
+
data.tar.gz: f23082bc52eb8553d9bf4d909705b98102541419fad5b79eb0fc5affa3d55a43c09f97045a10bdd850304e2545fbbfcbe02ee9b9609b76844bef7807ead649ff
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
While the version is `0.x`, the public API (the `stimeo--*` data attributes) may
|
|
8
8
|
change between releases.
|
|
9
9
|
|
|
10
|
+
## [0.19.0] - 2026-11-25
|
|
11
|
+
|
|
12
|
+
Minor release focused on keyboard focus, IME editing, and replacing component
|
|
13
|
+
markup during page updates.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Breaking** tree-view: add a `group` target to each child group the controller
|
|
18
|
+
should show or hide. `role="group"` still defines the hierarchy. Groups without
|
|
19
|
+
the target keep the page's `hidden` state.
|
|
20
|
+
- **Breaking** focus traps now follow the browser's Tab starting position after
|
|
21
|
+
a click on non-focusable content or when the focused element is removed or
|
|
22
|
+
hidden. This affects dialog, alert-dialog, confirm, drawer, sidebar in overlay
|
|
23
|
+
mode, command-palette, and focus.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- Tab and Shift+Tab enter an unchecked radio group at its first and last
|
|
28
|
+
reachable options, respectively. Focus handoffs use the checked option when
|
|
29
|
+
one exists.
|
|
30
|
+
- editable: Cancel discards the edit when pressing it blurs the input before the
|
|
31
|
+
click. hover-card stays open while the pointer remains inside after focus moves.
|
|
32
|
+
- character-counter, currency-input, multi-select, and otp accept values written
|
|
33
|
+
by the page after IME confirmation, including after focus leaves the field.
|
|
34
|
+
- Components restore authored attributes when targets leave their scope and
|
|
35
|
+
preserve state when targets move within it.
|
|
36
|
+
- Menus, popups, and dialogs preserve their open state, pending actions, and
|
|
37
|
+
Escape dismissal while their targets are replaced.
|
|
38
|
+
- tags-input, multi-select, file-dropzone, and toast keep later lists inactive
|
|
39
|
+
until the first list leaves. multi-select announces removed chips by their
|
|
40
|
+
former labels.
|
|
41
|
+
|
|
42
|
+
## [0.18.2] - 2026-11-21
|
|
43
|
+
|
|
44
|
+
Patch release focused on numeric stepping, focus, and text editing.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
|
|
48
|
+
- auto-submit and toolbar: preserve IME composition tracking across unrelated
|
|
49
|
+
edits inside a contenteditable field.
|
|
50
|
+
- number-input, slider, range-slider and separator: round midpoint values
|
|
51
|
+
consistently and handle steps near numeric limits. Number-input disables
|
|
52
|
+
buttons that cannot move the value.
|
|
53
|
+
- Continue Tab navigation from inside an open shadow root with a negative-tabindex
|
|
54
|
+
host.
|
|
55
|
+
- input-mask: keep the caret and delete the intended character when the mask
|
|
56
|
+
contains emoji literals.
|
|
57
|
+
- multi-select and tags-input: give input focus time to be announced before the
|
|
58
|
+
last chip's removal message.
|
|
59
|
+
- Inspector names unknown diagnostic suppressions. Meter and Progress types
|
|
60
|
+
support declaration generation in consuming projects.
|
|
61
|
+
|
|
10
62
|
## [0.18.1] - 2026-10-31
|
|
11
63
|
|
|
12
64
|
Patch release focused on keyboard ownership, focus handoff, masked selections,
|
|
@@ -1440,6 +1492,8 @@ Initial public alpha: 101 behavior-only, accessible Stimulus controllers driven
|
|
|
1440
1492
|
by `data-*` attributes, shipping no CSS. Published to npm (with provenance) and
|
|
1441
1493
|
RubyGems.
|
|
1442
1494
|
|
|
1495
|
+
[0.19.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.19.0
|
|
1496
|
+
[0.18.2]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.18.2
|
|
1443
1497
|
[0.18.1]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.18.1
|
|
1444
1498
|
[0.18.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.18.0
|
|
1445
1499
|
[0.17.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.17.0
|
data/dist/cable/index.js
CHANGED
|
@@ -8,14 +8,15 @@ function fillTemplate(template, values) {
|
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
var afterFocus = /* @__PURE__ */ Symbol.for("stimeo--announcer:after-focus");
|
|
11
12
|
function announce(message, options = {}) {
|
|
12
13
|
const text = message.trim();
|
|
13
14
|
if (text.length === 0) return;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
);
|
|
15
|
+
const event = new CustomEvent("stimeo--announcer:announce", {
|
|
16
|
+
detail: { message: text, assertive: options.assertive === true }
|
|
17
|
+
});
|
|
18
|
+
if (options.afterFocus) event[afterFocus] = true;
|
|
19
|
+
window.dispatchEvent(event);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
var TOKEN_BODY = /\d[\d.,'’’ _]*\d|\d/;
|