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
@@ -10,6 +10,8 @@
|
|
10
10
|
* [avoid duplicate regions](https://www.sarasoueidan.com/blog/accessible-notifications-with-aria-live-regions-part-2/#limit-the-number-of-live-regions-on-the-page)
|
11
11
|
* (see below).
|
12
12
|
*
|
13
|
+
* ### Attributes
|
14
|
+
*
|
13
15
|
* `aria-live`
|
14
16
|
*
|
15
17
|
* By default, the announcer is created with the
|
package/dist/announcer/index.js
CHANGED
@@ -11,6 +11,8 @@ import { define } from "../util/define.js";
|
|
11
11
|
* [avoid duplicate regions](https://www.sarasoueidan.com/blog/accessible-notifications-with-aria-live-regions-part-2/#limit-the-number-of-live-regions-on-the-page)
|
12
12
|
* (see below).
|
13
13
|
*
|
14
|
+
* ### Attributes
|
15
|
+
*
|
14
16
|
* `aria-live`
|
15
17
|
*
|
16
18
|
* By default, the announcer is created with the
|
@@ -68,8 +70,8 @@ export class Announcer extends HTMLElement {
|
|
68
70
|
* @returns the created or existing `Announcer` element
|
69
71
|
*/
|
70
72
|
static init() {
|
71
|
-
define("drab-announcer", this);
|
72
73
|
const name = "drab-announcer";
|
74
|
+
define(name, this);
|
73
75
|
let announcer = document.querySelector(name);
|
74
76
|
if (!announcer) {
|
75
77
|
announcer = document.createElement(name);
|