@y14e/disclosure 2.0.7 → 2.0.8
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/index.bundle.cjs +8 -8
- package/dist/index.bundle.js +8 -8
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
package/dist/index.bundle.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
// node_modules/@y14e/attribute-
|
|
3
|
+
// node_modules/@y14e/attribute-utils/dist/index.js
|
|
4
4
|
var DEFAULT_PARSER = (value) => value.split(/\s+/);
|
|
5
5
|
var DEFAULT_SERIALIZER = (tokens) => tokens.join(" ");
|
|
6
6
|
function addAttributeToken(element, name, token, options = {}) {
|
|
@@ -867,7 +867,7 @@ function waitAnimationFinish(animation) {
|
|
|
867
867
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
868
868
|
* Using the <details> and <summary> element.
|
|
869
869
|
*
|
|
870
|
-
* @version 2.0.
|
|
870
|
+
* @version 2.0.8
|
|
871
871
|
* @author Yusuke Kamiyamane
|
|
872
872
|
* @license MIT
|
|
873
873
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -875,15 +875,15 @@ function waitAnimationFinish(animation) {
|
|
|
875
875
|
*/
|
|
876
876
|
/*! Bundled license information:
|
|
877
877
|
|
|
878
|
-
@y14e/attribute-
|
|
878
|
+
@y14e/attribute-utils/dist/index.js:
|
|
879
879
|
(**
|
|
880
|
-
* Attribute
|
|
880
|
+
* Attribute Utils
|
|
881
881
|
*
|
|
882
|
-
* @version 2.0.
|
|
882
|
+
* @version 2.0.5
|
|
883
883
|
* @author Yusuke Kamiyamane
|
|
884
884
|
* @license MIT
|
|
885
885
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
886
|
-
* @see {@link https://github.com/y14e/attribute-
|
|
886
|
+
* @see {@link https://github.com/y14e/attribute-utils}
|
|
887
887
|
*)
|
|
888
888
|
|
|
889
889
|
power-focusable/dist/index.js:
|
|
@@ -892,7 +892,7 @@ power-focusable/dist/index.js:
|
|
|
892
892
|
* High-precision focus management utility with full composed tree support.
|
|
893
893
|
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
894
894
|
*
|
|
895
|
-
* @version 4.3.
|
|
895
|
+
* @version 4.3.26
|
|
896
896
|
* @author Yusuke Kamiyamane
|
|
897
897
|
* @license MIT
|
|
898
898
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -905,7 +905,7 @@ power-focusable/dist/index.js:
|
|
|
905
905
|
* Lightweight roving tabindex utility with fully focus management.
|
|
906
906
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
907
907
|
*
|
|
908
|
-
* @version 3.1.
|
|
908
|
+
* @version 3.1.23
|
|
909
909
|
* @author Yusuke Kamiyamane
|
|
910
910
|
* @license MIT
|
|
911
911
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/@y14e/attribute-
|
|
1
|
+
// node_modules/@y14e/attribute-utils/dist/index.js
|
|
2
2
|
var DEFAULT_PARSER = (value) => value.split(/\s+/);
|
|
3
3
|
var DEFAULT_SERIALIZER = (tokens) => tokens.join(" ");
|
|
4
4
|
function addAttributeToken(element, name, token, options = {}) {
|
|
@@ -865,7 +865,7 @@ function waitAnimationFinish(animation) {
|
|
|
865
865
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
866
866
|
* Using the <details> and <summary> element.
|
|
867
867
|
*
|
|
868
|
-
* @version 2.0.
|
|
868
|
+
* @version 2.0.8
|
|
869
869
|
* @author Yusuke Kamiyamane
|
|
870
870
|
* @license MIT
|
|
871
871
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -873,15 +873,15 @@ function waitAnimationFinish(animation) {
|
|
|
873
873
|
*/
|
|
874
874
|
/*! Bundled license information:
|
|
875
875
|
|
|
876
|
-
@y14e/attribute-
|
|
876
|
+
@y14e/attribute-utils/dist/index.js:
|
|
877
877
|
(**
|
|
878
|
-
* Attribute
|
|
878
|
+
* Attribute Utils
|
|
879
879
|
*
|
|
880
|
-
* @version 2.0.
|
|
880
|
+
* @version 2.0.5
|
|
881
881
|
* @author Yusuke Kamiyamane
|
|
882
882
|
* @license MIT
|
|
883
883
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
884
|
-
* @see {@link https://github.com/y14e/attribute-
|
|
884
|
+
* @see {@link https://github.com/y14e/attribute-utils}
|
|
885
885
|
*)
|
|
886
886
|
|
|
887
887
|
power-focusable/dist/index.js:
|
|
@@ -890,7 +890,7 @@ power-focusable/dist/index.js:
|
|
|
890
890
|
* High-precision focus management utility with full composed tree support.
|
|
891
891
|
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
892
892
|
*
|
|
893
|
-
* @version 4.3.
|
|
893
|
+
* @version 4.3.26
|
|
894
894
|
* @author Yusuke Kamiyamane
|
|
895
895
|
* @license MIT
|
|
896
896
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -903,7 +903,7 @@ power-focusable/dist/index.js:
|
|
|
903
903
|
* Lightweight roving tabindex utility with fully focus management.
|
|
904
904
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
905
905
|
*
|
|
906
|
-
* @version 3.1.
|
|
906
|
+
* @version 3.1.23
|
|
907
907
|
* @author Yusuke Kamiyamane
|
|
908
908
|
* @license MIT
|
|
909
909
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var utils = require('@y14e/attribute-utils');
|
|
4
4
|
var rovingTabindex = require('@y14e/roving-tabindex');
|
|
5
5
|
|
|
6
6
|
function _interopNamespace(e) {
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
return Object.freeze(n);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var utils__namespace = /*#__PURE__*/_interopNamespace(utils);
|
|
25
25
|
|
|
26
26
|
// src/index.ts
|
|
27
27
|
var Disclosure = class _Disclosure {
|
|
@@ -133,7 +133,7 @@ var Disclosure = class _Disclosure {
|
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
this.#detailsElements.length = 0;
|
|
136
|
-
|
|
136
|
+
utils__namespace.restoreAttributes(this.#summaryElements);
|
|
137
137
|
this.#summaryElements.length = 0;
|
|
138
138
|
this.#contentElements.length = 0;
|
|
139
139
|
this.#rootElement.removeAttribute("data-disclosure-initialized");
|
|
@@ -149,7 +149,7 @@ var Disclosure = class _Disclosure {
|
|
|
149
149
|
this.#toggle(details, true);
|
|
150
150
|
}
|
|
151
151
|
#initialize() {
|
|
152
|
-
|
|
152
|
+
utils__namespace.saveAttributes(this.#summaryElements, [
|
|
153
153
|
"aria-disabled",
|
|
154
154
|
"style",
|
|
155
155
|
"tabindex"
|
|
@@ -303,7 +303,7 @@ function waitAnimationFinish(animation) {
|
|
|
303
303
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
304
304
|
* Using the <details> and <summary> element.
|
|
305
305
|
*
|
|
306
|
-
* @version 2.0.
|
|
306
|
+
* @version 2.0.8
|
|
307
307
|
* @author Yusuke Kamiyamane
|
|
308
308
|
* @license MIT
|
|
309
309
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as utils from '@y14e/attribute-utils';
|
|
2
2
|
import { createRovingTabIndex } from '@y14e/roving-tabindex';
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
@@ -111,7 +111,7 @@ var Disclosure = class _Disclosure {
|
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
this.#detailsElements.length = 0;
|
|
114
|
-
|
|
114
|
+
utils.restoreAttributes(this.#summaryElements);
|
|
115
115
|
this.#summaryElements.length = 0;
|
|
116
116
|
this.#contentElements.length = 0;
|
|
117
117
|
this.#rootElement.removeAttribute("data-disclosure-initialized");
|
|
@@ -127,7 +127,7 @@ var Disclosure = class _Disclosure {
|
|
|
127
127
|
this.#toggle(details, true);
|
|
128
128
|
}
|
|
129
129
|
#initialize() {
|
|
130
|
-
|
|
130
|
+
utils.saveAttributes(this.#summaryElements, [
|
|
131
131
|
"aria-disabled",
|
|
132
132
|
"style",
|
|
133
133
|
"tabindex"
|
|
@@ -281,7 +281,7 @@ function waitAnimationFinish(animation) {
|
|
|
281
281
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
282
282
|
* Using the <details> and <summary> element.
|
|
283
283
|
*
|
|
284
|
-
* @version 2.0.
|
|
284
|
+
* @version 2.0.8
|
|
285
285
|
* @author Yusuke Kamiyamane
|
|
286
286
|
* @license MIT
|
|
287
287
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@y14e/disclosure",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"esbuild": true
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@y14e/attribute-
|
|
58
|
-
"@y14e/roving-tabindex": "^3.1.
|
|
57
|
+
"@y14e/attribute-utils": "^2.0.5",
|
|
58
|
+
"@y14e/roving-tabindex": "^3.1.23"
|
|
59
59
|
}
|
|
60
60
|
}
|