drab 7.0.2 → 8.0.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.
- package/dist/base/index.d.ts +122 -48
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +10 -7
- package/dist/contextmenu/index.d.ts +90 -35
- package/dist/contextmenu/index.d.ts.map +1 -1
- package/dist/define.d.ts +0 -1
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +0 -1
- package/dist/editor/index.d.ts +90 -35
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/fullscreen/index.d.ts +90 -36
- package/dist/fullscreen/index.d.ts.map +1 -1
- package/dist/fullscreen/index.js +3 -14
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/intersect/index.d.ts +90 -36
- package/dist/intersect/index.d.ts.map +1 -1
- package/dist/intersect/index.js +1 -11
- package/dist/prefetch/index.d.ts +62 -25
- package/dist/prefetch/index.d.ts.map +1 -1
- package/dist/prefetch/index.js +17 -30
- package/dist/share/index.d.ts +120 -47
- package/dist/share/index.d.ts.map +1 -1
- package/dist/tablesort/index.d.ts +120 -47
- package/dist/tablesort/index.d.ts.map +1 -1
- package/dist/tablesort/index.js +54 -54
- package/dist/tabs/index.d.ts +61 -24
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +10 -2
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/util/validate.d.ts.map +1 -1
- package/dist/util/validate.js +2 -1
- package/dist/wakelock/index.d.ts +120 -47
- package/dist/wakelock/index.d.ts.map +1 -1
- package/dist/wakelock/index.js +1 -2
- package/package.json +4 -4
- package/src/base/index.ts +10 -7
- package/src/contextmenu/index.ts +2 -3
- package/src/define.ts +0 -1
- package/src/editor/index.ts +1 -2
- package/src/fullscreen/index.ts +6 -18
- package/src/index.ts +0 -1
- package/src/intersect/index.ts +2 -14
- package/src/prefetch/index.ts +21 -36
- package/src/tablesort/index.ts +64 -63
- package/src/tabs/index.ts +16 -2
- package/src/types/index.ts +0 -2
- package/src/util/validate.ts +2 -1
- package/src/wakelock/index.ts +2 -5
- package/dist/dialog/define.d.ts +0 -2
- package/dist/dialog/define.d.ts.map +0 -1
- package/dist/dialog/define.js +0 -3
- package/dist/dialog/index.d.ts +0 -1079
- package/dist/dialog/index.d.ts.map +0 -1
- package/dist/dialog/index.js +0 -90
- package/src/dialog/define.ts +0 -4
- package/src/dialog/index.ts +0 -120
|
@@ -3,7 +3,7 @@ export interface FullscreenAttributes extends TriggerAttributes, ContentAttribut
|
|
|
3
3
|
}
|
|
4
4
|
declare const Fullscreen_base: {
|
|
5
5
|
new (...args: any[]): {
|
|
6
|
-
|
|
6
|
+
controller: AbortController;
|
|
7
7
|
safeListener<T extends keyof HTMLElementEventMap>(type: T, listener: (this: HTMLElement, event: HTMLElementEventMap[T]) => any, element?: HTMLElement, options?: AddEventListenerOptions): void;
|
|
8
8
|
safeListener<T extends keyof DocumentEventMap>(type: T, listener: (this: Document, event: DocumentEventMap[T]) => any, document: Document, options?: AddEventListenerOptions): void;
|
|
9
9
|
safeListener<T extends keyof WindowEventMap>(type: T, listener: (this: Window, event: WindowEventMap[T]) => any, window: Window, options?: AddEventListenerOptions): void;
|
|
@@ -14,9 +14,10 @@ declare const Fullscreen_base: {
|
|
|
14
14
|
accessKey: string;
|
|
15
15
|
readonly accessKeyLabel: string;
|
|
16
16
|
autocapitalize: string;
|
|
17
|
+
autocorrect: boolean;
|
|
17
18
|
dir: string;
|
|
18
19
|
draggable: boolean;
|
|
19
|
-
hidden: boolean;
|
|
20
|
+
hidden: boolean | "until-found";
|
|
20
21
|
inert: boolean;
|
|
21
22
|
innerText: string;
|
|
22
23
|
lang: string;
|
|
@@ -34,8 +35,8 @@ declare const Fullscreen_base: {
|
|
|
34
35
|
attachInternals(): ElementInternals;
|
|
35
36
|
click(): void;
|
|
36
37
|
hidePopover(): void;
|
|
37
|
-
showPopover(): void;
|
|
38
|
-
togglePopover(options?: boolean): boolean;
|
|
38
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
39
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
39
40
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
40
41
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
41
42
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -49,6 +50,7 @@ declare const Fullscreen_base: {
|
|
|
49
50
|
readonly clientTop: number;
|
|
50
51
|
readonly clientWidth: number;
|
|
51
52
|
readonly currentCSSZoom: number;
|
|
53
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
52
54
|
id: string;
|
|
53
55
|
innerHTML: string;
|
|
54
56
|
readonly localName: string;
|
|
@@ -99,6 +101,9 @@ declare const Fullscreen_base: {
|
|
|
99
101
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
100
102
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
101
103
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
104
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
105
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
106
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
102
107
|
matches(selectors: string): boolean;
|
|
103
108
|
releasePointerCapture(pointerId: number): void;
|
|
104
109
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -121,6 +126,8 @@ declare const Fullscreen_base: {
|
|
|
121
126
|
setPointerCapture(pointerId: number): void;
|
|
122
127
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
123
128
|
webkitMatchesSelector(selectors: string): boolean;
|
|
129
|
+
get textContent(): string;
|
|
130
|
+
set textContent(value: string | null);
|
|
124
131
|
readonly baseURI: string;
|
|
125
132
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
126
133
|
readonly firstChild: ChildNode | null;
|
|
@@ -133,7 +140,6 @@ declare const Fullscreen_base: {
|
|
|
133
140
|
readonly parentElement: HTMLElement | null;
|
|
134
141
|
readonly parentNode: ParentNode | null;
|
|
135
142
|
readonly previousSibling: ChildNode | null;
|
|
136
|
-
textContent: string | null;
|
|
137
143
|
appendChild<T extends Node>(node: T): T;
|
|
138
144
|
cloneNode(subtree?: boolean): Node;
|
|
139
145
|
compareDocumentPosition(other: Node): number;
|
|
@@ -168,6 +174,7 @@ declare const Fullscreen_base: {
|
|
|
168
174
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
169
175
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
170
176
|
dispatchEvent(event: Event): boolean;
|
|
177
|
+
ariaActiveDescendantElement: Element | null;
|
|
171
178
|
ariaAtomic: string | null;
|
|
172
179
|
ariaAutoComplete: string | null;
|
|
173
180
|
ariaBrailleLabel: string | null;
|
|
@@ -178,21 +185,28 @@ declare const Fullscreen_base: {
|
|
|
178
185
|
ariaColIndex: string | null;
|
|
179
186
|
ariaColIndexText: string | null;
|
|
180
187
|
ariaColSpan: string | null;
|
|
188
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
181
189
|
ariaCurrent: string | null;
|
|
190
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
182
191
|
ariaDescription: string | null;
|
|
192
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
183
193
|
ariaDisabled: string | null;
|
|
194
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
184
195
|
ariaExpanded: string | null;
|
|
196
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
185
197
|
ariaHasPopup: string | null;
|
|
186
198
|
ariaHidden: string | null;
|
|
187
199
|
ariaInvalid: string | null;
|
|
188
200
|
ariaKeyShortcuts: string | null;
|
|
189
201
|
ariaLabel: string | null;
|
|
202
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
190
203
|
ariaLevel: string | null;
|
|
191
204
|
ariaLive: string | null;
|
|
192
205
|
ariaModal: string | null;
|
|
193
206
|
ariaMultiLine: string | null;
|
|
194
207
|
ariaMultiSelectable: string | null;
|
|
195
208
|
ariaOrientation: string | null;
|
|
209
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
196
210
|
ariaPlaceholder: string | null;
|
|
197
211
|
ariaPosInSet: string | null;
|
|
198
212
|
ariaPressed: string | null;
|
|
@@ -225,6 +239,7 @@ declare const Fullscreen_base: {
|
|
|
225
239
|
readonly firstElementChild: Element | null;
|
|
226
240
|
readonly lastElementChild: Element | null;
|
|
227
241
|
append(...nodes: (Node | string)[]): void;
|
|
242
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
228
243
|
prepend(...nodes: (Node | string)[]): void;
|
|
229
244
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
230
245
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -250,18 +265,20 @@ declare const Fullscreen_base: {
|
|
|
250
265
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
251
266
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
252
267
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
253
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
268
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
254
269
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
255
|
-
|
|
270
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
271
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
256
272
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
257
273
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
258
274
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
259
275
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
260
276
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
277
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
262
278
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
263
280
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
281
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
265
282
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
283
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
267
284
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -281,7 +298,7 @@ declare const Fullscreen_base: {
|
|
|
281
298
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
282
299
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
283
300
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
284
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
301
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
285
302
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
286
303
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
287
304
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -309,6 +326,7 @@ declare const Fullscreen_base: {
|
|
|
309
326
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
327
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
311
328
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
329
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
312
330
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
313
331
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
314
332
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -327,7 +345,7 @@ declare const Fullscreen_base: {
|
|
|
327
345
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
328
346
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
347
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
348
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
331
349
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
332
350
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
333
351
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -345,14 +363,15 @@ declare const Fullscreen_base: {
|
|
|
345
363
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
346
364
|
autofocus: boolean;
|
|
347
365
|
readonly dataset: DOMStringMap;
|
|
348
|
-
nonce
|
|
366
|
+
nonce: string;
|
|
349
367
|
tabIndex: number;
|
|
350
368
|
blur(): void;
|
|
351
369
|
focus(options?: FocusOptions): void;
|
|
352
370
|
};
|
|
353
371
|
} & {
|
|
354
372
|
new (...args: any[]): {
|
|
355
|
-
event: keyof HTMLElementEventMap;
|
|
373
|
+
get event(): keyof HTMLElementEventMap;
|
|
374
|
+
set event(value: keyof HTMLElementEventMap);
|
|
356
375
|
triggers<T extends HTMLElement>(instance: import("../base/index.js").Constructor<T>): NodeListOf<T>;
|
|
357
376
|
triggers(): NodeListOf<HTMLElement>;
|
|
358
377
|
listener<T extends keyof HTMLElementEventMap>(listener: (this: HTMLElement, e: HTMLElementEventMap[T]) => any, options?: AddEventListenerOptions): void;
|
|
@@ -360,9 +379,10 @@ declare const Fullscreen_base: {
|
|
|
360
379
|
accessKey: string;
|
|
361
380
|
readonly accessKeyLabel: string;
|
|
362
381
|
autocapitalize: string;
|
|
382
|
+
autocorrect: boolean;
|
|
363
383
|
dir: string;
|
|
364
384
|
draggable: boolean;
|
|
365
|
-
hidden: boolean;
|
|
385
|
+
hidden: boolean | "until-found";
|
|
366
386
|
inert: boolean;
|
|
367
387
|
innerText: string;
|
|
368
388
|
lang: string;
|
|
@@ -380,8 +400,8 @@ declare const Fullscreen_base: {
|
|
|
380
400
|
attachInternals(): ElementInternals;
|
|
381
401
|
click(): void;
|
|
382
402
|
hidePopover(): void;
|
|
383
|
-
showPopover(): void;
|
|
384
|
-
togglePopover(options?: boolean): boolean;
|
|
403
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
404
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
385
405
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
386
406
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
387
407
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -395,6 +415,7 @@ declare const Fullscreen_base: {
|
|
|
395
415
|
readonly clientTop: number;
|
|
396
416
|
readonly clientWidth: number;
|
|
397
417
|
readonly currentCSSZoom: number;
|
|
418
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
398
419
|
id: string;
|
|
399
420
|
innerHTML: string;
|
|
400
421
|
readonly localName: string;
|
|
@@ -445,6 +466,9 @@ declare const Fullscreen_base: {
|
|
|
445
466
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
446
467
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
447
468
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
469
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
470
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
471
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
448
472
|
matches(selectors: string): boolean;
|
|
449
473
|
releasePointerCapture(pointerId: number): void;
|
|
450
474
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -467,6 +491,8 @@ declare const Fullscreen_base: {
|
|
|
467
491
|
setPointerCapture(pointerId: number): void;
|
|
468
492
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
469
493
|
webkitMatchesSelector(selectors: string): boolean;
|
|
494
|
+
get textContent(): string;
|
|
495
|
+
set textContent(value: string | null);
|
|
470
496
|
readonly baseURI: string;
|
|
471
497
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
472
498
|
readonly firstChild: ChildNode | null;
|
|
@@ -479,7 +505,6 @@ declare const Fullscreen_base: {
|
|
|
479
505
|
readonly parentElement: HTMLElement | null;
|
|
480
506
|
readonly parentNode: ParentNode | null;
|
|
481
507
|
readonly previousSibling: ChildNode | null;
|
|
482
|
-
textContent: string | null;
|
|
483
508
|
appendChild<T extends Node>(node: T): T;
|
|
484
509
|
cloneNode(subtree?: boolean): Node;
|
|
485
510
|
compareDocumentPosition(other: Node): number;
|
|
@@ -514,6 +539,7 @@ declare const Fullscreen_base: {
|
|
|
514
539
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
515
540
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
516
541
|
dispatchEvent(event: Event): boolean;
|
|
542
|
+
ariaActiveDescendantElement: Element | null;
|
|
517
543
|
ariaAtomic: string | null;
|
|
518
544
|
ariaAutoComplete: string | null;
|
|
519
545
|
ariaBrailleLabel: string | null;
|
|
@@ -524,21 +550,28 @@ declare const Fullscreen_base: {
|
|
|
524
550
|
ariaColIndex: string | null;
|
|
525
551
|
ariaColIndexText: string | null;
|
|
526
552
|
ariaColSpan: string | null;
|
|
553
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
527
554
|
ariaCurrent: string | null;
|
|
555
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
528
556
|
ariaDescription: string | null;
|
|
557
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
529
558
|
ariaDisabled: string | null;
|
|
559
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
530
560
|
ariaExpanded: string | null;
|
|
561
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
531
562
|
ariaHasPopup: string | null;
|
|
532
563
|
ariaHidden: string | null;
|
|
533
564
|
ariaInvalid: string | null;
|
|
534
565
|
ariaKeyShortcuts: string | null;
|
|
535
566
|
ariaLabel: string | null;
|
|
567
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
536
568
|
ariaLevel: string | null;
|
|
537
569
|
ariaLive: string | null;
|
|
538
570
|
ariaModal: string | null;
|
|
539
571
|
ariaMultiLine: string | null;
|
|
540
572
|
ariaMultiSelectable: string | null;
|
|
541
573
|
ariaOrientation: string | null;
|
|
574
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
542
575
|
ariaPlaceholder: string | null;
|
|
543
576
|
ariaPosInSet: string | null;
|
|
544
577
|
ariaPressed: string | null;
|
|
@@ -571,6 +604,7 @@ declare const Fullscreen_base: {
|
|
|
571
604
|
readonly firstElementChild: Element | null;
|
|
572
605
|
readonly lastElementChild: Element | null;
|
|
573
606
|
append(...nodes: (Node | string)[]): void;
|
|
607
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
574
608
|
prepend(...nodes: (Node | string)[]): void;
|
|
575
609
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
576
610
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -596,18 +630,20 @@ declare const Fullscreen_base: {
|
|
|
596
630
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
597
631
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
598
632
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
599
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
633
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
600
634
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
601
|
-
|
|
635
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
636
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
602
637
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
603
638
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
604
639
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
605
640
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
606
641
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
607
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
642
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
608
643
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
644
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
609
645
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
610
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
646
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
611
647
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
612
648
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
613
649
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -627,7 +663,7 @@ declare const Fullscreen_base: {
|
|
|
627
663
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
628
664
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
629
665
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
630
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
666
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
631
667
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
632
668
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
633
669
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -655,6 +691,7 @@ declare const Fullscreen_base: {
|
|
|
655
691
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
656
692
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
657
693
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
694
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
658
695
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
659
696
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
660
697
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -673,7 +710,7 @@ declare const Fullscreen_base: {
|
|
|
673
710
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
674
711
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
675
712
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
676
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
713
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
677
714
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
678
715
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
679
716
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -691,7 +728,7 @@ declare const Fullscreen_base: {
|
|
|
691
728
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
692
729
|
autofocus: boolean;
|
|
693
730
|
readonly dataset: DOMStringMap;
|
|
694
|
-
nonce
|
|
731
|
+
nonce: string;
|
|
695
732
|
tabIndex: number;
|
|
696
733
|
blur(): void;
|
|
697
734
|
focus(options?: FocusOptions): void;
|
|
@@ -704,9 +741,10 @@ declare const Fullscreen_base: {
|
|
|
704
741
|
accessKey: string;
|
|
705
742
|
readonly accessKeyLabel: string;
|
|
706
743
|
autocapitalize: string;
|
|
744
|
+
autocorrect: boolean;
|
|
707
745
|
dir: string;
|
|
708
746
|
draggable: boolean;
|
|
709
|
-
hidden: boolean;
|
|
747
|
+
hidden: boolean | "until-found";
|
|
710
748
|
inert: boolean;
|
|
711
749
|
innerText: string;
|
|
712
750
|
lang: string;
|
|
@@ -724,8 +762,8 @@ declare const Fullscreen_base: {
|
|
|
724
762
|
attachInternals(): ElementInternals;
|
|
725
763
|
click(): void;
|
|
726
764
|
hidePopover(): void;
|
|
727
|
-
showPopover(): void;
|
|
728
|
-
togglePopover(options?: boolean): boolean;
|
|
765
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
766
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
729
767
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
730
768
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
731
769
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -739,6 +777,7 @@ declare const Fullscreen_base: {
|
|
|
739
777
|
readonly clientTop: number;
|
|
740
778
|
readonly clientWidth: number;
|
|
741
779
|
readonly currentCSSZoom: number;
|
|
780
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
742
781
|
id: string;
|
|
743
782
|
innerHTML: string;
|
|
744
783
|
readonly localName: string;
|
|
@@ -789,6 +828,9 @@ declare const Fullscreen_base: {
|
|
|
789
828
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
790
829
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
791
830
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
831
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
832
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
833
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
792
834
|
matches(selectors: string): boolean;
|
|
793
835
|
releasePointerCapture(pointerId: number): void;
|
|
794
836
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -811,6 +853,8 @@ declare const Fullscreen_base: {
|
|
|
811
853
|
setPointerCapture(pointerId: number): void;
|
|
812
854
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
813
855
|
webkitMatchesSelector(selectors: string): boolean;
|
|
856
|
+
get textContent(): string;
|
|
857
|
+
set textContent(value: string | null);
|
|
814
858
|
readonly baseURI: string;
|
|
815
859
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
816
860
|
readonly firstChild: ChildNode | null;
|
|
@@ -823,7 +867,6 @@ declare const Fullscreen_base: {
|
|
|
823
867
|
readonly parentElement: HTMLElement | null;
|
|
824
868
|
readonly parentNode: ParentNode | null;
|
|
825
869
|
readonly previousSibling: ChildNode | null;
|
|
826
|
-
textContent: string | null;
|
|
827
870
|
appendChild<T extends Node>(node: T): T;
|
|
828
871
|
cloneNode(subtree?: boolean): Node;
|
|
829
872
|
compareDocumentPosition(other: Node): number;
|
|
@@ -858,6 +901,7 @@ declare const Fullscreen_base: {
|
|
|
858
901
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
859
902
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
860
903
|
dispatchEvent(event: Event): boolean;
|
|
904
|
+
ariaActiveDescendantElement: Element | null;
|
|
861
905
|
ariaAtomic: string | null;
|
|
862
906
|
ariaAutoComplete: string | null;
|
|
863
907
|
ariaBrailleLabel: string | null;
|
|
@@ -868,21 +912,28 @@ declare const Fullscreen_base: {
|
|
|
868
912
|
ariaColIndex: string | null;
|
|
869
913
|
ariaColIndexText: string | null;
|
|
870
914
|
ariaColSpan: string | null;
|
|
915
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
871
916
|
ariaCurrent: string | null;
|
|
917
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
872
918
|
ariaDescription: string | null;
|
|
919
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
873
920
|
ariaDisabled: string | null;
|
|
921
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
874
922
|
ariaExpanded: string | null;
|
|
923
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
875
924
|
ariaHasPopup: string | null;
|
|
876
925
|
ariaHidden: string | null;
|
|
877
926
|
ariaInvalid: string | null;
|
|
878
927
|
ariaKeyShortcuts: string | null;
|
|
879
928
|
ariaLabel: string | null;
|
|
929
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
880
930
|
ariaLevel: string | null;
|
|
881
931
|
ariaLive: string | null;
|
|
882
932
|
ariaModal: string | null;
|
|
883
933
|
ariaMultiLine: string | null;
|
|
884
934
|
ariaMultiSelectable: string | null;
|
|
885
935
|
ariaOrientation: string | null;
|
|
936
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
886
937
|
ariaPlaceholder: string | null;
|
|
887
938
|
ariaPosInSet: string | null;
|
|
888
939
|
ariaPressed: string | null;
|
|
@@ -915,6 +966,7 @@ declare const Fullscreen_base: {
|
|
|
915
966
|
readonly firstElementChild: Element | null;
|
|
916
967
|
readonly lastElementChild: Element | null;
|
|
917
968
|
append(...nodes: (Node | string)[]): void;
|
|
969
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
918
970
|
prepend(...nodes: (Node | string)[]): void;
|
|
919
971
|
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
920
972
|
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
@@ -940,18 +992,20 @@ declare const Fullscreen_base: {
|
|
|
940
992
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
941
993
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
942
994
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
943
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
995
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
944
996
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
945
|
-
|
|
997
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
998
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
946
999
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
947
1000
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
948
1001
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
949
1002
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
950
1003
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
951
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
1004
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
952
1005
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1006
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
953
1007
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
954
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
1008
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
955
1009
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
956
1010
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
957
1011
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -971,7 +1025,7 @@ declare const Fullscreen_base: {
|
|
|
971
1025
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
972
1026
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
973
1027
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
974
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
1028
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
975
1029
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
976
1030
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
977
1031
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -999,6 +1053,7 @@ declare const Fullscreen_base: {
|
|
|
999
1053
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1000
1054
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1001
1055
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1056
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1002
1057
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1003
1058
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
1004
1059
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1017,7 +1072,7 @@ declare const Fullscreen_base: {
|
|
|
1017
1072
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
1018
1073
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1019
1074
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1020
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
1075
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
1021
1076
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1022
1077
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1023
1078
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -1035,7 +1090,7 @@ declare const Fullscreen_base: {
|
|
|
1035
1090
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1036
1091
|
autofocus: boolean;
|
|
1037
1092
|
readonly dataset: DOMStringMap;
|
|
1038
|
-
nonce
|
|
1093
|
+
nonce: string;
|
|
1039
1094
|
tabIndex: number;
|
|
1040
1095
|
blur(): void;
|
|
1041
1096
|
focus(options?: FocusOptions): void;
|
|
@@ -1047,7 +1102,6 @@ declare const Fullscreen_base: {
|
|
|
1047
1102
|
* Disables the `trigger` if fullscreen is not supported.
|
|
1048
1103
|
*/
|
|
1049
1104
|
export declare class Fullscreen extends Fullscreen_base {
|
|
1050
|
-
#private;
|
|
1051
1105
|
constructor();
|
|
1052
1106
|
/** Enables or disables fullscreen mode based on the current state. */
|
|
1053
1107
|
toggle(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fullscreen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EAGtB,KAAK,iBAAiB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,oBAChB,SAAQ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fullscreen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EAGtB,KAAK,iBAAiB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,oBAChB,SAAQ,iBAAiB,EAAE,iBAAiB;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhD;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,eAA6B;;IAK5D,sEAAsE;IACtE,MAAM;IAYG,KAAK;CAYd"}
|
package/dist/fullscreen/index.js
CHANGED
|
@@ -8,21 +8,9 @@ export class Fullscreen extends Lifecycle(Trigger(Content())) {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* @returns `true` if fullscreen is currently enabled.
|
|
13
|
-
*/
|
|
14
|
-
#isFullscreen() {
|
|
15
|
-
return document.fullscreenElement !== null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @returns `true` if fullscreen is supported.
|
|
19
|
-
*/
|
|
20
|
-
#fullscreenSupported() {
|
|
21
|
-
return "requestFullscreen" in document.documentElement;
|
|
22
|
-
}
|
|
23
11
|
/** Enables or disables fullscreen mode based on the current state. */
|
|
24
12
|
toggle() {
|
|
25
|
-
if (
|
|
13
|
+
if (document.fullscreenElement !== null) {
|
|
26
14
|
document.exitFullscreen();
|
|
27
15
|
}
|
|
28
16
|
else {
|
|
@@ -37,7 +25,8 @@ export class Fullscreen extends Lifecycle(Trigger(Content())) {
|
|
|
37
25
|
mount() {
|
|
38
26
|
this.listener(() => this.toggle());
|
|
39
27
|
for (const trigger of this.triggers()) {
|
|
40
|
-
if (!
|
|
28
|
+
if (!("requestFullscreen" in document.documentElement) &&
|
|
29
|
+
"disabled" in trigger) {
|
|
41
30
|
trigger.disabled = true;
|
|
42
31
|
}
|
|
43
32
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|