@xleddyl/443-components-vue 0.16.48 → 0.16.49
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.
|
@@ -2,5 +2,5 @@ export declare function activeElement(): HTMLElement | null;
|
|
|
2
2
|
export declare function hasFocusWithin(element: Element | null | undefined): boolean;
|
|
3
3
|
export declare function isFocusLost(container?: Element | null): boolean;
|
|
4
4
|
export declare function focusStable(target: HTMLElement): void;
|
|
5
|
-
export declare function focusFirst(container: Element | null | undefined): boolean;
|
|
5
|
+
export declare function focusFirst(container: Element | null | undefined, options?: FocusOptions): boolean;
|
|
6
6
|
export declare function neighborFocusTarget(element: HTMLElement): HTMLElement | null;
|
|
@@ -31,9 +31,9 @@ export function focusStable(target) {
|
|
|
31
31
|
if (!target.hasAttribute("tabindex")) target.setAttribute("tabindex", "-1");
|
|
32
32
|
target.focus({ preventScroll: true });
|
|
33
33
|
}
|
|
34
|
-
export function focusFirst(container) {
|
|
34
|
+
export function focusFirst(container, options) {
|
|
35
35
|
const first = container ? focusableWithin(container)[0] : void 0;
|
|
36
|
-
first?.focus();
|
|
36
|
+
first?.focus(options);
|
|
37
37
|
return Boolean(first);
|
|
38
38
|
}
|
|
39
39
|
export function neighborFocusTarget(element) {
|
package/package.json
CHANGED