drab 7.0.3 → 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.
Files changed (59) hide show
  1. package/dist/base/index.d.ts +122 -48
  2. package/dist/base/index.d.ts.map +1 -1
  3. package/dist/base/index.js +10 -7
  4. package/dist/contextmenu/index.d.ts +90 -35
  5. package/dist/contextmenu/index.d.ts.map +1 -1
  6. package/dist/define.d.ts +0 -1
  7. package/dist/define.d.ts.map +1 -1
  8. package/dist/define.js +0 -1
  9. package/dist/editor/index.d.ts +90 -35
  10. package/dist/editor/index.d.ts.map +1 -1
  11. package/dist/fullscreen/index.d.ts +90 -36
  12. package/dist/fullscreen/index.d.ts.map +1 -1
  13. package/dist/fullscreen/index.js +3 -14
  14. package/dist/index.d.ts +0 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +0 -1
  17. package/dist/intersect/index.d.ts +90 -36
  18. package/dist/intersect/index.d.ts.map +1 -1
  19. package/dist/intersect/index.js +1 -11
  20. package/dist/prefetch/index.d.ts +62 -25
  21. package/dist/prefetch/index.d.ts.map +1 -1
  22. package/dist/prefetch/index.js +17 -30
  23. package/dist/share/index.d.ts +120 -47
  24. package/dist/share/index.d.ts.map +1 -1
  25. package/dist/tablesort/index.d.ts +120 -47
  26. package/dist/tablesort/index.d.ts.map +1 -1
  27. package/dist/tablesort/index.js +54 -54
  28. package/dist/tabs/index.d.ts +61 -24
  29. package/dist/tabs/index.d.ts.map +1 -1
  30. package/dist/tabs/index.js +10 -2
  31. package/dist/types/index.d.ts +0 -2
  32. package/dist/types/index.d.ts.map +1 -1
  33. package/dist/util/validate.d.ts.map +1 -1
  34. package/dist/util/validate.js +2 -1
  35. package/dist/wakelock/index.d.ts +120 -47
  36. package/dist/wakelock/index.d.ts.map +1 -1
  37. package/dist/wakelock/index.js +1 -2
  38. package/package.json +4 -4
  39. package/src/base/index.ts +10 -7
  40. package/src/contextmenu/index.ts +2 -3
  41. package/src/define.ts +0 -1
  42. package/src/editor/index.ts +1 -2
  43. package/src/fullscreen/index.ts +6 -18
  44. package/src/index.ts +0 -1
  45. package/src/intersect/index.ts +2 -14
  46. package/src/prefetch/index.ts +21 -36
  47. package/src/tablesort/index.ts +64 -63
  48. package/src/tabs/index.ts +11 -2
  49. package/src/types/index.ts +0 -2
  50. package/src/util/validate.ts +2 -1
  51. package/src/wakelock/index.ts +2 -5
  52. package/dist/dialog/define.d.ts +0 -2
  53. package/dist/dialog/define.d.ts.map +0 -1
  54. package/dist/dialog/define.js +0 -3
  55. package/dist/dialog/index.d.ts +0 -1079
  56. package/dist/dialog/index.d.ts.map +0 -1
  57. package/dist/dialog/index.js +0 -90
  58. package/src/dialog/define.ts +0 -4
  59. package/src/dialog/index.ts +0 -120
@@ -5,7 +5,7 @@ export interface IntersectAttributes extends TriggerAttributes, ContentAttribute
5
5
  }
