@synopackageland/ui 0.20.18 → 0.20.19
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 +5 -0
- package/dist/cli.js +0 -0
- package/dist/composables/focusOwner.d.ts +4 -0
- package/dist/composables/openerFocus.d.ts +6 -2
- package/dist/index.js +11454 -11440
- package/dist/json-preview/preview.js +5378 -5372
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/package.json +3 -86
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.20.19 (2026-11-06)
|
|
6
|
+
|
|
7
|
+
- The phone navigation drawer returns focus to its opener inside the shell (the menu button or a More tab) after Escape, Close, a navigation pick, Back or a swipe. If a touch tap left focus on the host page outside the shell, it falls back to the menu button instead of returning focus to the host. It waits until the drawer has left and the background is no longer inert
|
|
8
|
+
- Dialog, Sheet, BottomSheet, RecordPanel and notifications remember focus only inside their AppRoot (including its floating dialog host). A touch-opened overlay ignores the host page's focused element and returns to the pressed control inside the app; existing closeAutoFocus overrides still take precedence
|
|
9
|
+
|
|
5
10
|
## 0.20.18 (2026-11-06)
|
|
6
11
|
|
|
7
12
|
- `Callout` takes `dismissScope`. `persistent` (the default) keeps today's behaviour: a closed callout stays closed after a reload until what it says changes. `occurrence` is for a notice about a passing state (reconnecting, an error, a stalled capture) that the App shows with `v-if` while the state lasts: closing hides this appearance only, nothing is stored, and the dismissal is forgotten when the Callout unmounts, so the next time the state starts the notice shows again. `dismissalKey` and `forgetDismissal` are exported: `forgetDismissal(dismissalKey('reconnecting'))` shows the callout with that `dismissKey` again (docs/callout.md, "Closing")
|
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export declare const APP_FOCUS_ROOT_KEY: InjectionKey<Ref<HTMLElement | null>>;
|
|
3
|
+
/** Remember only this app's controls, including its viewport portal. */
|
|
4
|
+
export declare function useFocusOwner(): (element: HTMLElement) => boolean;
|
|
@@ -6,7 +6,8 @@ export declare const OPENER_FOCUS_FRAMES = 120;
|
|
|
6
6
|
* an element that had focus when the content mounted, so a bottom sheet, and
|
|
7
7
|
* a dialog opened by a click that did not focus its button (Safari, touch),
|
|
8
8
|
* left focus on <body> when Escape or the Close button shut it. The opener is
|
|
9
|
-
* the focused element when `open` turns true, else the control
|
|
9
|
+
* the focused element inside the app when `open` turns true, else the control
|
|
10
|
+
* just pressed inside the app, else the supplied fallback trigger.
|
|
10
11
|
*
|
|
11
12
|
* The returned handler, called from the content's `closeAutoFocus` after the
|
|
12
13
|
* consumer's own listener, runs when the overlay starts to close: its content
|
|
@@ -21,4 +22,7 @@ export declare const OPENER_FOCUS_FRAMES = 120;
|
|
|
21
22
|
* document. A consumer that prevents the default
|
|
22
23
|
* keeps full control.
|
|
23
24
|
*/
|
|
24
|
-
export declare function useOpenerFocus(open: () => boolean
|
|
25
|
+
export declare function useOpenerFocus(open: () => boolean, options?: {
|
|
26
|
+
contains?: (element: HTMLElement) => boolean;
|
|
27
|
+
fallback?: () => HTMLElement | null;
|
|
28
|
+
}): (event: Event) => void;
|