@florid-kit/components 0.9.8 → 0.9.10
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/aria.d.ts +1 -1
- package/components/side-panel.d.ts +14 -1
- package/index.js +146 -131
- package/index.mjs +817 -752
- package/package.json +1 -1
package/aria.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
|
|
|
15
15
|
/**
|
|
16
16
|
* Accessibility Object Model aria attributes.
|
|
17
17
|
*/
|
|
18
|
-
export declare const ARIA_ATTRIBUTES: ("aria-pressed" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-expanded" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-
|
|
18
|
+
export declare const ARIA_ATTRIBUTES: ("aria-pressed" | "aria-modal" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-expanded" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
|
|
19
19
|
/**
|
|
20
20
|
* Checks if an attribute is one of the AOM aria attributes.
|
|
21
21
|
*
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
|
|
3
|
+
declare global {
|
|
4
|
+
interface OpenDetailDetail {
|
|
5
|
+
origin?: HTMLElement;
|
|
6
|
+
}
|
|
7
|
+
interface HTMLElementEventMap {
|
|
8
|
+
"open-detail": CustomEvent<OpenDetailDetail>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
3
11
|
export declare class OccitaneSidePanel extends LitElement {
|
|
4
12
|
open: boolean;
|
|
5
13
|
showHeader: boolean;
|
|
@@ -22,14 +30,18 @@ export declare class OccitaneSidePanel extends LitElement {
|
|
|
22
30
|
showDetail: boolean;
|
|
23
31
|
isHidingDetail: boolean;
|
|
24
32
|
private previousFocusedElement;
|
|
25
|
-
private innerFocusedElement;
|
|
26
33
|
static styles: import('lit').CSSResult;
|
|
27
34
|
static focusablesSelector: string;
|
|
28
35
|
static focusablesCustomElementsSelector: string;
|
|
29
36
|
connectedCallback(): void;
|
|
30
37
|
disconnectedCallback(): void;
|
|
38
|
+
private focusDetailReturnBtn;
|
|
31
39
|
private _onOpenDetail;
|
|
40
|
+
private _detailOriginEl;
|
|
41
|
+
private _detailOriginClass;
|
|
42
|
+
private _restoreFocusToOrigin;
|
|
32
43
|
private handleKeyDown;
|
|
44
|
+
private getDeepActiveElement;
|
|
33
45
|
private trapFocus;
|
|
34
46
|
private getFocusableElements;
|
|
35
47
|
openPanel(): void;
|
|
@@ -38,6 +50,7 @@ export declare class OccitaneSidePanel extends LitElement {
|
|
|
38
50
|
private handleFirstClick;
|
|
39
51
|
private handleSecondClick;
|
|
40
52
|
protected updated(): void;
|
|
53
|
+
private _onDetailSlotChange;
|
|
41
54
|
protected render(): import('lit').TemplateResult<1>;
|
|
42
55
|
}
|
|
43
56
|
declare global {
|