@shoper/phoenix_design_system 1.18.23-6 → 1.18.23-7
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/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/cyclic_focus_trap_strategy.js +0 -29
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/cyclic_focus_trap_strategy.js.map +1 -1
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/focus_trap_strategy.js +29 -0
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/focus_trap_strategy.js.map +1 -1
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/sentinel_focus_trap_strategy.js +0 -29
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/sentinel_focus_trap_strategy.js.map +1 -1
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/toggler_focus_trap_strategy.js +0 -6
- package/build/cjs/packages/phoenix/src/controllers/focus_trap_controller/strategies/toggler_focus_trap_strategy.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/cyclic_focus_trap_strategy.d.ts +0 -3
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/cyclic_focus_trap_strategy.js +0 -29
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/cyclic_focus_trap_strategy.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/focus_trap_strategy.d.ts +3 -2
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/focus_trap_strategy.js +29 -0
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/focus_trap_strategy.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/sentinel_focus_trap_strategy.d.ts +0 -3
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/sentinel_focus_trap_strategy.js +0 -29
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/sentinel_focus_trap_strategy.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/toggler_focus_trap_strategy.d.ts +1 -3
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/toggler_focus_trap_strategy.js +0 -6
- package/build/esm/packages/phoenix/src/controllers/focus_trap_controller/strategies/toggler_focus_trap_strategy.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,35 +17,6 @@ var focus_trap_strategy = require('./focus_trap_strategy.js');
|
|
|
17
17
|
class CyclicFocusTrapStrategy extends focus_trap_strategy.FocusTrapStrategy {
|
|
18
18
|
constructor({ getContainer }) {
|
|
19
19
|
super(getContainer);
|
|
20
|
-
this._handleKeyDown = (ev) => {
|
|
21
|
-
if (!this.active || ev.code !== 'Tab')
|
|
22
|
-
return;
|
|
23
|
-
const container = this.getContainer();
|
|
24
|
-
if (!container)
|
|
25
|
-
return;
|
|
26
|
-
const focusableElements = this.getFocusableElements(container);
|
|
27
|
-
if (focusableElements.length === 0)
|
|
28
|
-
return;
|
|
29
|
-
const $target = ev.target;
|
|
30
|
-
if (ev.shiftKey) {
|
|
31
|
-
if ($target === focusableElements[0]) {
|
|
32
|
-
ev.preventDefault();
|
|
33
|
-
focusableElements[focusableElements.length - 1].focus();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
if ($target === focusableElements[focusableElements.length - 1]) {
|
|
38
|
-
ev.preventDefault();
|
|
39
|
-
focusableElements[0].focus();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
attach() {
|
|
45
|
-
document.addEventListener('keydown', this._handleKeyDown);
|
|
46
|
-
}
|
|
47
|
-
detach() {
|
|
48
|
-
document.removeEventListener('keydown', this._handleKeyDown);
|
|
49
20
|
}
|
|
50
21
|
}
|
|
51
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -8,6 +8,35 @@ class FocusTrapStrategy {
|
|
|
8
8
|
constructor(getContainer) {
|
|
9
9
|
this.getContainer = getContainer;
|
|
10
10
|
this.active = false;
|
|
11
|
+
this._handleKeyDown = (ev) => {
|
|
12
|
+
if (!this.active || ev.code !== 'Tab')
|
|
13
|
+
return;
|
|
14
|
+
const container = this.getContainer();
|
|
15
|
+
if (!container)
|
|
16
|
+
return;
|
|
17
|
+
const focusableElements = this.getFocusableElements(container);
|
|
18
|
+
if (focusableElements.length === 0)
|
|
19
|
+
return;
|
|
20
|
+
const $target = ev.target;
|
|
21
|
+
if (ev.shiftKey) {
|
|
22
|
+
if ($target === focusableElements[0]) {
|
|
23
|
+
ev.preventDefault();
|
|
24
|
+
focusableElements[focusableElements.length - 1].focus();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
if ($target === focusableElements[focusableElements.length - 1]) {
|
|
29
|
+
ev.preventDefault();
|
|
30
|
+
focusableElements[0].focus();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
attach() {
|
|
36
|
+
document.addEventListener('keydown', this._handleKeyDown);
|
|
37
|
+
}
|
|
38
|
+
detach() {
|
|
39
|
+
document.removeEventListener('keydown', this._handleKeyDown);
|
|
11
40
|
}
|
|
12
41
|
activate() {
|
|
13
42
|
this.active = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -22,29 +22,6 @@ class SentinelFocusTrapStrategy extends focus_trap_strategy.FocusTrapStrategy {
|
|
|
22
22
|
super(getContainer);
|
|
23
23
|
_SentinelFocusTrapStrategy_sentinelStart.set(this, void 0);
|
|
24
24
|
_SentinelFocusTrapStrategy_sentinelEnd.set(this, void 0);
|
|
25
|
-
this._handleKeyUp = (ev) => {
|
|
26
|
-
if (!this.active || ev.code !== 'Tab')
|
|
27
|
-
return;
|
|
28
|
-
const container = this.getContainer();
|
|
29
|
-
if (!container)
|
|
30
|
-
return;
|
|
31
|
-
const focusableElements = this.getFocusableElements(container);
|
|
32
|
-
if (focusableElements.length === 0)
|
|
33
|
-
return;
|
|
34
|
-
const $target = ev.target;
|
|
35
|
-
if (ev.shiftKey) {
|
|
36
|
-
if ($target === focusableElements[0]) {
|
|
37
|
-
ev.preventDefault();
|
|
38
|
-
focusableElements[focusableElements.length - 1].focus();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
if ($target === focusableElements[focusableElements.length - 1]) {
|
|
43
|
-
ev.preventDefault();
|
|
44
|
-
focusableElements[0].focus();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
25
|
this.noAutofocus = noAutofocus;
|
|
49
26
|
}
|
|
50
27
|
/** Call once in firstUpdated with the two bookend sentinel elements. */
|
|
@@ -69,12 +46,6 @@ class SentinelFocusTrapStrategy extends focus_trap_strategy.FocusTrapStrategy {
|
|
|
69
46
|
}
|
|
70
47
|
});
|
|
71
48
|
}
|
|
72
|
-
attach() {
|
|
73
|
-
document.addEventListener('keydown', this._handleKeyUp);
|
|
74
|
-
}
|
|
75
|
-
detach() {
|
|
76
|
-
document.removeEventListener('keydown', this._handleKeyUp);
|
|
77
|
-
}
|
|
78
49
|
activate() {
|
|
79
50
|
this.active = true;
|
|
80
51
|
if (!this.noAutofocus) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -64,12 +64,6 @@ class TogglerFocusTrapStrategy extends focus_trap_strategy.FocusTrapStrategy {
|
|
|
64
64
|
};
|
|
65
65
|
tslib_es6.__classPrivateFieldSet(this, _TogglerFocusTrapStrategy_getToggler, getToggler, "f");
|
|
66
66
|
}
|
|
67
|
-
attach() {
|
|
68
|
-
document.addEventListener('keydown', this._handleKeyDown);
|
|
69
|
-
}
|
|
70
|
-
detach() {
|
|
71
|
-
document.removeEventListener('keydown', this._handleKeyDown);
|
|
72
|
-
}
|
|
73
67
|
}
|
|
74
68
|
_TogglerFocusTrapStrategy_getToggler = new WeakMap();
|
|
75
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -15,7 +15,4 @@ export declare type TCyclicFocusTrapStrategyProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class CyclicFocusTrapStrategy extends FocusTrapStrategy implements ICyclicFocusTrapStrategy {
|
|
17
17
|
constructor({ getContainer }: TCyclicFocusTrapStrategyProps);
|
|
18
|
-
attach(): void;
|
|
19
|
-
detach(): void;
|
|
20
|
-
private _handleKeyDown;
|
|
21
18
|
}
|
|
@@ -13,35 +13,6 @@ import { FocusTrapStrategy } from './focus_trap_strategy.js';
|
|
|
13
13
|
class CyclicFocusTrapStrategy extends FocusTrapStrategy {
|
|
14
14
|
constructor({ getContainer }) {
|
|
15
15
|
super(getContainer);
|
|
16
|
-
this._handleKeyDown = (ev) => {
|
|
17
|
-
if (!this.active || ev.code !== 'Tab')
|
|
18
|
-
return;
|
|
19
|
-
const container = this.getContainer();
|
|
20
|
-
if (!container)
|
|
21
|
-
return;
|
|
22
|
-
const focusableElements = this.getFocusableElements(container);
|
|
23
|
-
if (focusableElements.length === 0)
|
|
24
|
-
return;
|
|
25
|
-
const $target = ev.target;
|
|
26
|
-
if (ev.shiftKey) {
|
|
27
|
-
if ($target === focusableElements[0]) {
|
|
28
|
-
ev.preventDefault();
|
|
29
|
-
focusableElements[focusableElements.length - 1].focus();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
if ($target === focusableElements[focusableElements.length - 1]) {
|
|
34
|
-
ev.preventDefault();
|
|
35
|
-
focusableElements[0].focus();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
attach() {
|
|
41
|
-
document.addEventListener('keydown', this._handleKeyDown);
|
|
42
|
-
}
|
|
43
|
-
detach() {
|
|
44
|
-
document.removeEventListener('keydown', this._handleKeyDown);
|
|
45
16
|
}
|
|
46
17
|
}
|
|
47
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -3,10 +3,11 @@ export declare abstract class FocusTrapStrategy implements IFocusTrapStrategy {
|
|
|
3
3
|
protected readonly getContainer: () => HTMLElement | undefined;
|
|
4
4
|
protected active: boolean;
|
|
5
5
|
constructor(getContainer: () => HTMLElement | undefined);
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
attach(): void;
|
|
7
|
+
detach(): void;
|
|
8
8
|
activate(): void;
|
|
9
9
|
deactivate(): void;
|
|
10
10
|
getFocusableElements(container: HTMLElement): HTMLElement[];
|
|
11
|
+
protected _handleKeyDown: (ev: KeyboardEvent) => void;
|
|
11
12
|
private _isElementTrulyFocusable;
|
|
12
13
|
}
|
|
@@ -4,6 +4,35 @@ class FocusTrapStrategy {
|
|
|
4
4
|
constructor(getContainer) {
|
|
5
5
|
this.getContainer = getContainer;
|
|
6
6
|
this.active = false;
|
|
7
|
+
this._handleKeyDown = (ev) => {
|
|
8
|
+
if (!this.active || ev.code !== 'Tab')
|
|
9
|
+
return;
|
|
10
|
+
const container = this.getContainer();
|
|
11
|
+
if (!container)
|
|
12
|
+
return;
|
|
13
|
+
const focusableElements = this.getFocusableElements(container);
|
|
14
|
+
if (focusableElements.length === 0)
|
|
15
|
+
return;
|
|
16
|
+
const $target = ev.target;
|
|
17
|
+
if (ev.shiftKey) {
|
|
18
|
+
if ($target === focusableElements[0]) {
|
|
19
|
+
ev.preventDefault();
|
|
20
|
+
focusableElements[focusableElements.length - 1].focus();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
if ($target === focusableElements[focusableElements.length - 1]) {
|
|
25
|
+
ev.preventDefault();
|
|
26
|
+
focusableElements[0].focus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
attach() {
|
|
32
|
+
document.addEventListener('keydown', this._handleKeyDown);
|
|
33
|
+
}
|
|
34
|
+
detach() {
|
|
35
|
+
document.removeEventListener('keydown', this._handleKeyDown);
|
|
7
36
|
}
|
|
8
37
|
activate() {
|
|
9
38
|
this.active = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -18,29 +18,6 @@ class SentinelFocusTrapStrategy extends FocusTrapStrategy {
|
|
|
18
18
|
super(getContainer);
|
|
19
19
|
_SentinelFocusTrapStrategy_sentinelStart.set(this, void 0);
|
|
20
20
|
_SentinelFocusTrapStrategy_sentinelEnd.set(this, void 0);
|
|
21
|
-
this._handleKeyUp = (ev) => {
|
|
22
|
-
if (!this.active || ev.code !== 'Tab')
|
|
23
|
-
return;
|
|
24
|
-
const container = this.getContainer();
|
|
25
|
-
if (!container)
|
|
26
|
-
return;
|
|
27
|
-
const focusableElements = this.getFocusableElements(container);
|
|
28
|
-
if (focusableElements.length === 0)
|
|
29
|
-
return;
|
|
30
|
-
const $target = ev.target;
|
|
31
|
-
if (ev.shiftKey) {
|
|
32
|
-
if ($target === focusableElements[0]) {
|
|
33
|
-
ev.preventDefault();
|
|
34
|
-
focusableElements[focusableElements.length - 1].focus();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
if ($target === focusableElements[focusableElements.length - 1]) {
|
|
39
|
-
ev.preventDefault();
|
|
40
|
-
focusableElements[0].focus();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
21
|
this.noAutofocus = noAutofocus;
|
|
45
22
|
}
|
|
46
23
|
/** Call once in firstUpdated with the two bookend sentinel elements. */
|
|
@@ -65,12 +42,6 @@ class SentinelFocusTrapStrategy extends FocusTrapStrategy {
|
|
|
65
42
|
}
|
|
66
43
|
});
|
|
67
44
|
}
|
|
68
|
-
attach() {
|
|
69
|
-
document.addEventListener('keydown', this._handleKeyUp);
|
|
70
|
-
}
|
|
71
|
-
detach() {
|
|
72
|
-
document.removeEventListener('keydown', this._handleKeyUp);
|
|
73
|
-
}
|
|
74
45
|
activate() {
|
|
75
46
|
this.active = true;
|
|
76
47
|
if (!this.noAutofocus) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,+CAAmD;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,+CAAmD;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -16,7 +16,5 @@ export declare type TTogglerFocusTrapStrategyProps = {
|
|
|
16
16
|
export declare class TogglerFocusTrapStrategy extends FocusTrapStrategy implements ITogglerFocusTrapStrategy {
|
|
17
17
|
#private;
|
|
18
18
|
constructor({ getContainer, getToggler }: TTogglerFocusTrapStrategyProps);
|
|
19
|
-
|
|
20
|
-
detach(): void;
|
|
21
|
-
private _handleKeyDown;
|
|
19
|
+
protected _handleKeyDown: (ev: KeyboardEvent) => void;
|
|
22
20
|
}
|
|
@@ -60,12 +60,6 @@ class TogglerFocusTrapStrategy extends FocusTrapStrategy {
|
|
|
60
60
|
};
|
|
61
61
|
__classPrivateFieldSet(this, _TogglerFocusTrapStrategy_getToggler, getToggler, "f");
|
|
62
62
|
}
|
|
63
|
-
attach() {
|
|
64
|
-
document.addEventListener('keydown', this._handleKeyDown);
|
|
65
|
-
}
|
|
66
|
-
detach() {
|
|
67
|
-
document.removeEventListener('keydown', this._handleKeyDown);
|
|
68
|
-
}
|
|
69
63
|
}
|
|
70
64
|
_TogglerFocusTrapStrategy_getToggler = new WeakMap();
|
|
71
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,+CAAmD;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,+CAAmD;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|