drab 6.2.2 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/announcer/index.d.ts +2 -0
- package/dist/announcer/index.js +3 -1
- package/dist/base/index.d.ts +2896 -67
- package/dist/base/index.js +68 -52
- package/dist/copy/index.d.ts +8 -1
- package/dist/copy/index.js +8 -1
- package/dist/dialog/index.d.ts +2 -0
- package/dist/dialog/index.js +2 -0
- package/dist/editor/index.d.ts +17 -9
- package/dist/editor/index.js +17 -9
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/intersect/index.d.ts +2 -0
- package/dist/intersect/index.js +2 -0
- package/dist/prefetch/index.d.ts +2 -0
- package/dist/prefetch/index.js +4 -2
- package/dist/share/index.d.ts +8 -1
- package/dist/share/index.js +8 -1
- package/dist/tablesort/index.js +5 -2
- package/dist/tabs/define.d.ts +1 -0
- package/dist/tabs/define.js +3 -0
- package/dist/tabs/index.d.ts +37 -0
- package/dist/tabs/index.js +147 -0
- package/dist/util/validate.d.ts +7 -0
- package/dist/util/validate.js +10 -0
- package/dist/wakelock/index.d.ts +13 -3
- package/dist/wakelock/index.js +13 -3
- package/package.json +1 -1
package/dist/wakelock/index.d.ts
CHANGED
@@ -4,19 +4,29 @@ export type WakeLockAttributes = BaseAttributes & {
|
|
4
4
|
locked?: boolean;
|
5
5
|
};
|
6
6
|
/**
|
7
|
-
* `WakeLock` uses the
|
7
|
+
* `WakeLock` uses the
|
8
|
+
* [WakeLock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)
|
9
|
+
* to ensure the screen does not turn off when viewing the page on supported devices.
|
10
|
+
* Use your best judgement for when this is necessary, for example, if you have a timer
|
11
|
+
* that needs to stay on, or you are displaying a QR code.
|
8
12
|
*
|
9
|
-
* - WakeLock can be toggled with a `trigger`, or will be requested if the element has a `locked` attribute when connected.
|
10
13
|
* - Use `content` and `swap` elements to adjust the UI based on the current state.
|
11
14
|
* - `request` and `release` methods are provided to set the WakeLock with JavaScript.
|
12
15
|
* - `trigger` is disabled if not supported.
|
13
16
|
* - WakeLock is released when the element is removed from the DOM.
|
14
17
|
*
|
18
|
+
* ### Attributes
|
19
|
+
*
|
15
20
|
* `auto-lock`
|
16
21
|
*
|
17
|
-
*
|
22
|
+
* By default, the WakeLock will be released when the tab is not active. Use the
|
23
|
+
* `auto-lock` attribute to automatically request the WakeLock when the user views
|
24
|
+
* the tab again.
|
18
25
|
*
|
26
|
+
* `locked`
|
19
27
|
*
|
28
|
+
* WakeLock can be toggled with a `trigger`, or will be requested if the element has
|
29
|
+
* a `locked` attribute when connected.
|
20
30
|
*/
|
21
31
|
export declare class WakeLock extends Base {
|
22
32
|
#private;
|
package/dist/wakelock/index.js
CHANGED
@@ -1,18 +1,28 @@
|
|
1
1
|
import { Base } from "../base/index.js";
|
2
2
|
/**
|
3
|
-
* `WakeLock` uses the
|
3
|
+
* `WakeLock` uses the
|
4
|
+
* [WakeLock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)
|
5
|
+
* to ensure the screen does not turn off when viewing the page on supported devices.
|
6
|
+
* Use your best judgement for when this is necessary, for example, if you have a timer
|
7
|
+
* that needs to stay on, or you are displaying a QR code.
|
4
8
|
*
|
5
|
-
* - WakeLock can be toggled with a `trigger`, or will be requested if the element has a `locked` attribute when connected.
|
6
9
|
* - Use `content` and `swap` elements to adjust the UI based on the current state.
|
7
10
|
* - `request` and `release` methods are provided to set the WakeLock with JavaScript.
|
8
11
|
* - `trigger` is disabled if not supported.
|
9
12
|
* - WakeLock is released when the element is removed from the DOM.
|
10
13
|
*
|
14
|
+
* ### Attributes
|
15
|
+
*
|
11
16
|
* `auto-lock`
|
12
17
|
*
|
13
|
-
*
|
18
|
+
* By default, the WakeLock will be released when the tab is not active. Use the
|
19
|
+
* `auto-lock` attribute to automatically request the WakeLock when the user views
|
20
|
+
* the tab again.
|
14
21
|
*
|
22
|
+
* `locked`
|
15
23
|
*
|
24
|
+
* WakeLock can be toggled with a `trigger`, or will be requested if the element has
|
25
|
+
* a `locked` attribute when connected.
|
16
26
|
*/
|
17
27
|
export class WakeLock extends Base {
|
18
28
|
wakeLock = null;
|