From 280c485f858a48de85b7051c0f9eb07cba04f374 Mon Sep 17 00:00:00 2001 From: rossrobino Date: Tue, 27 Feb 2024 09:56:58 -0500 Subject: [PATCH] fix: make touch events passive to improve scroll performance --- package.json | 2 +- src/lib/docs/classes/animate.md | 35 ++++++++-------- src/lib/docs/classes/base.md | 29 ++++++------- src/lib/docs/classes/breakpoint.md | 33 +++++++-------- src/lib/docs/classes/contextmenu.md | 43 ++++++++++---------- src/lib/docs/classes/copy.md | 35 ++++++++-------- src/lib/docs/classes/details.md | 43 ++++++++++---------- src/lib/docs/classes/dialog.md | 43 ++++++++++---------- src/lib/docs/classes/editor.md | 63 +++++++++++++++-------------- src/lib/docs/classes/fullscreen.md | 35 ++++++++-------- src/lib/docs/classes/intersect.md | 39 +++++++++--------- src/lib/docs/classes/popover.md | 45 +++++++++++---------- src/lib/docs/classes/prefetch.md | 39 +++++++++--------- src/lib/docs/classes/share.md | 37 ++++++++--------- src/lib/docs/classes/tablesort.md | 31 +++++++------- src/lib/docs/classes/wakelock.md | 39 +++++++++--------- src/lib/docs/classes/youtube.md | 47 ++++++++++----------- src/lib/docs/modules.md | 30 +++++++------- src/package/base/index.ts | 3 +- src/package/contextmenu/index.ts | 18 +++++---- src/package/prefetch/index.ts | 3 +- 21 files changed, 357 insertions(+), 335 deletions(-) diff --git a/package.json b/package.json index 1324d14..997b4af 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "drab", "description": "A headless custom element library", - "version": "5.3.0", + "version": "5.3.1", "homepage": "https://drab.robino.dev", "license": "MIT", "author": { diff --git a/src/lib/docs/classes/animate.md b/src/lib/docs/classes/animate.md index 6bca76f..3081a24 100644 --- a/src/lib/docs/classes/animate.md +++ b/src/lib/docs/classes/animate.md @@ -57,7 +57,7 @@ Animations `options` can be set: #### Defined in -[src/package/animate/index.ts:39](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L39) +[src/package/animate/index.ts:39](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L39) --- @@ -75,7 +75,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -93,7 +93,7 @@ An object containing the values of each `animation-option` attribute #### Defined in -[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L46) +[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L46) ### event @@ -119,7 +119,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -139,7 +139,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### keyframes @@ -151,7 +151,7 @@ Base.event #### Defined in -[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L128) +[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L128) --- @@ -185,7 +185,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L76) +[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L76) ### connectedCallback @@ -201,7 +201,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -219,7 +219,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -235,7 +235,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -271,7 +271,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -301,7 +301,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -321,7 +321,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/base/index.ts:149](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L149) +[src/package/base/index.ts:150](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L150) ### safeListener @@ -356,7 +356,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -382,11 +382,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -401,6 +401,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -412,4 +413,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/base.md b/src/lib/docs/classes/base.md index 48ba906..1f25b94 100644 --- a/src/lib/docs/classes/base.md +++ b/src/lib/docs/classes/base.md @@ -53,7 +53,7 @@ HTMLElement.constructor #### Defined in -[src/package/base/index.ts:19](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L19) +[src/package/base/index.ts:19](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L19) --- @@ -67,7 +67,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -93,7 +93,7 @@ keyof `HTMLElementEventMap` #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -109,7 +109,7 @@ keyof `HTMLElementEventMap` #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -125,7 +125,7 @@ keyof `HTMLElementEventMap` #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -139,7 +139,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -151,7 +151,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -183,7 +183,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -209,7 +209,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -225,7 +225,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/base/index.ts:149](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L149) +[src/package/base/index.ts:150](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L150) ### safeListener @@ -256,7 +256,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -278,11 +278,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -297,6 +297,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -304,4 +305,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/breakpoint.md b/src/lib/docs/classes/breakpoint.md index 298d4c7..e2037aa 100644 --- a/src/lib/docs/classes/breakpoint.md +++ b/src/lib/docs/classes/breakpoint.md @@ -32,7 +32,7 @@ Provide alternate breakpoints by specifying `breakpoint` attributes: #### Defined in -[src/package/breakpoint/index.ts:27](https://github.com/rossrobino/components/blob/78ddbac/src/package/breakpoint/index.ts#L27) +[src/package/breakpoint/index.ts:27](https://github.com/rossrobino/components/blob/56281dd/src/package/breakpoint/index.ts#L27) --- @@ -50,7 +50,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) ### breakpoints @@ -58,7 +58,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/breakpoint/index.ts:19](https://github.com/rossrobino/components/blob/78ddbac/src/package/breakpoint/index.ts#L19) +[src/package/breakpoint/index.ts:19](https://github.com/rossrobino/components/blob/56281dd/src/package/breakpoint/index.ts#L19) --- @@ -76,7 +76,7 @@ finds the current breakpoint #### Defined in -[src/package/breakpoint/index.ts:51](https://github.com/rossrobino/components/blob/78ddbac/src/package/breakpoint/index.ts#L51) +[src/package/breakpoint/index.ts:51](https://github.com/rossrobino/components/blob/56281dd/src/package/breakpoint/index.ts#L51) ### event @@ -102,7 +102,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -122,7 +122,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -142,7 +142,7 @@ Base.event #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -160,7 +160,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -176,7 +176,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -212,7 +212,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -242,7 +242,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -262,7 +262,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/breakpoint/index.ts:63](https://github.com/rossrobino/components/blob/78ddbac/src/package/breakpoint/index.ts#L63) +[src/package/breakpoint/index.ts:63](https://github.com/rossrobino/components/blob/56281dd/src/package/breakpoint/index.ts#L63) ### safeListener @@ -297,7 +297,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -323,11 +323,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -342,6 +342,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -353,4 +354,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/contextmenu.md b/src/lib/docs/classes/contextmenu.md index bc73c0c..cbceb04 100644 --- a/src/lib/docs/classes/contextmenu.md +++ b/src/lib/docs/classes/contextmenu.md @@ -26,7 +26,7 @@ Displays content when the `trigger` element is right clicked, or long pressed on #### Defined in -[src/package/contextmenu/index.ts:13](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L13) +[src/package/contextmenu/index.ts:13](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L13) --- @@ -44,7 +44,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) ### #touchTimer @@ -54,7 +54,7 @@ Tracks the long press duration on mobile. #### Defined in -[src/package/contextmenu/index.ts:11](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L11) +[src/package/contextmenu/index.ts:11](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L11) --- @@ -80,7 +80,7 @@ Sets the context menu's `style.left` and `style.top` position. #### Defined in -[src/package/contextmenu/index.ts:18](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L18) +[src/package/contextmenu/index.ts:18](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L18) ### animationOptions @@ -98,7 +98,7 @@ Animate.animationOptions #### Defined in -[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L46) +[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L46) ### event @@ -124,7 +124,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -144,7 +144,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### keyframes @@ -160,7 +160,7 @@ Animate.keyframes #### Defined in -[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L128) +[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L128) --- @@ -198,7 +198,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L76) +[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L76) ### connectedCallback @@ -214,7 +214,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -232,7 +232,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -248,7 +248,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -284,7 +284,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -314,7 +314,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### hide @@ -326,7 +326,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/contextmenu/index.ts:57](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L57) +[src/package/contextmenu/index.ts:57](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L57) ### mount @@ -346,7 +346,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/contextmenu/index.ts:66](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L66) +[src/package/contextmenu/index.ts:66](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L66) ### safeListener @@ -381,7 +381,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### show @@ -399,7 +399,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/contextmenu/index.ts:23](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L23) +[src/package/contextmenu/index.ts:23](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L23) ### swapContent @@ -425,11 +425,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -444,6 +444,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -455,4 +456,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/copy.md b/src/lib/docs/classes/copy.md index 546fbc7..e6718f6 100644 --- a/src/lib/docs/classes/copy.md +++ b/src/lib/docs/classes/copy.md @@ -27,7 +27,7 @@ BaseCopy.constructor #### Defined in -[src/package/copy/index.ts:11](https://github.com/rossrobino/components/blob/78ddbac/src/package/copy/index.ts#L11) +[src/package/copy/index.ts:11](https://github.com/rossrobino/components/blob/56281dd/src/package/copy/index.ts#L11) --- @@ -45,7 +45,7 @@ BaseCopy.#listenerController #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -75,7 +75,7 @@ BaseCopy.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -95,7 +95,7 @@ BaseCopy.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### value @@ -119,7 +119,7 @@ BaseCopy.value #### Defined in -[src/package/base/copy/index.ts:13](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/copy/index.ts#L13) +[src/package/base/copy/index.ts:13](https://github.com/rossrobino/components/blob/56281dd/src/package/base/copy/index.ts#L13) • `set` **value**(`value`): `void` @@ -139,7 +139,7 @@ BaseCopy.value #### Defined in -[src/package/base/copy/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/copy/index.ts#L17) +[src/package/base/copy/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/copy/index.ts#L17) --- @@ -159,7 +159,7 @@ BaseCopy.connectedCallback #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### copy @@ -183,7 +183,7 @@ BaseCopy.copy #### Defined in -[src/package/base/copy/index.ts:25](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/copy/index.ts#L25) +[src/package/base/copy/index.ts:25](https://github.com/rossrobino/components/blob/56281dd/src/package/base/copy/index.ts#L25) ### destroy @@ -201,7 +201,7 @@ BaseCopy.destroy #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -217,7 +217,7 @@ BaseCopy.disconnectedCallback #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -253,7 +253,7 @@ BaseCopy.getContent #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -283,7 +283,7 @@ BaseCopy.getTrigger #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -299,7 +299,7 @@ BaseCopy.mount #### Defined in -[src/package/copy/index.ts:15](https://github.com/rossrobino/components/blob/78ddbac/src/package/copy/index.ts#L15) +[src/package/copy/index.ts:15](https://github.com/rossrobino/components/blob/56281dd/src/package/copy/index.ts#L15) ### safeListener @@ -334,7 +334,7 @@ BaseCopy.safeListener #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -360,11 +360,11 @@ BaseCopy.swapContent #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -379,6 +379,7 @@ BaseCopy.swapContent | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -390,4 +391,4 @@ BaseCopy.triggerListener #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/details.md b/src/lib/docs/classes/details.md index 9d5e807..d9b2ef7 100644 --- a/src/lib/docs/classes/details.md +++ b/src/lib/docs/classes/details.md @@ -32,7 +32,7 @@ instead. #### Defined in -[src/package/details/index.ts:16](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L16) +[src/package/details/index.ts:16](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L16) --- @@ -50,7 +50,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -72,7 +72,7 @@ Animate.animationOptions #### Defined in -[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L46) +[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L46) ### details @@ -84,7 +84,7 @@ Animate.animationOptions #### Defined in -[src/package/details/index.ts:20](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L20) +[src/package/details/index.ts:20](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L20) ### event @@ -110,7 +110,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -130,7 +130,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### keyframes @@ -146,7 +146,7 @@ Animate.keyframes #### Defined in -[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L128) +[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L128) --- @@ -184,7 +184,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L76) +[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L76) ### close @@ -198,7 +198,7 @@ Closes details with animation. #### Defined in -[src/package/details/index.ts:33](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L33) +[src/package/details/index.ts:33](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L33) ### connectedCallback @@ -214,7 +214,7 @@ Closes details with animation. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -232,7 +232,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -248,7 +248,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -284,7 +284,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -314,7 +314,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -334,7 +334,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/details/index.ts:48](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L48) +[src/package/details/index.ts:48](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L48) ### open @@ -346,7 +346,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/details/index.ts:27](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L27) +[src/package/details/index.ts:27](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L27) ### safeListener @@ -381,7 +381,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -407,7 +407,7 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### toggle @@ -419,11 +419,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/details/index.ts:40](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L40) +[src/package/details/index.ts:40](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L40) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -438,6 +438,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -449,4 +450,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/dialog.md b/src/lib/docs/classes/dialog.md index fb75547..709018d 100644 --- a/src/lib/docs/classes/dialog.md +++ b/src/lib/docs/classes/dialog.md @@ -26,7 +26,7 @@ Provides triggers and animations for the `HTMLDialogElement`. #### Defined in -[src/package/dialog/index.ts:10](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L10) +[src/package/dialog/index.ts:10](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L10) --- @@ -44,7 +44,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -66,7 +66,7 @@ Animate.animationOptions #### Defined in -[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L46) +[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L46) ### dialog @@ -80,7 +80,7 @@ The `HTMLDialogElement` within the element. #### Defined in -[src/package/dialog/index.ts:15](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L15) +[src/package/dialog/index.ts:15](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L15) ### event @@ -106,7 +106,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -126,7 +126,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### keyframes @@ -142,7 +142,7 @@ Animate.keyframes #### Defined in -[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L128) +[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L128) --- @@ -180,7 +180,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L76) +[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L76) ### close @@ -194,7 +194,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/dialog/index.ts:26](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L26) +[src/package/dialog/index.ts:26](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L26) ### connectedCallback @@ -210,7 +210,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -228,7 +228,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -244,7 +244,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -280,7 +280,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -310,7 +310,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -330,7 +330,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/dialog/index.ts:41](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L41) +[src/package/dialog/index.ts:41](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L41) ### safeListener @@ -365,7 +365,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### show @@ -379,7 +379,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/dialog/index.ts:20](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L20) +[src/package/dialog/index.ts:20](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L20) ### swapContent @@ -405,7 +405,7 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### toggle @@ -419,11 +419,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/dialog/index.ts:36](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L36) +[src/package/dialog/index.ts:36](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L36) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -438,6 +438,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -449,4 +450,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/editor.md b/src/lib/docs/classes/editor.md index 9e2f792..819e562 100644 --- a/src/lib/docs/classes/editor.md +++ b/src/lib/docs/classes/editor.md @@ -52,7 +52,7 @@ Other features: #### Defined in -[src/package/editor/index.ts:63](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L63) +[src/package/editor/index.ts:63](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L63) --- @@ -70,7 +70,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) ### #openChars @@ -80,7 +80,7 @@ Array of keyPair characters that have been opened. #### Defined in -[src/package/editor/index.ts:51](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L51) +[src/package/editor/index.ts:51](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L51) ### keyPairs @@ -94,7 +94,7 @@ The characters that will be automatically closed when typed. #### Defined in -[src/package/editor/index.ts:54](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L54) +[src/package/editor/index.ts:54](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L54) --- @@ -112,7 +112,7 @@ An array of `ContentElement`s derived from each `trigger`'s data attributes. #### Defined in -[src/package/editor/index.ts:89](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L89) +[src/package/editor/index.ts:89](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L89) ### #currentBlock @@ -129,7 +129,7 @@ An array of `ContentElement`s derived from each `trigger`'s data attributes. #### Defined in -[src/package/editor/index.ts:103](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L103) +[src/package/editor/index.ts:103](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L103) ### #selectionEnd @@ -143,7 +143,7 @@ Gets the end position of the selection #### Defined in -[src/package/editor/index.ts:116](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L116) +[src/package/editor/index.ts:116](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L116) ### #selectionStart @@ -157,7 +157,7 @@ Gets the start position of the selection. #### Defined in -[src/package/editor/index.ts:121](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L121) +[src/package/editor/index.ts:121](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L121) ### event @@ -183,7 +183,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -203,7 +203,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### text @@ -217,7 +217,7 @@ The current `value` of the `textarea`. #### Defined in -[src/package/editor/index.ts:80](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L80) +[src/package/editor/index.ts:80](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L80) • `set` **text**(`value`): `void` @@ -233,7 +233,7 @@ The current `value` of the `textarea`. #### Defined in -[src/package/editor/index.ts:84](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L84) +[src/package/editor/index.ts:84](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L84) ### textArea @@ -247,7 +247,7 @@ The `content`, expects an `HTMLTextAreaElement`. #### Defined in -[src/package/editor/index.ts:75](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L75) +[src/package/editor/index.ts:75](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L75) --- @@ -272,7 +272,7 @@ The `content`, expects an `HTMLTextAreaElement`. #### Defined in -[src/package/editor/index.ts:227](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L227) +[src/package/editor/index.ts:227](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L227) ### #correctFollowing @@ -309,7 +309,7 @@ Instead: #### Defined in -[src/package/editor/index.ts:311](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L311) +[src/package/editor/index.ts:311](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L311) ### #getContentElement @@ -329,7 +329,7 @@ The ContentElement based on the `trigger`'s attributes. #### Defined in -[src/package/editor/index.ts:134](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L134) +[src/package/editor/index.ts:134](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L134) ### #getLineInfo @@ -355,7 +355,7 @@ const { lines, lineNumber, columnNumber } = getLineInfo(); #### Defined in -[src/package/editor/index.ts:269](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L269) +[src/package/editor/index.ts:269](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L269) ### #getRepeat @@ -378,7 +378,7 @@ what is found, or the empty string #### Defined in -[src/package/editor/index.ts:242](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L242) +[src/package/editor/index.ts:242](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L242) ### #insertText @@ -401,7 +401,7 @@ what is found, or the empty string #### Defined in -[src/package/editor/index.ts:149](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L149) +[src/package/editor/index.ts:149](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L149) ### #setCaretPosition @@ -425,7 +425,7 @@ what is found, or the empty string #### Defined in -[src/package/editor/index.ts:191](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L191) +[src/package/editor/index.ts:191](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L191) ### #setSelectionRange @@ -446,7 +446,7 @@ Sets the current cursor selection in the `textarea` #### Defined in -[src/package/editor/index.ts:126](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L126) +[src/package/editor/index.ts:126](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L126) ### connectedCallback @@ -462,7 +462,7 @@ Sets the current cursor selection in the `textarea` #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -480,7 +480,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -496,7 +496,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -532,7 +532,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -562,7 +562,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -582,7 +582,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/editor/index.ts:338](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L338) +[src/package/editor/index.ts:338](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L338) ### safeListener @@ -617,7 +617,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -643,11 +643,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -662,6 +662,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -673,4 +674,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/fullscreen.md b/src/lib/docs/classes/fullscreen.md index 72d69e4..3589442 100644 --- a/src/lib/docs/classes/fullscreen.md +++ b/src/lib/docs/classes/fullscreen.md @@ -28,7 +28,7 @@ Disables the `trigger` if fullscreen is not supported. #### Defined in -[src/package/fullscreen/index.ts:12](https://github.com/rossrobino/components/blob/78ddbac/src/package/fullscreen/index.ts#L12) +[src/package/fullscreen/index.ts:12](https://github.com/rossrobino/components/blob/56281dd/src/package/fullscreen/index.ts#L12) --- @@ -46,7 +46,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -76,7 +76,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -96,7 +96,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -116,7 +116,7 @@ Base.event #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -134,7 +134,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -150,7 +150,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### fullscreenSupported @@ -164,7 +164,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/fullscreen/index.ts:26](https://github.com/rossrobino/components/blob/78ddbac/src/package/fullscreen/index.ts#L26) +[src/package/fullscreen/index.ts:26](https://github.com/rossrobino/components/blob/56281dd/src/package/fullscreen/index.ts#L26) ### getContent @@ -200,7 +200,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -230,7 +230,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### isFullscreen @@ -244,7 +244,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/fullscreen/index.ts:19](https://github.com/rossrobino/components/blob/78ddbac/src/package/fullscreen/index.ts#L19) +[src/package/fullscreen/index.ts:19](https://github.com/rossrobino/components/blob/56281dd/src/package/fullscreen/index.ts#L19) ### mount @@ -264,7 +264,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/fullscreen/index.ts:44](https://github.com/rossrobino/components/blob/78ddbac/src/package/fullscreen/index.ts#L44) +[src/package/fullscreen/index.ts:44](https://github.com/rossrobino/components/blob/56281dd/src/package/fullscreen/index.ts#L44) ### safeListener @@ -299,7 +299,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -325,7 +325,7 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### toggle @@ -339,11 +339,11 @@ Enables or disables fullscreen mode based on the current state. #### Defined in -[src/package/fullscreen/index.ts:32](https://github.com/rossrobino/components/blob/78ddbac/src/package/fullscreen/index.ts#L32) +[src/package/fullscreen/index.ts:32](https://github.com/rossrobino/components/blob/56281dd/src/package/fullscreen/index.ts#L32) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -358,6 +358,7 @@ Enables or disables fullscreen mode based on the current state. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -369,4 +370,4 @@ Enables or disables fullscreen mode based on the current state. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/intersect.md b/src/lib/docs/classes/intersect.md index a4bb2f5..5331b30 100644 --- a/src/lib/docs/classes/intersect.md +++ b/src/lib/docs/classes/intersect.md @@ -32,7 +32,7 @@ Specify a `threshold` between `0` and `1` to determine how much of the `trigger` #### Defined in -src/package/intersect/index.ts:25 +[src/package/intersect/index.ts:25](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L25) --- @@ -46,7 +46,7 @@ Functions to run when the `trigger` exits. #### Defined in -src/package/intersect/index.ts:23 +[src/package/intersect/index.ts:23](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L23) ### #intersectCallbacks @@ -56,7 +56,7 @@ Functions to run when the `trigger` intersects. #### Defined in -src/package/intersect/index.ts:20 +[src/package/intersect/index.ts:20](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L20) ### #listenerController @@ -70,7 +70,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -94,7 +94,7 @@ How much of the `trigger` should be visible for the intersection to occur. For e #### Defined in -src/package/intersect/index.ts:34 +[src/package/intersect/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L34) ### event @@ -120,7 +120,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -140,7 +140,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -160,7 +160,7 @@ Base.event #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -178,7 +178,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -194,7 +194,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -230,7 +230,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -260,7 +260,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -280,7 +280,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -src/package/intersect/index.ts:52 +[src/package/intersect/index.ts:52](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L52) ### onExit @@ -298,7 +298,7 @@ src/package/intersect/index.ts:52 #### Defined in -src/package/intersect/index.ts:48 +[src/package/intersect/index.ts:48](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L48) ### onIntersect @@ -316,7 +316,7 @@ src/package/intersect/index.ts:48 #### Defined in -src/package/intersect/index.ts:41 +[src/package/intersect/index.ts:41](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L41) ### safeListener @@ -351,7 +351,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -377,11 +377,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -396,6 +396,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -407,4 +408,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/popover.md b/src/lib/docs/classes/popover.md index 081ca4a..34c8414 100644 --- a/src/lib/docs/classes/popover.md +++ b/src/lib/docs/classes/popover.md @@ -31,7 +31,7 @@ currently [only available in Chrome](https://developer.chrome.com/blog/introduci #### Defined in -[src/package/popover/index.ts:15](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L15) +[src/package/popover/index.ts:15](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L15) --- @@ -49,7 +49,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -71,7 +71,7 @@ Animate.animationOptions #### Defined in -[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L46) +[src/package/animate/index.ts:46](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L46) ### event @@ -97,7 +97,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -117,7 +117,7 @@ Animate.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### keyframes @@ -133,7 +133,7 @@ Animate.keyframes #### Defined in -[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L128) +[src/package/animate/index.ts:128](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L128) ### open @@ -148,7 +148,7 @@ automatically on the element like with the `HTMLDialogElement`. #### Defined in -[src/package/popover/index.ts:23](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L23) +[src/package/popover/index.ts:23](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L23) • `set` **open**(`value`): `void` @@ -164,7 +164,7 @@ automatically on the element like with the `HTMLDialogElement`. #### Defined in -[src/package/popover/index.ts:27](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L27) +[src/package/popover/index.ts:27](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L27) --- @@ -202,7 +202,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L76) +[src/package/animate/index.ts:76](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L76) ### connectedCallback @@ -218,7 +218,7 @@ Animates a particular element using the web animations API. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -236,7 +236,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -252,7 +252,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -288,7 +288,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -318,7 +318,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### hide @@ -332,7 +332,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/popover/index.ts:43](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L43) +[src/package/popover/index.ts:43](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L43) ### mount @@ -352,7 +352,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/popover/index.ts:59](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L59) +[src/package/popover/index.ts:59](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L59) ### safeListener @@ -387,7 +387,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### show @@ -401,7 +401,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/popover/index.ts:36](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L36) +[src/package/popover/index.ts:36](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L36) ### swapContent @@ -427,7 +427,7 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### toggle @@ -441,11 +441,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/popover/index.ts:54](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L54) +[src/package/popover/index.ts:54](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L54) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -460,6 +460,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -471,4 +472,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/prefetch.md b/src/lib/docs/classes/prefetch.md index 546bd03..0359deb 100644 --- a/src/lib/docs/classes/prefetch.md +++ b/src/lib/docs/classes/prefetch.md @@ -59,7 +59,7 @@ and `eagerness` features, and will work without JavaScript. #### Defined in -[src/package/prefetch/index.ts:86](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L86) +[src/package/prefetch/index.ts:86](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L86) --- @@ -77,7 +77,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -95,7 +95,7 @@ Use the speculation rules API. #### Defined in -[src/package/prefetch/index.ts:96](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L96) +[src/package/prefetch/index.ts:96](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L96) ### #strategy @@ -109,7 +109,7 @@ When to prefetch the url. #### Defined in -[src/package/prefetch/index.ts:91](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L91) +[src/package/prefetch/index.ts:91](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L91) ### #url @@ -123,7 +123,7 @@ When to prefetch the url. #### Defined in -[src/package/prefetch/index.ts:101](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L101) +[src/package/prefetch/index.ts:101](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L101) ### event @@ -149,7 +149,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -169,7 +169,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -196,7 +196,7 @@ head of the document. #### Defined in -[src/package/prefetch/index.ts:111](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L111) +[src/package/prefetch/index.ts:111](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L111) ### connectedCallback @@ -212,7 +212,7 @@ head of the document. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -230,7 +230,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -246,7 +246,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -282,7 +282,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -312,7 +312,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -332,7 +332,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/prefetch/index.ts:269](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L269) +[src/package/prefetch/index.ts:270](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L270) ### prefetch @@ -357,7 +357,7 @@ Can be used more than once with different options for different selectors. #### Defined in -[src/package/prefetch/index.ts:193](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L193) +[src/package/prefetch/index.ts:193](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L193) ### safeListener @@ -392,7 +392,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -418,11 +418,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -437,6 +437,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -448,4 +449,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/share.md b/src/lib/docs/classes/share.md index e0536b6..748c44e 100644 --- a/src/lib/docs/classes/share.md +++ b/src/lib/docs/classes/share.md @@ -26,7 +26,7 @@ BaseCopy.constructor #### Defined in -[src/package/share/index.ts:10](https://github.com/rossrobino/components/blob/78ddbac/src/package/share/index.ts#L10) +[src/package/share/index.ts:10](https://github.com/rossrobino/components/blob/56281dd/src/package/share/index.ts#L10) --- @@ -44,7 +44,7 @@ BaseCopy.#listenerController #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -74,7 +74,7 @@ BaseCopy.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -94,7 +94,7 @@ BaseCopy.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### value @@ -118,7 +118,7 @@ BaseCopy.value #### Defined in -[src/package/base/copy/index.ts:13](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/copy/index.ts#L13) +[src/package/base/copy/index.ts:13](https://github.com/rossrobino/components/blob/56281dd/src/package/base/copy/index.ts#L13) • `set` **value**(`value`): `void` @@ -138,7 +138,7 @@ BaseCopy.value #### Defined in -[src/package/base/copy/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/copy/index.ts#L17) +[src/package/base/copy/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/copy/index.ts#L17) --- @@ -158,7 +158,7 @@ BaseCopy.connectedCallback #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### copy @@ -182,7 +182,7 @@ BaseCopy.copy #### Defined in -[src/package/base/copy/index.ts:25](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/copy/index.ts#L25) +[src/package/base/copy/index.ts:25](https://github.com/rossrobino/components/blob/56281dd/src/package/base/copy/index.ts#L25) ### destroy @@ -200,7 +200,7 @@ BaseCopy.destroy #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -216,7 +216,7 @@ BaseCopy.disconnectedCallback #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -252,7 +252,7 @@ BaseCopy.getContent #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -282,7 +282,7 @@ BaseCopy.getTrigger #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -298,7 +298,7 @@ BaseCopy.mount #### Defined in -[src/package/share/index.ts:35](https://github.com/rossrobino/components/blob/78ddbac/src/package/share/index.ts#L35) +[src/package/share/index.ts:35](https://github.com/rossrobino/components/blob/56281dd/src/package/share/index.ts#L35) ### safeListener @@ -333,7 +333,7 @@ BaseCopy.safeListener #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### share @@ -356,7 +356,7 @@ depending on browser support. #### Defined in -[src/package/share/index.ts:20](https://github.com/rossrobino/components/blob/78ddbac/src/package/share/index.ts#L20) +[src/package/share/index.ts:20](https://github.com/rossrobino/components/blob/56281dd/src/package/share/index.ts#L20) ### swapContent @@ -382,11 +382,11 @@ BaseCopy.swapContent #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -401,6 +401,7 @@ BaseCopy.swapContent | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -412,4 +413,4 @@ BaseCopy.triggerListener #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/tablesort.md b/src/lib/docs/classes/tablesort.md index 05b9e59..db57bf5 100644 --- a/src/lib/docs/classes/tablesort.md +++ b/src/lib/docs/classes/tablesort.md @@ -36,7 +36,7 @@ datatype `number` or `boolean`, set `data-type="number"` on the corresponding #### Defined in -[src/package/tablesort/index.ts:20](https://github.com/rossrobino/components/blob/78ddbac/src/package/tablesort/index.ts#L20) +[src/package/tablesort/index.ts:20](https://github.com/rossrobino/components/blob/56281dd/src/package/tablesort/index.ts#L20) --- @@ -54,7 +54,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) --- @@ -84,7 +84,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -104,7 +104,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -130,7 +130,7 @@ true if ascending, false if descending #### Defined in -[src/package/tablesort/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/tablesort/index.ts#L30) +[src/package/tablesort/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/tablesort/index.ts#L30) ### connectedCallback @@ -146,7 +146,7 @@ true if ascending, false if descending #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -164,7 +164,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -180,7 +180,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -216,7 +216,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -246,7 +246,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -266,7 +266,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/tablesort/index.ts:49](https://github.com/rossrobino/components/blob/78ddbac/src/package/tablesort/index.ts#L49) +[src/package/tablesort/index.ts:49](https://github.com/rossrobino/components/blob/56281dd/src/package/tablesort/index.ts#L49) ### safeListener @@ -301,7 +301,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -327,11 +327,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -346,6 +346,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -357,4 +358,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/wakelock.md b/src/lib/docs/classes/wakelock.md index b922487..643d3cb 100644 --- a/src/lib/docs/classes/wakelock.md +++ b/src/lib/docs/classes/wakelock.md @@ -36,7 +36,7 @@ #### Defined in -[src/package/wakelock/index.ts:25](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L25) +[src/package/wakelock/index.ts:25](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L25) --- @@ -54,7 +54,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) ### wakeLock @@ -62,7 +62,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/wakelock/index.ts:23](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L23) +[src/package/wakelock/index.ts:23](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L23) --- @@ -80,7 +80,7 @@ the `auto-lock` attribute controls whether an active WakeLock should be restored #### Defined in -[src/package/wakelock/index.ts:37](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L37) +[src/package/wakelock/index.ts:37](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L37) ### event @@ -106,7 +106,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -126,7 +126,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) --- @@ -144,7 +144,7 @@ If the WakeLock API is supported on the user's device. #### Defined in -[src/package/wakelock/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L30) +[src/package/wakelock/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L30) ### connectedCallback @@ -160,7 +160,7 @@ If the WakeLock API is supported on the user's device. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -178,7 +178,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/wakelock/index.ts:105](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L105) +[src/package/wakelock/index.ts:105](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L105) ### disconnectedCallback @@ -194,7 +194,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -230,7 +230,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -260,7 +260,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -280,7 +280,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/wakelock/index.ts:67](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L67) +[src/package/wakelock/index.ts:67](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L67) ### release @@ -294,7 +294,7 @@ Releases the WakeLock, sets `this.wakeLock` to null. #### Defined in -[src/package/wakelock/index.ts:62](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L62) +[src/package/wakelock/index.ts:62](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L62) ### request @@ -308,7 +308,7 @@ Requests WakeLock on the current page. #### Defined in -[src/package/wakelock/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L42) +[src/package/wakelock/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L42) ### safeListener @@ -343,7 +343,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -369,11 +369,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -388,6 +388,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -399,4 +400,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/classes/youtube.md b/src/lib/docs/classes/youtube.md index 5991773..7dda16f 100644 --- a/src/lib/docs/classes/youtube.md +++ b/src/lib/docs/classes/youtube.md @@ -26,7 +26,7 @@ Embeds a YouTube video iframe into a website with the video uid, using www.youtu #### Defined in -[src/package/youtube/index.ts:12](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L12) +[src/package/youtube/index.ts:12](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L12) --- @@ -44,7 +44,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L17) +[src/package/base/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L17) ### observedAttributes @@ -52,7 +52,7 @@ To clean up event listeners added to `document` when the element is removed. #### Defined in -[src/package/youtube/index.ts:10](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L10) +[src/package/youtube/index.ts:10](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L10) --- @@ -70,7 +70,7 @@ Whether the video should start playing when loaded. #### Defined in -[src/package/youtube/index.ts:22](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L22) +[src/package/youtube/index.ts:22](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L22) • `set` **autoplay**(`value`): `void` @@ -86,7 +86,7 @@ Whether the video should start playing when loaded. #### Defined in -[src/package/youtube/index.ts:26](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L26) +[src/package/youtube/index.ts:26](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L26) ### event @@ -112,7 +112,7 @@ Base.event #### Defined in -[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L30) +[src/package/base/index.ts:30](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L30) • `set` **event**(`value`): `void` @@ -132,7 +132,7 @@ Base.event #### Defined in -[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L34) +[src/package/base/index.ts:34](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L34) ### iframe @@ -146,7 +146,7 @@ The `HTMLIFrameElement` within the element. #### Defined in -[src/package/youtube/index.ts:17](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L17) +[src/package/youtube/index.ts:17](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L17) ### start @@ -160,7 +160,7 @@ The start time of the video (seconds). #### Defined in -[src/package/youtube/index.ts:32](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L32) +[src/package/youtube/index.ts:32](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L32) • `set` **start**(`value`): `void` @@ -176,7 +176,7 @@ The start time of the video (seconds). #### Defined in -[src/package/youtube/index.ts:36](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L36) +[src/package/youtube/index.ts:36](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L36) ### uid @@ -193,7 +193,7 @@ the `uid` is `"gouiY85kD2o"`. #### Defined in -[src/package/youtube/index.ts:46](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L46) +[src/package/youtube/index.ts:46](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L46) • `set` **uid**(`v`): `void` @@ -209,7 +209,7 @@ the `uid` is `"gouiY85kD2o"`. #### Defined in -[src/package/youtube/index.ts:52](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L52) +[src/package/youtube/index.ts:52](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L52) --- @@ -225,7 +225,7 @@ the `uid` is `"gouiY85kD2o"`. #### Defined in -[src/package/youtube/index.ts:62](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L62) +[src/package/youtube/index.ts:62](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L62) ### connectedCallback @@ -241,7 +241,7 @@ the `uid` is `"gouiY85kD2o"`. #### Defined in -[src/package/base/index.ts:151](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L151) +[src/package/base/index.ts:152](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L152) ### destroy @@ -259,7 +259,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:158](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L158) +[src/package/base/index.ts:159](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L159) ### disconnectedCallback @@ -275,7 +275,7 @@ Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallb #### Defined in -[src/package/base/index.ts:160](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L160) +[src/package/base/index.ts:161](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L161) ### getContent @@ -311,7 +311,7 @@ this.querySelector("[data-content]"); #### Defined in -[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L55) +[src/package/base/index.ts:55](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L55) ### getTrigger @@ -341,7 +341,7 @@ this.querySelectorAll("[data-trigger]"); #### Defined in -[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L42) +[src/package/base/index.ts:42](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L42) ### mount @@ -361,7 +361,7 @@ The reason for this is to make these elements work better with frameworks like S #### Defined in -[src/package/youtube/index.ts:56](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L56) +[src/package/youtube/index.ts:56](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L56) ### safeListener @@ -396,7 +396,7 @@ element is removed from the DOM, these event listeners are cleaned up. #### Defined in -[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L118) +[src/package/base/index.ts:118](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L118) ### swapContent @@ -422,11 +422,11 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L72) +[src/package/base/index.ts:72](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L72) ### triggerListener -▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`): `void` +▸ **triggerListener**\<`T`, `K`\>(`listener`, `type?`, `options?`): `void` #### Type parameters @@ -441,6 +441,7 @@ swaps `this.content()` with the content of the element found. | :--------- | :------------------------------------------------------ | :--------------------------------------------------- | | `listener` | (`this`: `T`, `e`: `HTMLElementEventMap`[`K`]) => `any` | Listener to attach to all of the `trigger` elements. | | `type` | `K` | - | +| `options?` | `AddEventListenerOptions` | - | #### Returns @@ -452,4 +453,4 @@ swaps `this.content()` with the content of the element found. #### Defined in -[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/78ddbac/src/package/base/index.ts#L135) +[src/package/base/index.ts:135](https://github.com/rossrobino/components/blob/56281dd/src/package/base/index.ts#L135) diff --git a/src/lib/docs/modules.md b/src/lib/docs/modules.md index 91462be..72946e6 100644 --- a/src/lib/docs/modules.md +++ b/src/lib/docs/modules.md @@ -27,7 +27,7 @@ #### Defined in -[src/package/animate/index.ts:8](https://github.com/rossrobino/components/blob/78ddbac/src/package/animate/index.ts#L8) +[src/package/animate/index.ts:8](https://github.com/rossrobino/components/blob/56281dd/src/package/animate/index.ts#L8) --- @@ -37,7 +37,7 @@ #### Defined in -[src/package/breakpoint/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/breakpoint/index.ts#L4) +[src/package/breakpoint/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/breakpoint/index.ts#L4) --- @@ -47,7 +47,7 @@ #### Defined in -[src/package/contextmenu/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/contextmenu/index.ts#L4) +[src/package/contextmenu/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/contextmenu/index.ts#L4) --- @@ -57,7 +57,7 @@ #### Defined in -[src/package/copy/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/copy/index.ts#L4) +[src/package/copy/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/copy/index.ts#L4) --- @@ -67,7 +67,7 @@ #### Defined in -[src/package/details/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/details/index.ts#L4) +[src/package/details/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/details/index.ts#L4) --- @@ -77,7 +77,7 @@ #### Defined in -[src/package/dialog/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/dialog/index.ts#L4) +[src/package/dialog/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/dialog/index.ts#L4) --- @@ -87,7 +87,7 @@ #### Defined in -[src/package/editor/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/editor/index.ts#L4) +[src/package/editor/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/editor/index.ts#L4) --- @@ -97,7 +97,7 @@ #### Defined in -[src/package/fullscreen/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/fullscreen/index.ts#L4) +[src/package/fullscreen/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/fullscreen/index.ts#L4) --- @@ -107,7 +107,7 @@ #### Defined in -src/package/intersect/index.ts:4 +[src/package/intersect/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/intersect/index.ts#L4) --- @@ -117,7 +117,7 @@ src/package/intersect/index.ts:4 #### Defined in -[src/package/popover/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/popover/index.ts#L4) +[src/package/popover/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/popover/index.ts#L4) --- @@ -127,7 +127,7 @@ src/package/intersect/index.ts:4 #### Defined in -[src/package/prefetch/index.ts:6](https://github.com/rossrobino/components/blob/78ddbac/src/package/prefetch/index.ts#L6) +[src/package/prefetch/index.ts:6](https://github.com/rossrobino/components/blob/56281dd/src/package/prefetch/index.ts#L6) --- @@ -137,7 +137,7 @@ src/package/intersect/index.ts:4 #### Defined in -[src/package/share/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/share/index.ts#L4) +[src/package/share/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/share/index.ts#L4) --- @@ -147,7 +147,7 @@ src/package/intersect/index.ts:4 #### Defined in -[src/package/tablesort/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/tablesort/index.ts#L4) +[src/package/tablesort/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/tablesort/index.ts#L4) --- @@ -157,7 +157,7 @@ src/package/intersect/index.ts:4 #### Defined in -[src/package/wakelock/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/wakelock/index.ts#L4) +[src/package/wakelock/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/wakelock/index.ts#L4) --- @@ -167,4 +167,4 @@ src/package/intersect/index.ts:4 #### Defined in -[src/package/youtube/index.ts:4](https://github.com/rossrobino/components/blob/78ddbac/src/package/youtube/index.ts#L4) +[src/package/youtube/index.ts:4](https://github.com/rossrobino/components/blob/56281dd/src/package/youtube/index.ts#L4) diff --git a/src/package/base/index.ts b/src/package/base/index.ts index ea1c06c..9bb5224 100644 --- a/src/package/base/index.ts +++ b/src/package/base/index.ts @@ -135,9 +135,10 @@ export class Base extends HTMLElement { triggerListener( listener: (this: T, e: HTMLElementEventMap[K]) => any, type: K = this.event as K, + options?: AddEventListenerOptions, ) { for (const trigger of this.getTrigger()) { - trigger.addEventListener(type, listener as EventListener); + trigger.addEventListener(type, listener as EventListener, options); } } diff --git a/src/package/contextmenu/index.ts b/src/package/contextmenu/index.ts index a5a6ade..78e3bc7 100644 --- a/src/package/contextmenu/index.ts +++ b/src/package/contextmenu/index.ts @@ -73,15 +73,19 @@ export class ContextMenu extends Animate { this.safeListener("click", () => this.hide()); // touch - this.triggerListener((e) => { - this.#touchTimer = setTimeout(() => { - this.show(e); - }, 800); - }, "touchstart"); + this.triggerListener( + (e) => { + this.#touchTimer = setTimeout(() => { + this.show(e); + }, 800); + }, + "touchstart", + { passive: true }, + ); const resetTimer = () => clearTimeout(this.#touchTimer); - this.triggerListener(resetTimer, "touchend"); - this.triggerListener(resetTimer, "touchcancel"); + this.triggerListener(resetTimer, "touchend", { passive: true }); + this.triggerListener(resetTimer, "touchcancel", { passive: true }); // keyboard this.safeListener("keydown", (e) => { diff --git a/src/package/prefetch/index.ts b/src/package/prefetch/index.ts index 2ce4e5d..5d56cf0 100644 --- a/src/package/prefetch/index.ts +++ b/src/package/prefetch/index.ts @@ -261,7 +261,8 @@ export class Prefetch extends Base { anchor.addEventListener("focusout", reset); // immediately append on touchstart, no delay - anchor.addEventListener("touchstart", listener(0)); + // passive: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#using_passive_listeners + anchor.addEventListener("touchstart", listener(0), { passive: true }); } } }