6
6
  declare const Intersect_base: {
7
7
  new (...args: any[]): {
8
- "__#1@#listenerController": AbortController;
8
+ controller: AbortController;
9
9
  safeListener<T extends keyof HTMLElementEventMap>(type: T, listener: (this: HTMLElement, event: HTMLElementEventMap[T]) => any, element?: HTMLElement, options?: AddEventListenerOptions): void;
10
10
  safeListener<T extends keyof DocumentEventMap>(type: T, listener: (this: Document, event: DocumentEventMap[T]) => any, document: Document, options?: AddEventListenerOptions): void;
11
11
  safeListener<T extends keyof WindowEventMap>(type: T, listener: (this: Window, event: WindowEventMap[T]) => any, window: Window, options?: AddEventListenerOptions): void;
@@ -16,9 +16,10 @@ declare const Intersect_base: {
16
16
  accessKey: string;
17
17
  readonly accessKeyLabel: string;
18
18
  autocapitalize: string;
19
+ autocorrect: boolean;
19
20
  dir: string;
20
21
  draggable: boolean;
21
- hidden: boolean;
22
+ hidden: boolean | "until-found";
22
23
  inert: boolean;
23
24
  innerText: string;
24
25
  lang: string;
@@ -36,8 +37,8 @@ declare const Intersect_base: {
36
37
  attachInternals(): ElementInternals;
37
38
  click(): void;
38
39
  hidePopover(): void;
39
- showPopover(): void;
40
- togglePopover(options?: boolean): boolean;
40
+ showPopover(options?: ShowPopoverOptions): void;
41
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
41
42
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
42
43
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
43
44
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -51,6 +52,7 @@ declare const Intersect_base: {
51
52
  readonly clientTop: number;
52
53
  readonly clientWidth: number;
53
54
  readonly currentCSSZoom: number;
55
+ readonly customElementRegistry: CustomElementRegistry | null;
54
56
  id: string;
55
57
  innerHTML: string;
56
58
  readonly localName: string;
@@ -101,6 +103,9 @@ declare const Intersect_base: {
101
103
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
102
104
  insertAdjacentHTML(position: InsertPosition, string: string): void;
103
105
  insertAdjacentText(where: InsertPosition, data: string): void;
106
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
107
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
108
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
104
109
  matches(selectors: string): boolean;
105
110
  releasePointerCapture(pointerId: number): void;
106
111
  removeAttribute(qualifiedName: string): void;
@@ -123,6 +128,8 @@ declare const Intersect_base: {
123
128
  setPointerCapture(pointerId: number): void;
124
129
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
125
130
  webkitMatchesSelector(selectors: string): boolean;
131
+ get textContent(): string;
132
+ set textContent(value: string | null);
126
133
  readonly baseURI: string;
127
134
  readonly childNodes: NodeListOf<ChildNode>;
128
135
  readonly firstChild: ChildNode | null;
@@ -135,7 +142,6 @@ declare const Intersect_base: {
135
142
  readonly parentElement: HTMLElement | null;
136
143
  readonly parentNode: ParentNode | null;
137
144
  readonly previousSibling: ChildNode | null;
138
- textContent: string | null;
139
145
  appendChild<T extends Node>(node: T): T;
140
146
  cloneNode(subtree?: boolean): Node;
141
147
  compareDocumentPosition(other: Node): number;
@@ -170,6 +176,7 @@ declare const Intersect_base: {
170
176
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
171
177
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
172
178
  dispatchEvent(event: Event): boolean;
179
+ ariaActiveDescendantElement: Element | null;
173
180
  ariaAtomic: string | null;
174
181
  ariaAutoComplete: string | null;
175
182
  ariaBrailleLabel: string | null;
@@ -180,21 +187,28 @@ declare const Intersect_base: {
180
187
  ariaColIndex: string | null;
181
188
  ariaColIndexText: string | null;
182
189
  ariaColSpan: string | null;
190
+ ariaControlsElements: ReadonlyArray<Element> | null;
183
191
  ariaCurrent: string | null;
192
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
184
193
  ariaDescription: string | null;
194
+ ariaDetailsElements: ReadonlyArray<Element> | null;
185
195
  ariaDisabled: string | null;
196
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
186
197
  ariaExpanded: string | null;
198
+ ariaFlowToElements: ReadonlyArray<Element> | null;
187
199
  ariaHasPopup: string | null;
188
200
  ariaHidden: string | null;
189
201
  ariaInvalid: string | null;
190
202
  ariaKeyShortcuts: string | null;
191
203
  ariaLabel: string | null;
204
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
192
205
  ariaLevel: string | null;
193
206
  ariaLive: string | null;
194
207
  ariaModal: string | null;
195
208
  ariaMultiLine: string | null;
196
209
  ariaMultiSelectable: string | null;
197
210
  ariaOrientation: string | null;
211
+ ariaOwnsElements: ReadonlyArray<Element> | null;
198
212
  ariaPlaceholder: string | null;
199
213
  ariaPosInSet: string | null;
200
214
  ariaPressed: string | null;
@@ -227,6 +241,7 @@ declare const Intersect_base: {
227
241
  readonly firstElementChild: Element | null;
228
242
  readonly lastElementChild: Element | null;
229
243
  append(...nodes: (Node | string)[]): void;
244
+ moveBefore(node: Node, child: Node | null): void;
230
245
  prepend(...nodes: (Node | string)[]): void;
231
246
  querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
232
247
  querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
@@ -252,18 +267,20 @@ declare const Intersect_base: {
252
267
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
253
268
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
254
269
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
255
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
270
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
256
271
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
257
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
258
274
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
259
275
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
276
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
261
277
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
278
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
279
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
264
280
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
282
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
266
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
283
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
284
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
268
285
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
269
286
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -283,7 +300,7 @@ declare const Intersect_base: {
283
300
  onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
284
301
  onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
285
302
  ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
286
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
287
304
  oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
305
  onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
289
306
  onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
@@ -311,6 +328,7 @@ declare const Intersect_base: {
311
328
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
312
329
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
313
330
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
331
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
314
332
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
315
333
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
316
334
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -329,7 +347,7 @@ declare const Intersect_base: {
329
347
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
330
348
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
349
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
333
351
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
334
352
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
335
353
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -347,14 +365,15 @@ declare const Intersect_base: {
347
365
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
348
366
  autofocus: boolean;
349
367
  readonly dataset: DOMStringMap;
350
- nonce?: string;
368
+ nonce: string;
351
369
  tabIndex: number;
352
370
  blur(): void;
353
371
  focus(options?: FocusOptions): void;
354
372
  };
355
373
  } & {
356
374
  new (...args: any[]): {
357
- event: keyof HTMLElementEventMap;
375
+ get event(): keyof HTMLElementEventMap;
376
+ set event(value: keyof HTMLElementEventMap);
358
377
  triggers<T extends HTMLElement>(instance: import("../base/index.js").Constructor<T>): NodeListOf<T>;
359
378
  triggers(): NodeListOf<HTMLElement>;
360
379
  listener<T extends keyof HTMLElementEventMap>(listener: (this: HTMLElement, e: HTMLElementEventMap[T]) => any, options?: AddEventListenerOptions): void;
@@ -362,9 +381,10 @@ declare const Intersect_base: {
362
381
  accessKey: string;
363
382
  readonly accessKeyLabel: string;
364
383
  autocapitalize: string;
384
+ autocorrect: boolean;
365
385
  dir: string;
366
386
  draggable: boolean;
367
- hidden: boolean;
387
+ hidden: boolean | "until-found";
368
388
  inert: boolean;
369
389
  innerText: string;
370
390
  lang: string;
@@ -382,8 +402,8 @@ declare const Intersect_base: {
382
402
  attachInternals(): ElementInternals;
383
403
  click(): void;
384
404
  hidePopover(): void;
385
- showPopover(): void;
386
- togglePopover(options?: boolean): boolean;
405
+ showPopover(options?: ShowPopoverOptions): void;
406
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
387
407
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
388
408
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
389
409
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -397,6 +417,7 @@ declare const Intersect_base: {
397
417
  readonly clientTop: number;
398
418
  readonly clientWidth: number;
399
419
  readonly currentCSSZoom: number;
420
+ readonly customElementRegistry: CustomElementRegistry | null;
400
421
  id: string;
401
422
  innerHTML: string;
402
423
  readonly localName: string;
@@ -447,6 +468,9 @@ declare const Intersect_base: {
447
468
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
448
469
  insertAdjacentHTML(position: InsertPosition, string: string): void;
449
470
  insertAdjacentText(where: InsertPosition, data: string): void;
471
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
472
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
473
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
450
474
  matches(selectors: string): boolean;
451
475
  releasePointerCapture(pointerId: number): void;
452
476
  removeAttribute(qualifiedName: string): void;
@@ -469,6 +493,8 @@ declare const Intersect_base: {
469
493
  setPointerCapture(pointerId: number): void;
470
494
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
471
495
  webkitMatchesSelector(selectors: string): boolean;
496
+ get textContent(): string;
497
+ set textContent(value: string | null);
472
498
  readonly baseURI: string;
473
499
  readonly childNodes: NodeListOf<ChildNode>;
474
500
  readonly firstChild: ChildNode | null;
@@ -481,7 +507,6 @@ declare const Intersect_base: {
481
507
  readonly parentElement: HTMLElement | null;
482
508
  readonly parentNode: ParentNode | null;
483
509
  readonly previousSibling: ChildNode | null;
484
- textContent: string | null;
485
510
  appendChild<T extends Node>(node: T): T;
486
511
  cloneNode(subtree?: boolean): Node;
487
512
  compareDocumentPosition(other: Node): number;
@@ -516,6 +541,7 @@ declare const Intersect_base: {
516
541
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
517
542
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
518
543
  dispatchEvent(event: Event): boolean;
544
+ ariaActiveDescendantElement: Element | null;
519
545
  ariaAtomic: string | null;
520
546
  ariaAutoComplete: string | null;
521
547
  ariaBrailleLabel: string | null;
@@ -526,21 +552,28 @@ declare const Intersect_base: {
526
552
  ariaColIndex: string | null;
527
553
  ariaColIndexText: string | null;
528
554
  ariaColSpan: string | null;
555
+ ariaControlsElements: ReadonlyArray<Element> | null;
529
556
  ariaCurrent: string | null;
557
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
530
558
  ariaDescription: string | null;
559
+ ariaDetailsElements: ReadonlyArray<Element> | null;
531
560
  ariaDisabled: string | null;
561
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
532
562
  ariaExpanded: string | null;
563
+ ariaFlowToElements: ReadonlyArray<Element> | null;
533
564
  ariaHasPopup: string | null;
534
565
  ariaHidden: string | null;
535
566
  ariaInvalid: string | null;
536
567
  ariaKeyShortcuts: string | null;
537
568
  ariaLabel: string | null;
569
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
538
570
  ariaLevel: string | null;
539
571
  ariaLive: string | null;
540
572
  ariaModal: string | null;
541
573
  ariaMultiLine: string | null;
542
574
  ariaMultiSelectable: string | null;
543
575
  ariaOrientation: string | null;
576
+ ariaOwnsElements: ReadonlyArray<Element> | null;
544
577
  ariaPlaceholder: string | null;
545
578
  ariaPosInSet: string | null;
546
579
  ariaPressed: string | null;
@@ -573,6 +606,7 @@ declare const Intersect_base: {
573
606
  readonly firstElementChild: Element | null;
574
607
  readonly lastElementChild: Element | null;
575
608
  append(...nodes: (Node | string)[]): void;
609
+ moveBefore(node: Node, child: Node | null): void;
576
610
  prepend(...nodes: (Node | string)[]): void;
577
611
  querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
578
612
  querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
@@ -598,18 +632,20 @@ declare const Intersect_base: {
598
632
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
599
633
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
600
634
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
601
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
635
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
602
636
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
603
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
637
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
638
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
604
639
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
605
640
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
606
641
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
607
642
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
608
643
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
609
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
644
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
610
645
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
646
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
611
647
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
612
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
648
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
613
649
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
614
650
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
615
651
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -629,7 +665,7 @@ declare const Intersect_base: {
629
665
  onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
630
666
  onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
631
667
  ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
632
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
668
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
633
669
  oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
634
670
  onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
635
671
  onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
@@ -657,6 +693,7 @@ declare const Intersect_base: {
657
693
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
658
694
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
659
695
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
696
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
660
697
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
661
698
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
662
699
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -675,7 +712,7 @@ declare const Intersect_base: {
675
712
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
676
713
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
677
714
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
678
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
715
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
679
716
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
680
717
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
681
718
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -693,7 +730,7 @@ declare const Intersect_base: {
693
730
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
694
731
  autofocus: boolean;
695
732
  readonly dataset: DOMStringMap;
696
- nonce?: string;
733
+ nonce: string;
697
734
  tabIndex: number;
698
735
  blur(): void;
699
736
  focus(options?: FocusOptions): void;
@@ -706,9 +743,10 @@ declare const Intersect_base: {
706
743
  accessKey: string;
707
744
  readonly accessKeyLabel: string;
708
745
  autocapitalize: string;
746
+ autocorrect: boolean;
709
747
  dir: string;
710
748
  draggable: boolean;
711
- hidden: boolean;
749
+ hidden: boolean | "until-found";
712
750
  inert: boolean;
713
751
  innerText: string;
714
752
  lang: string;
@@ -726,8 +764,8 @@ declare const Intersect_base: {
726
764
  attachInternals(): ElementInternals;
727
765
  click(): void;
728
766
  hidePopover(): void;
729
- showPopover(): void;
730
- togglePopover(options?: boolean): boolean;
767
+ showPopover(options?: ShowPopoverOptions): void;
768
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
731
769
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
732
770
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
733
771
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -741,6 +779,7 @@ declare const Intersect_base: {
741
779
  readonly clientTop: number;
742
780
  readonly clientWidth: number;
743
781
  readonly currentCSSZoom: number;
782
+ readonly customElementRegistry: CustomElementRegistry | null;
744
783
  id: string;
745
784
  innerHTML: string;
746
785
  readonly localName: string;
@@ -791,6 +830,9 @@ declare const Intersect_base: {
791
830
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
792
831
  insertAdjacentHTML(position: InsertPosition, string: string): void;
793
832
  insertAdjacentText(where: InsertPosition, data: string): void;
833
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
834
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
835
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
794
836
  matches(selectors: string): boolean;
795
837
  releasePointerCapture(pointerId: number): void;
796
838
  removeAttribute(qualifiedName: string): void;
@@ -813,6 +855,8 @@ declare const Intersect_base: {
813
855
  setPointerCapture(pointerId: number): void;
814
856
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
815
857
  webkitMatchesSelector(selectors: string): boolean;
858
+ get textContent(): string;
859
+ set textContent(value: string | null);
816
860
  readonly baseURI: string;
817
861
  readonly childNodes: NodeListOf<ChildNode>;
818
862
  readonly firstChild: ChildNode | null;
@@ -825,7 +869,6 @@ declare const Intersect_base: {
825
869
  readonly parentElement: HTMLElement | null;
826
870
  readonly parentNode: ParentNode | null;
827
871
  readonly previousSibling: ChildNode | null;
828
- textContent: string | null;
829
872
  appendChild<T extends Node>(node: T): T;
830
873
  cloneNode(subtree?: boolean): Node;
831
874
  compareDocumentPosition(other: Node): number;
@@ -860,6 +903,7 @@ declare const Intersect_base: {
860
903
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
861
904
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
862
905
  dispatchEvent(event: Event): boolean;
906
+ ariaActiveDescendantElement: Element | null;
863
907
  ariaAtomic: string | null;
864
908
  ariaAutoComplete: string | null;
865
909
  ariaBrailleLabel: string | null;
@@ -870,21 +914,28 @@ declare const Intersect_base: {
870
914
  ariaColIndex: string | null;
871
915
  ariaColIndexText: string | null;
872
916
  ariaColSpan: string | null;
917
+ ariaControlsElements: ReadonlyArray<Element> | null;
873
918
  ariaCurrent: string | null;
919
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
874
920
  ariaDescription: string | null;
921
+ ariaDetailsElements: ReadonlyArray<Element> | null;
875
922
  ariaDisabled: string | null;
923
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
876
924
  ariaExpanded: string | null;
925
+ ariaFlowToElements: ReadonlyArray<Element> | null;
877
926
  ariaHasPopup: string | null;
878
927
  ariaHidden: string | null;
879
928
  ariaInvalid: string | null;
880
929
  ariaKeyShortcuts: string | null;
881
930
  ariaLabel: string | null;
931
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
882
932
  ariaLevel: string | null;
883
933
  ariaLive: string | null;
884
934
  ariaModal: string | null;
885
935
  ariaMultiLine: string | null;
886
936
  ariaMultiSelectable: string | null;
887
937
  ariaOrientation: string | null;
938
+ ariaOwnsElements: ReadonlyArray<Element> | null;
888
939
  ariaPlaceholder: string | null;
889
940
  ariaPosInSet: string | null;
890
941
  ariaPressed: string | null;
@@ -917,6 +968,7 @@ declare const Intersect_base: {
917
968
  readonly firstElementChild: Element | null;
918
969
  readonly lastElementChild: Element | null;
919
970
  append(...nodes: (Node | string)[]): void;
971
+ moveBefore(node: Node, child: Node | null): void;
920
972
  prepend(...nodes: (Node | string)[]): void;
921
973
  querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
922
974
  querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
@@ -942,18 +994,20 @@ declare const Intersect_base: {
942
994
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
943
995
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
944
996
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
945
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
997
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
946
998
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
947
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
999
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1000
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
948
1001
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
949
1002
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
950
1003
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
951
1004
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
952
1005
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
953
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1006
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
954
1007
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1008
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
955
1009
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
956
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1010
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
957
1011
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
958
1012
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
959
1013
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -973,7 +1027,7 @@ declare const Intersect_base: {
973
1027
  onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
974
1028
  onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
975
1029
  ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
976
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1030
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
977
1031
  oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
978
1032
  onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
979
1033
  onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
@@ -1001,6 +1055,7 @@ declare const Intersect_base: {
1001
1055
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1002
1056
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1003
1057
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1058
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1004
1059
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1005
1060
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
1006
1061
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -1019,7 +1074,7 @@ declare const Intersect_base: {
1019
1074
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1020
1075
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1021
1076
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1022
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1077
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
1023
1078
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1024
1079
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1025
1080
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -1037,7 +1092,7 @@ declare const Intersect_base: {
1037
1092
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1038
1093
  autofocus: boolean;
1039
1094
  readonly dataset: DOMStringMap;
1040
- nonce?: string;
1095
+ nonce: string;
1041
1096
  tabIndex: number;
1042
1097
  blur(): void;
1043
1098
  focus(options?: FocusOptions): void;
@@ -1066,7 +1121,6 @@ declare const Intersect_base: {
1066
1121
  * `trigger` should be visible for the intersection to occur.
1067
1122
  */
1068
1123
  export declare class Intersect extends Intersect_base {
1069
- #private;
1070
1124
  constructor();
1071
1125
  mount(): void;
1072
1126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/intersect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EAGtB,KAAK,iBAAiB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,mBAChB,SAAQ,iBAAiB,EACxB,iBAAiB;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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be visible for the intersection to occur.
30
- * For example, given a threshold of `.5`, the intersection would occur when
31
- * the `trigger` is 50% visible.
32
- *
33
- * @default 0
34
- */
35
- get #threshold() {
36
- return Number(this.getAttribute("threshold") ?? 0);
37
- }
38
28
  mount() {
39
29
  const observer = new IntersectionObserver((entries) => {
40
30
  // attribute to add or remove from `content`
@@ -50,7 +40,7 @@ export class Intersect extends Lifecycle(Trigger(Content())) {
50
40
  detail: { entry },
51
41
  }));
52
42
  }
53
- }, { threshold: this.#threshold });
43
+ }, { threshold: Number(this.getAttribute("threshold") ?? 0) });
54
44
  for (const trigger of this.triggers())
55
45
  observer.observe(trigger);
56
46
  }