@vectojs/core 1.18.0 → 1.19.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/index.js +22 -0
- package/dist/index.mjs +22 -0
- package/dist/tree/Entity.d.ts +42 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3560,6 +3560,28 @@ var Scene = (_class7 = class _Scene {
|
|
|
3560
3560
|
"aria-level",
|
|
3561
3561
|
attrs.level === void 0 ? void 0 : String(attrs.level)
|
|
3562
3562
|
);
|
|
3563
|
+
this.syncOptionalAttribute(
|
|
3564
|
+
el,
|
|
3565
|
+
"aria-posinset",
|
|
3566
|
+
attrs.posInSet === void 0 ? void 0 : String(attrs.posInSet)
|
|
3567
|
+
);
|
|
3568
|
+
this.syncOptionalAttribute(
|
|
3569
|
+
el,
|
|
3570
|
+
"aria-setsize",
|
|
3571
|
+
attrs.setSize === void 0 ? void 0 : String(attrs.setSize)
|
|
3572
|
+
);
|
|
3573
|
+
this.syncOptionalAttribute(
|
|
3574
|
+
el,
|
|
3575
|
+
"aria-rowcount",
|
|
3576
|
+
attrs.rowCount === void 0 ? void 0 : String(attrs.rowCount)
|
|
3577
|
+
);
|
|
3578
|
+
this.syncOptionalAttribute(
|
|
3579
|
+
el,
|
|
3580
|
+
"aria-rowindex",
|
|
3581
|
+
attrs.rowIndex === void 0 ? void 0 : String(attrs.rowIndex)
|
|
3582
|
+
);
|
|
3583
|
+
this.syncOptionalAttribute(el, "aria-valuetext", attrs.valueText);
|
|
3584
|
+
this.syncOptionalAttribute(el, "aria-orientation", attrs.orientation);
|
|
3563
3585
|
if (attrs.value !== void 0) {
|
|
3564
3586
|
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
|
|
3565
3587
|
if (el.value !== attrs.value) {
|
package/dist/index.mjs
CHANGED
|
@@ -3559,6 +3559,28 @@ var Scene = class _Scene {
|
|
|
3559
3559
|
"aria-level",
|
|
3560
3560
|
attrs.level === void 0 ? void 0 : String(attrs.level)
|
|
3561
3561
|
);
|
|
3562
|
+
this.syncOptionalAttribute(
|
|
3563
|
+
el,
|
|
3564
|
+
"aria-posinset",
|
|
3565
|
+
attrs.posInSet === void 0 ? void 0 : String(attrs.posInSet)
|
|
3566
|
+
);
|
|
3567
|
+
this.syncOptionalAttribute(
|
|
3568
|
+
el,
|
|
3569
|
+
"aria-setsize",
|
|
3570
|
+
attrs.setSize === void 0 ? void 0 : String(attrs.setSize)
|
|
3571
|
+
);
|
|
3572
|
+
this.syncOptionalAttribute(
|
|
3573
|
+
el,
|
|
3574
|
+
"aria-rowcount",
|
|
3575
|
+
attrs.rowCount === void 0 ? void 0 : String(attrs.rowCount)
|
|
3576
|
+
);
|
|
3577
|
+
this.syncOptionalAttribute(
|
|
3578
|
+
el,
|
|
3579
|
+
"aria-rowindex",
|
|
3580
|
+
attrs.rowIndex === void 0 ? void 0 : String(attrs.rowIndex)
|
|
3581
|
+
);
|
|
3582
|
+
this.syncOptionalAttribute(el, "aria-valuetext", attrs.valueText);
|
|
3583
|
+
this.syncOptionalAttribute(el, "aria-orientation", attrs.orientation);
|
|
3562
3584
|
if (attrs.value !== void 0) {
|
|
3563
3585
|
if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
|
|
3564
3586
|
if (el.value !== attrs.value) {
|
package/dist/tree/Entity.d.ts
CHANGED
|
@@ -221,6 +221,48 @@ export interface A11yAttributes {
|
|
|
221
221
|
/** `aria-invalid`: the field's current value fails validation. */
|
|
222
222
|
invalid?: boolean;
|
|
223
223
|
/** `aria-level`: hierarchical level (headings, tree items, etc.). */
|
|
224
|
+
/**
|
|
225
|
+
* Position within a set, 1-based — projected as `aria-posinset`.
|
|
226
|
+
*
|
|
227
|
+
* Required whenever the DOM contains only part of the set, which is exactly
|
|
228
|
+
* what virtualization produces: a list rendering rows 40-52 of 10,000 otherwise
|
|
229
|
+
* announces "item 3 of 12", because that is all the accessibility tree can see.
|
|
230
|
+
* Pair with {@link setSize}.
|
|
231
|
+
*/
|
|
232
|
+
posInSet?: number;
|
|
233
|
+
/**
|
|
234
|
+
* Total size of the set the element belongs to — projected as `aria-setsize`.
|
|
235
|
+
*
|
|
236
|
+
* `-1` is the ARIA-defined value for "unknown but non-empty", appropriate for a
|
|
237
|
+
* lazily loaded set whose total is not yet known.
|
|
238
|
+
*/
|
|
239
|
+
setSize?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Total row count of a grid whose DOM holds only the visible rows — projected
|
|
242
|
+
* as `aria-rowcount`. Same rationale as {@link posInSet}: a virtualized table
|
|
243
|
+
* needs to state the real total, not the rendered one.
|
|
244
|
+
*/
|
|
245
|
+
rowCount?: number;
|
|
246
|
+
/** 1-based row index within the full grid — projected as `aria-rowindex`. */
|
|
247
|
+
rowIndex?: number;
|
|
248
|
+
/**
|
|
249
|
+
* Human-readable form of a range widget's current value — projected as
|
|
250
|
+
* `aria-valuetext`.
|
|
251
|
+
*
|
|
252
|
+
* A bare `aria-valuenow` is announced as a number out of context: "40" rather
|
|
253
|
+
* than "40 percent" or "Medium". Only set this when the number alone is
|
|
254
|
+
* genuinely ambiguous; a redundant valuetext makes announcements longer for no
|
|
255
|
+
* gain.
|
|
256
|
+
*/
|
|
257
|
+
valueText?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Orientation of a composite widget — projected as `aria-orientation`.
|
|
260
|
+
*
|
|
261
|
+
* Worth setting when it differs from the role's default (`slider` and
|
|
262
|
+
* `separator` default horizontal; `listbox`, `menu`, `tree` default vertical),
|
|
263
|
+
* because it tells assistive technology which arrow keys to expect.
|
|
264
|
+
*/
|
|
265
|
+
orientation?: 'horizontal' | 'vertical';
|
|
224
266
|
level?: number;
|
|
225
267
|
/** `aria-modal`: marks a `role="dialog"` as modal so assistive tech confines
|
|
226
268
|
* reading to it. Set on a modal dialog's shell. */
|