@vonage/vivid 4.30.1 → 4.31.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/custom-elements.json +13 -3
- package/lib/toggletip/locale.d.ts +3 -0
- package/lib/toggletip/toggletip.d.ts +347 -10
- package/locales/de-DE.cjs +6 -0
- package/locales/de-DE.js +6 -0
- package/locales/en-GB.cjs +6 -0
- package/locales/en-GB.js +6 -0
- package/locales/en-US.cjs +6 -0
- package/locales/en-US.js +6 -0
- package/locales/ja-JP.cjs +6 -0
- package/locales/ja-JP.js +6 -0
- package/locales/zh-CN.cjs +6 -0
- package/locales/zh-CN.js +6 -0
- package/package.json +1 -1
- package/shared/anchored.js +1 -1
- package/shared/definition13.cjs +1 -1
- package/shared/definition13.js +1 -1
- package/shared/definition15.cjs +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition31.cjs +1 -1
- package/shared/definition31.js +1 -1
- package/shared/definition5.cjs +1 -1
- package/shared/definition5.js +1 -1
- package/shared/definition60.cjs +7 -6
- package/shared/definition60.js +7 -6
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/vivid-element.cjs +1 -1
- package/shared/vivid-element.js +1 -1
package/custom-elements.json
CHANGED
|
@@ -32401,6 +32401,12 @@
|
|
|
32401
32401
|
}
|
|
32402
32402
|
]
|
|
32403
32403
|
},
|
|
32404
|
+
{
|
|
32405
|
+
"kind": "javascript-module",
|
|
32406
|
+
"path": "src/lib/toggletip/locale.ts",
|
|
32407
|
+
"declarations": [],
|
|
32408
|
+
"exports": []
|
|
32409
|
+
},
|
|
32404
32410
|
{
|
|
32405
32411
|
"kind": "javascript-module",
|
|
32406
32412
|
"path": "src/lib/toggletip/toggletip.ts",
|
|
@@ -32426,12 +32432,12 @@
|
|
|
32426
32432
|
"members": [
|
|
32427
32433
|
{
|
|
32428
32434
|
"kind": "field",
|
|
32429
|
-
"name": "#
|
|
32435
|
+
"name": "#originalAriaLabel",
|
|
32430
32436
|
"privacy": "private",
|
|
32431
32437
|
"type": {
|
|
32432
|
-
"text": "string"
|
|
32438
|
+
"text": "string | null"
|
|
32433
32439
|
},
|
|
32434
|
-
"default": "
|
|
32440
|
+
"default": "null"
|
|
32435
32441
|
},
|
|
32436
32442
|
{
|
|
32437
32443
|
"kind": "field",
|
|
@@ -32680,6 +32686,10 @@
|
|
|
32680
32686
|
}
|
|
32681
32687
|
],
|
|
32682
32688
|
"mixins": [
|
|
32689
|
+
{
|
|
32690
|
+
"name": "Localized",
|
|
32691
|
+
"module": "/src/shared/patterns"
|
|
32692
|
+
},
|
|
32683
32693
|
{
|
|
32684
32694
|
"name": "Anchored",
|
|
32685
32695
|
"module": "/src/shared/patterns/anchored"
|
|
@@ -2,21 +2,13 @@ import type { Placement } from '@floating-ui/dom';
|
|
|
2
2
|
import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
|
|
3
3
|
declare const Toggletip_base: {
|
|
4
4
|
new (...args: any[]): {
|
|
5
|
-
|
|
6
|
-
anchorChanged(): void;
|
|
7
|
-
_slottedAnchor?: HTMLElement[] | undefined;
|
|
8
|
-
_slottedAnchorChanged(): void;
|
|
9
|
-
_anchorEl?: HTMLElement | undefined;
|
|
10
|
-
"__#9@#updateAnchorEl": () => void;
|
|
11
|
-
"__#9@#observer"?: MutationObserver | undefined;
|
|
12
|
-
"__#9@#observeMissingAnchor": (anchorId: string) => void;
|
|
13
|
-
"__#9@#cleanupObserverIfNeeded": () => void;
|
|
5
|
+
readonly locale: import("../../shared/localization/Locale").Locale;
|
|
14
6
|
connectedCallback(): void;
|
|
15
|
-
disconnectedCallback(): void;
|
|
16
7
|
specialHandling: boolean;
|
|
17
8
|
_vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
|
|
18
9
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
19
10
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
20
12
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
21
13
|
accessKey: string;
|
|
22
14
|
readonly accessKeyLabel: string;
|
|
@@ -345,6 +337,351 @@ declare const Toggletip_base: {
|
|
|
345
337
|
toDeprecated?: ((v: any) => any) | undefined;
|
|
346
338
|
}): void;
|
|
347
339
|
};
|
|
340
|
+
} & {
|
|
341
|
+
new (...args: any[]): {
|
|
342
|
+
anchor?: (string | HTMLElement) | undefined;
|
|
343
|
+
anchorChanged(): void;
|
|
344
|
+
_slottedAnchor?: HTMLElement[] | undefined;
|
|
345
|
+
_slottedAnchorChanged(): void;
|
|
346
|
+
_anchorEl?: HTMLElement | undefined;
|
|
347
|
+
"__#9@#updateAnchorEl": () => void;
|
|
348
|
+
"__#9@#observer"?: MutationObserver | undefined;
|
|
349
|
+
"__#9@#observeMissingAnchor": (anchorId: string) => void;
|
|
350
|
+
"__#9@#cleanupObserverIfNeeded": () => void;
|
|
351
|
+
connectedCallback(): void;
|
|
352
|
+
disconnectedCallback(): void;
|
|
353
|
+
specialHandling: boolean;
|
|
354
|
+
_vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
|
|
355
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
356
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
357
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
358
|
+
accessKey: string;
|
|
359
|
+
readonly accessKeyLabel: string;
|
|
360
|
+
autocapitalize: string;
|
|
361
|
+
dir: string;
|
|
362
|
+
draggable: boolean;
|
|
363
|
+
hidden: boolean;
|
|
364
|
+
inert: boolean;
|
|
365
|
+
innerText: string;
|
|
366
|
+
lang: string;
|
|
367
|
+
readonly offsetHeight: number;
|
|
368
|
+
readonly offsetLeft: number;
|
|
369
|
+
readonly offsetParent: Element | null;
|
|
370
|
+
readonly offsetTop: number;
|
|
371
|
+
readonly offsetWidth: number;
|
|
372
|
+
outerText: string;
|
|
373
|
+
spellcheck: boolean;
|
|
374
|
+
title: string;
|
|
375
|
+
translate: boolean;
|
|
376
|
+
attachInternals(): ElementInternals;
|
|
377
|
+
click(): void;
|
|
378
|
+
addEventListener<K_17 extends keyof HTMLElementEventMap>(type: K_17, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_17]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
379
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
380
|
+
removeEventListener<K_18 extends keyof HTMLElementEventMap>(type: K_18, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_18]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
381
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
382
|
+
dropzone: import("dropzone");
|
|
383
|
+
readonly attributes: NamedNodeMap;
|
|
384
|
+
readonly classList: DOMTokenList;
|
|
385
|
+
className: string;
|
|
386
|
+
readonly clientHeight: number;
|
|
387
|
+
readonly clientLeft: number;
|
|
388
|
+
readonly clientTop: number;
|
|
389
|
+
readonly clientWidth: number;
|
|
390
|
+
id: string;
|
|
391
|
+
readonly localName: string;
|
|
392
|
+
readonly namespaceURI: string | null;
|
|
393
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
394
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
395
|
+
outerHTML: string;
|
|
396
|
+
readonly ownerDocument: Document;
|
|
397
|
+
readonly part: DOMTokenList;
|
|
398
|
+
readonly prefix: string | null;
|
|
399
|
+
readonly scrollHeight: number;
|
|
400
|
+
scrollLeft: number;
|
|
401
|
+
scrollTop: number;
|
|
402
|
+
readonly scrollWidth: number;
|
|
403
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
404
|
+
slot: string;
|
|
405
|
+
readonly tagName: string;
|
|
406
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
407
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
408
|
+
closest<K_19 extends keyof HTMLElementTagNameMap>(selector: K_19): HTMLElementTagNameMap[K_19] | null;
|
|
409
|
+
closest<K_20 extends keyof SVGElementTagNameMap>(selector: K_20): SVGElementTagNameMap[K_20] | null;
|
|
410
|
+
closest<K_21 extends keyof MathMLElementTagNameMap>(selector: K_21): MathMLElementTagNameMap[K_21] | null;
|
|
411
|
+
closest<E_3 extends Element = Element>(selectors: string): E_3 | null;
|
|
412
|
+
getAttribute(qualifiedName: string): string | null;
|
|
413
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
414
|
+
getAttributeNames(): string[];
|
|
415
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
416
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
417
|
+
getBoundingClientRect(): DOMRect;
|
|
418
|
+
getClientRects(): DOMRectList;
|
|
419
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
420
|
+
getElementsByTagName<K_22 extends keyof HTMLElementTagNameMap>(qualifiedName: K_22): HTMLCollectionOf<HTMLElementTagNameMap[K_22]>;
|
|
421
|
+
getElementsByTagName<K_23 extends keyof SVGElementTagNameMap>(qualifiedName: K_23): HTMLCollectionOf<SVGElementTagNameMap[K_23]>;
|
|
422
|
+
getElementsByTagName<K_24 extends keyof MathMLElementTagNameMap>(qualifiedName: K_24): HTMLCollectionOf<MathMLElementTagNameMap[K_24]>;
|
|
423
|
+
getElementsByTagName<K_25 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_25): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_25]>;
|
|
424
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
425
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
426
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
427
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
428
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
429
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
430
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
431
|
+
hasAttributes(): boolean;
|
|
432
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
433
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
434
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
435
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
436
|
+
matches(selectors: string): boolean;
|
|
437
|
+
releasePointerCapture(pointerId: number): void;
|
|
438
|
+
removeAttribute(qualifiedName: string): void;
|
|
439
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
440
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
441
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
442
|
+
requestPointerLock(): void;
|
|
443
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
444
|
+
scroll(x: number, y: number): void;
|
|
445
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
446
|
+
scrollBy(x: number, y: number): void;
|
|
447
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
448
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
449
|
+
scrollTo(x: number, y: number): void;
|
|
450
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
451
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
452
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
453
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
454
|
+
setPointerCapture(pointerId: number): void;
|
|
455
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
456
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
457
|
+
readonly baseURI: string;
|
|
458
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
459
|
+
readonly firstChild: ChildNode | null;
|
|
460
|
+
readonly isConnected: boolean;
|
|
461
|
+
readonly lastChild: ChildNode | null;
|
|
462
|
+
readonly nextSibling: ChildNode | null;
|
|
463
|
+
readonly nodeName: string;
|
|
464
|
+
readonly nodeType: number;
|
|
465
|
+
nodeValue: string | null;
|
|
466
|
+
readonly parentElement: HTMLElement | null;
|
|
467
|
+
readonly parentNode: ParentNode | null;
|
|
468
|
+
readonly previousSibling: ChildNode | null;
|
|
469
|
+
textContent: string | null;
|
|
470
|
+
appendChild<T extends Node>(node: T): T;
|
|
471
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
472
|
+
compareDocumentPosition(other: Node): number;
|
|
473
|
+
contains(other: Node | null): boolean;
|
|
474
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
475
|
+
hasChildNodes(): boolean;
|
|
476
|
+
insertBefore<T_4 extends Node>(node: T_4, child: Node | null): T_4;
|
|
477
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
478
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
479
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
480
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
481
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
482
|
+
normalize(): void;
|
|
483
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
484
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
485
|
+
readonly ELEMENT_NODE: 1;
|
|
486
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
487
|
+
readonly TEXT_NODE: 3;
|
|
488
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
489
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
490
|
+
readonly ENTITY_NODE: 6;
|
|
491
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
492
|
+
readonly COMMENT_NODE: 8;
|
|
493
|
+
readonly DOCUMENT_NODE: 9;
|
|
494
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
495
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
496
|
+
readonly NOTATION_NODE: 12;
|
|
497
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
498
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
499
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
500
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
501
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
502
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
503
|
+
dispatchEvent(event: Event): boolean;
|
|
504
|
+
ariaAtomic: string | null;
|
|
505
|
+
ariaAutoComplete: string | null;
|
|
506
|
+
ariaBusy: string | null;
|
|
507
|
+
ariaChecked: string | null;
|
|
508
|
+
ariaColCount: string | null;
|
|
509
|
+
ariaColIndex: string | null;
|
|
510
|
+
ariaColSpan: string | null;
|
|
511
|
+
ariaCurrent: string | null;
|
|
512
|
+
ariaDisabled: string | null;
|
|
513
|
+
ariaExpanded: string | null;
|
|
514
|
+
ariaHasPopup: string | null;
|
|
515
|
+
ariaHidden: string | null;
|
|
516
|
+
ariaInvalid: string | null;
|
|
517
|
+
ariaKeyShortcuts: string | null;
|
|
518
|
+
ariaLabel: string | null;
|
|
519
|
+
ariaLevel: string | null;
|
|
520
|
+
ariaLive: string | null;
|
|
521
|
+
ariaModal: string | null;
|
|
522
|
+
ariaMultiLine: string | null;
|
|
523
|
+
ariaMultiSelectable: string | null;
|
|
524
|
+
ariaOrientation: string | null;
|
|
525
|
+
ariaPlaceholder: string | null;
|
|
526
|
+
ariaPosInSet: string | null;
|
|
527
|
+
ariaPressed: string | null;
|
|
528
|
+
ariaReadOnly: string | null;
|
|
529
|
+
ariaRequired: string | null;
|
|
530
|
+
ariaRoleDescription: string | null;
|
|
531
|
+
ariaRowCount: string | null;
|
|
532
|
+
ariaRowIndex: string | null;
|
|
533
|
+
ariaRowSpan: string | null;
|
|
534
|
+
ariaSelected: string | null;
|
|
535
|
+
ariaSetSize: string | null;
|
|
536
|
+
ariaSort: string | null;
|
|
537
|
+
ariaValueMax: string | null;
|
|
538
|
+
ariaValueMin: string | null;
|
|
539
|
+
ariaValueNow: string | null;
|
|
540
|
+
ariaValueText: string | null;
|
|
541
|
+
role: string | null;
|
|
542
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
543
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
544
|
+
after(...nodes: (string | Node)[]): void;
|
|
545
|
+
before(...nodes: (string | Node)[]): void;
|
|
546
|
+
remove(): void;
|
|
547
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
548
|
+
innerHTML: string;
|
|
549
|
+
readonly nextElementSibling: Element | null;
|
|
550
|
+
readonly previousElementSibling: Element | null;
|
|
551
|
+
readonly childElementCount: number;
|
|
552
|
+
readonly children: HTMLCollection;
|
|
553
|
+
readonly firstElementChild: Element | null;
|
|
554
|
+
readonly lastElementChild: Element | null;
|
|
555
|
+
append(...nodes: (string | Node)[]): void;
|
|
556
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
557
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
558
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
559
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
560
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
561
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
562
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
563
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
564
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
565
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
566
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
567
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
568
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
569
|
+
readonly style: CSSStyleDeclaration;
|
|
570
|
+
contentEditable: string;
|
|
571
|
+
enterKeyHint: string;
|
|
572
|
+
inputMode: string;
|
|
573
|
+
readonly isContentEditable: boolean;
|
|
574
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
575
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
576
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
577
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
578
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
579
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
580
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
581
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
582
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
583
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
584
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
585
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
586
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
587
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
588
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
589
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
590
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
591
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
592
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
593
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
594
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
595
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
596
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
597
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
598
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
599
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
600
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
601
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
602
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
603
|
+
onerror: OnErrorEventHandler;
|
|
604
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
605
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
606
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
607
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
608
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
609
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
610
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
611
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
612
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
613
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
614
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
615
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
616
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
617
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
618
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
619
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
620
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
621
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
622
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
623
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
624
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
625
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
626
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
627
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
628
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
629
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
630
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
631
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
632
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
633
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
634
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
635
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
636
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
637
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
638
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
639
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
640
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
641
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
642
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
643
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
644
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
645
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
646
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
647
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
648
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
649
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
650
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
651
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
652
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
653
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
654
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
655
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
656
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
657
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
658
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
659
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
660
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
661
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
662
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
663
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
664
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
665
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
666
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
667
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
668
|
+
autofocus: boolean;
|
|
669
|
+
readonly dataset: DOMStringMap;
|
|
670
|
+
nonce?: string | undefined;
|
|
671
|
+
tabIndex: number;
|
|
672
|
+
blur(): void;
|
|
673
|
+
focus(options?: FocusOptions | undefined): void;
|
|
674
|
+
ariaColIndexText: string | null;
|
|
675
|
+
ariaDescription: string | null;
|
|
676
|
+
ariaRowIndexText: string | null;
|
|
677
|
+
ariaRelevant: string | null;
|
|
678
|
+
"__#1@#handleReplacedProp"(replacedProp: {
|
|
679
|
+
newPropertyName: string;
|
|
680
|
+
deprecatedPropertyName: string;
|
|
681
|
+
fromDeprecated: (v: any) => any;
|
|
682
|
+
toDeprecated?: ((v: any) => any) | undefined;
|
|
683
|
+
}): void;
|
|
684
|
+
};
|
|
348
685
|
} & typeof VividElement;
|
|
349
686
|
export declare class Toggletip extends Toggletip_base {
|
|
350
687
|
#private;
|
package/locales/de-DE.cjs
CHANGED
|
@@ -454,6 +454,12 @@ const deDE = {
|
|
|
454
454
|
/* istanbul ignore next */
|
|
455
455
|
(label) => `Entfernen ${label}`
|
|
456
456
|
)
|
|
457
|
+
},
|
|
458
|
+
toggletip: {
|
|
459
|
+
anchorLabel: (
|
|
460
|
+
/* istanbul ignore next */
|
|
461
|
+
(ariaLabel) => ariaLabel ? `Weitere Informationen zu ${ariaLabel} anzeigen` : `Weitere Informationen anzeigen`
|
|
462
|
+
)
|
|
457
463
|
}
|
|
458
464
|
};
|
|
459
465
|
|
package/locales/de-DE.js
CHANGED
|
@@ -452,6 +452,12 @@ const deDE = {
|
|
|
452
452
|
/* istanbul ignore next */
|
|
453
453
|
(label) => `Entfernen ${label}`
|
|
454
454
|
)
|
|
455
|
+
},
|
|
456
|
+
toggletip: {
|
|
457
|
+
anchorLabel: (
|
|
458
|
+
/* istanbul ignore next */
|
|
459
|
+
(ariaLabel) => ariaLabel ? `Weitere Informationen zu ${ariaLabel} anzeigen` : `Weitere Informationen anzeigen`
|
|
460
|
+
)
|
|
455
461
|
}
|
|
456
462
|
};
|
|
457
463
|
|
package/locales/en-GB.cjs
CHANGED
|
@@ -286,6 +286,12 @@ const enGB = {
|
|
|
286
286
|
/* istanbul ignore next */
|
|
287
287
|
(label) => `Remove ${label}`
|
|
288
288
|
)
|
|
289
|
+
},
|
|
290
|
+
toggletip: {
|
|
291
|
+
anchorLabel: (
|
|
292
|
+
/* istanbul ignore next */
|
|
293
|
+
(ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
|
|
294
|
+
)
|
|
289
295
|
}
|
|
290
296
|
};
|
|
291
297
|
|
package/locales/en-GB.js
CHANGED
|
@@ -284,6 +284,12 @@ const enGB = {
|
|
|
284
284
|
/* istanbul ignore next */
|
|
285
285
|
(label) => `Remove ${label}`
|
|
286
286
|
)
|
|
287
|
+
},
|
|
288
|
+
toggletip: {
|
|
289
|
+
anchorLabel: (
|
|
290
|
+
/* istanbul ignore next */
|
|
291
|
+
(ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
|
|
292
|
+
)
|
|
287
293
|
}
|
|
288
294
|
};
|
|
289
295
|
|
package/locales/en-US.cjs
CHANGED
|
@@ -454,6 +454,12 @@ const enUS = {
|
|
|
454
454
|
/* istanbul ignore next */
|
|
455
455
|
(label) => `Remove ${label}`
|
|
456
456
|
)
|
|
457
|
+
},
|
|
458
|
+
toggletip: {
|
|
459
|
+
anchorLabel: (
|
|
460
|
+
/* istanbul ignore next */
|
|
461
|
+
(ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
|
|
462
|
+
)
|
|
457
463
|
}
|
|
458
464
|
};
|
|
459
465
|
|
package/locales/en-US.js
CHANGED
|
@@ -452,6 +452,12 @@ const enUS = {
|
|
|
452
452
|
/* istanbul ignore next */
|
|
453
453
|
(label) => `Remove ${label}`
|
|
454
454
|
)
|
|
455
|
+
},
|
|
456
|
+
toggletip: {
|
|
457
|
+
anchorLabel: (
|
|
458
|
+
/* istanbul ignore next */
|
|
459
|
+
(ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
|
|
460
|
+
)
|
|
455
461
|
}
|
|
456
462
|
};
|
|
457
463
|
|
package/locales/ja-JP.cjs
CHANGED
|
@@ -453,6 +453,12 @@ const jaJP = {
|
|
|
453
453
|
/* istanbul ignore next */
|
|
454
454
|
(label) => `削除する ${label}`
|
|
455
455
|
)
|
|
456
|
+
},
|
|
457
|
+
toggletip: {
|
|
458
|
+
anchorLabel: (
|
|
459
|
+
/* istanbul ignore next */
|
|
460
|
+
(ariaLabel) => ariaLabel ? `さらに情報を表示 ${ariaLabel}` : `さらに情報を表示`
|
|
461
|
+
)
|
|
456
462
|
}
|
|
457
463
|
};
|
|
458
464
|
|
package/locales/ja-JP.js
CHANGED
|
@@ -451,6 +451,12 @@ const jaJP = {
|
|
|
451
451
|
/* istanbul ignore next */
|
|
452
452
|
(label) => `削除する ${label}`
|
|
453
453
|
)
|
|
454
|
+
},
|
|
455
|
+
toggletip: {
|
|
456
|
+
anchorLabel: (
|
|
457
|
+
/* istanbul ignore next */
|
|
458
|
+
(ariaLabel) => ariaLabel ? `さらに情報を表示 ${ariaLabel}` : `さらに情報を表示`
|
|
459
|
+
)
|
|
454
460
|
}
|
|
455
461
|
};
|
|
456
462
|
|
package/locales/zh-CN.cjs
CHANGED
|
@@ -455,6 +455,12 @@ const zhCN = {
|
|
|
455
455
|
/* istanbul ignore next */
|
|
456
456
|
(label) => `移除 ${label}`
|
|
457
457
|
)
|
|
458
|
+
},
|
|
459
|
+
toggletip: {
|
|
460
|
+
anchorLabel: (
|
|
461
|
+
/* istanbul ignore next */
|
|
462
|
+
(ariaLabel) => ariaLabel ? `关于 ${ariaLabel} 的更多信息` : `显示更多信息`
|
|
463
|
+
)
|
|
458
464
|
}
|
|
459
465
|
};
|
|
460
466
|
|
package/locales/zh-CN.js
CHANGED
|
@@ -453,6 +453,12 @@ const zhCN = {
|
|
|
453
453
|
/* istanbul ignore next */
|
|
454
454
|
(label) => `移除 ${label}`
|
|
455
455
|
)
|
|
456
|
+
},
|
|
457
|
+
toggletip: {
|
|
458
|
+
anchorLabel: (
|
|
459
|
+
/* istanbul ignore next */
|
|
460
|
+
(ariaLabel) => ariaLabel ? `关于 ${ariaLabel} 的更多信息` : `显示更多信息`
|
|
461
|
+
)
|
|
456
462
|
}
|
|
457
463
|
};
|
|
458
464
|
|
package/package.json
CHANGED
package/shared/anchored.js
CHANGED
package/shared/definition13.cjs
CHANGED
package/shared/definition13.js
CHANGED
package/shared/definition15.cjs
CHANGED
|
@@ -169,7 +169,7 @@ const CheckboxTemplate = (context) => {
|
|
|
169
169
|
>
|
|
170
170
|
<div class="control">
|
|
171
171
|
${when.when(
|
|
172
|
-
(x) => x.checked,
|
|
172
|
+
(x) => x.checked && !x.indeterminate,
|
|
173
173
|
vividElement.html`<${iconTag} name="check-solid" class="icon"></${iconTag}>`
|
|
174
174
|
)}
|
|
175
175
|
${when.when(
|
package/shared/definition15.js
CHANGED
package/shared/definition31.cjs
CHANGED
package/shared/definition31.js
CHANGED
package/shared/definition5.cjs
CHANGED
|
@@ -379,7 +379,7 @@ const AudioPlayerTemplate = (context) => {
|
|
|
379
379
|
${when.when(
|
|
380
380
|
(x) => Boolean(x.playbackRates),
|
|
381
381
|
vividElement.html`
|
|
382
|
-
<${menuTag} class="playback-rates"
|
|
382
|
+
<${menuTag} class="playback-rates" placement="top-start" auto-dismiss id="playback-menu" position-strategy="absolute">
|
|
383
383
|
<${buttonTag} id="playback-open-button"
|
|
384
384
|
class="playback-button"
|
|
385
385
|
slot="anchor"
|
package/shared/definition5.js
CHANGED
|
@@ -377,7 +377,7 @@ const AudioPlayerTemplate = (context) => {
|
|
|
377
377
|
${when(
|
|
378
378
|
(x) => Boolean(x.playbackRates),
|
|
379
379
|
html`
|
|
380
|
-
<${menuTag} class="playback-rates"
|
|
380
|
+
<${menuTag} class="playback-rates" placement="top-start" auto-dismiss id="playback-menu" position-strategy="absolute">
|
|
381
381
|
<${buttonTag} id="playback-open-button"
|
|
382
382
|
class="playback-button"
|
|
383
383
|
slot="anchor"
|
package/shared/definition60.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const definition = require('./definition67.cjs');
|
|
4
4
|
const vividElement = require('./vivid-element.cjs');
|
|
5
5
|
const anchored = require('./anchored.cjs');
|
|
6
|
+
const localized = require('./localized.cjs');
|
|
6
7
|
const index = require('./index.cjs');
|
|
7
8
|
const classNames = require('./class-names.cjs');
|
|
8
9
|
const when = require('./when.cjs');
|
|
@@ -18,10 +19,10 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
19
|
if (result) __defProp(target, key, result);
|
|
19
20
|
return result;
|
|
20
21
|
};
|
|
21
|
-
class Toggletip extends anchored.Anchored(vividElement.VividElement) {
|
|
22
|
+
class Toggletip extends localized.Localized(anchored.Anchored(vividElement.VividElement)) {
|
|
22
23
|
constructor() {
|
|
23
24
|
super(...arguments);
|
|
24
|
-
this.#
|
|
25
|
+
this.#originalAriaLabel = null;
|
|
25
26
|
this.alternate = false;
|
|
26
27
|
this.placement = "right";
|
|
27
28
|
this.open = false;
|
|
@@ -39,7 +40,7 @@ class Toggletip extends anchored.Anchored(vividElement.VividElement) {
|
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
#
|
|
43
|
+
#originalAriaLabel;
|
|
43
44
|
openChanged(oldValue, newValue) {
|
|
44
45
|
if (oldValue === void 0) return;
|
|
45
46
|
if (newValue) {
|
|
@@ -69,7 +70,8 @@ class Toggletip extends anchored.Anchored(vividElement.VividElement) {
|
|
|
69
70
|
}
|
|
70
71
|
#setupAnchor(a) {
|
|
71
72
|
a.addEventListener("click", this.#openIfClosed, true);
|
|
72
|
-
|
|
73
|
+
this.#originalAriaLabel = a.ariaLabel;
|
|
74
|
+
a.ariaLabel = `${this.locale.toggletip.anchorLabel(a.ariaLabel || "")}`;
|
|
73
75
|
this.#updateAnchor(a);
|
|
74
76
|
}
|
|
75
77
|
#updateAnchor(a) {
|
|
@@ -78,8 +80,7 @@ class Toggletip extends anchored.Anchored(vividElement.VividElement) {
|
|
|
78
80
|
}
|
|
79
81
|
#cleanupAnchor(a) {
|
|
80
82
|
a.removeEventListener("click", this.#openIfClosed, true);
|
|
81
|
-
if (a.ariaLabel)
|
|
82
|
-
a.ariaLabel = a.ariaLabel.replace(this.#ANCHOR_ARIA_LABEL_SUFFIX, "");
|
|
83
|
+
if (a.ariaLabel) a.ariaLabel = this.#originalAriaLabel;
|
|
83
84
|
a.removeAttribute("aria-expanded");
|
|
84
85
|
a.removeAttribute("data-expanded");
|
|
85
86
|
}
|
package/shared/definition60.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { P as Popup, p as popupDefinition } from './definition67.js';
|
|
2
2
|
import { D as DOM, V as VividElement, a as attr, h as html, d as createRegisterFunction, f as defineVividComponent } from './vivid-element.js';
|
|
3
3
|
import { A as Anchored, a as anchorSlotTemplateFactory } from './anchored.js';
|
|
4
|
+
import { L as Localized } from './localized.js';
|
|
4
5
|
import { h as handleEscapeKeyAndStopPropogation } from './index.js';
|
|
5
6
|
import { c as classNames } from './class-names.js';
|
|
6
7
|
import { w as when } from './when.js';
|
|
@@ -16,10 +17,10 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
16
17
|
if (result) __defProp(target, key, result);
|
|
17
18
|
return result;
|
|
18
19
|
};
|
|
19
|
-
class Toggletip extends Anchored(VividElement) {
|
|
20
|
+
class Toggletip extends Localized(Anchored(VividElement)) {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
22
|
-
this.#
|
|
23
|
+
this.#originalAriaLabel = null;
|
|
23
24
|
this.alternate = false;
|
|
24
25
|
this.placement = "right";
|
|
25
26
|
this.open = false;
|
|
@@ -37,7 +38,7 @@ class Toggletip extends Anchored(VividElement) {
|
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
#
|
|
41
|
+
#originalAriaLabel;
|
|
41
42
|
openChanged(oldValue, newValue) {
|
|
42
43
|
if (oldValue === void 0) return;
|
|
43
44
|
if (newValue) {
|
|
@@ -67,7 +68,8 @@ class Toggletip extends Anchored(VividElement) {
|
|
|
67
68
|
}
|
|
68
69
|
#setupAnchor(a) {
|
|
69
70
|
a.addEventListener("click", this.#openIfClosed, true);
|
|
70
|
-
|
|
71
|
+
this.#originalAriaLabel = a.ariaLabel;
|
|
72
|
+
a.ariaLabel = `${this.locale.toggletip.anchorLabel(a.ariaLabel || "")}`;
|
|
71
73
|
this.#updateAnchor(a);
|
|
72
74
|
}
|
|
73
75
|
#updateAnchor(a) {
|
|
@@ -76,8 +78,7 @@ class Toggletip extends Anchored(VividElement) {
|
|
|
76
78
|
}
|
|
77
79
|
#cleanupAnchor(a) {
|
|
78
80
|
a.removeEventListener("click", this.#openIfClosed, true);
|
|
79
|
-
if (a.ariaLabel)
|
|
80
|
-
a.ariaLabel = a.ariaLabel.replace(this.#ANCHOR_ARIA_LABEL_SUFFIX, "");
|
|
81
|
+
if (a.ariaLabel) a.ariaLabel = this.#originalAriaLabel;
|
|
81
82
|
a.removeAttribute("aria-expanded");
|
|
82
83
|
a.removeAttribute("data-expanded");
|
|
83
84
|
}
|
|
@@ -22,6 +22,7 @@ import type { DataGridLocale } from '../../lib/data-grid/locale';
|
|
|
22
22
|
import type { PaginationLocale } from '../../lib/pagination/locale';
|
|
23
23
|
import type { TagLocale } from '../../lib/tag/locale';
|
|
24
24
|
import type { Connotation } from '../../lib/enums';
|
|
25
|
+
import type { ToggletipLocale } from '../../lib/toggletip/locale';
|
|
25
26
|
type ConnotationAnnoncementLocale = {
|
|
26
27
|
[key in Connotation as `${key}Icon`]: string;
|
|
27
28
|
};
|
|
@@ -54,5 +55,6 @@ export interface Locale {
|
|
|
54
55
|
dataGrid: DataGridLocale;
|
|
55
56
|
pagination: PaginationLocale;
|
|
56
57
|
tag: TagLocale;
|
|
58
|
+
toggletip: ToggletipLocale;
|
|
57
59
|
}
|
|
58
60
|
export {};
|
package/shared/vivid-element.cjs
CHANGED
|
@@ -2734,7 +2734,7 @@ const ReplacedPropHandling = (Base) => {
|
|
|
2734
2734
|
|
|
2735
2735
|
class VividElement extends AriaMixin(ReplacedPropHandling(FASTElement)) {
|
|
2736
2736
|
static {
|
|
2737
|
-
this.VIVID_VERSION = "4.
|
|
2737
|
+
this.VIVID_VERSION = "4.31.0";
|
|
2738
2738
|
}
|
|
2739
2739
|
/**
|
|
2740
2740
|
* Add data-vvd-component attribute with component name globally,
|
package/shared/vivid-element.js
CHANGED
|
@@ -2732,7 +2732,7 @@ const ReplacedPropHandling = (Base) => {
|
|
|
2732
2732
|
|
|
2733
2733
|
class VividElement extends AriaMixin(ReplacedPropHandling(FASTElement)) {
|
|
2734
2734
|
static {
|
|
2735
|
-
this.VIVID_VERSION = "4.
|
|
2735
|
+
this.VIVID_VERSION = "4.31.0";
|
|
2736
2736
|
}
|
|
2737
2737
|
/**
|
|
2738
2738
|
* Add data-vvd-component attribute with component name globally,
|