@vonage/vivid 4.22.0 → 4.24.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 +1658 -370
- package/lib/accordion-item/accordion-item.d.ts +11 -5
- package/lib/action-group/action-group.d.ts +8 -6
- package/lib/alert/alert.d.ts +21 -9
- package/lib/audio-player/audio-player.d.ts +11 -5
- package/lib/badge/badge.d.ts +11 -5
- package/lib/banner/banner.d.ts +26 -12
- package/lib/breadcrumb/breadcrumb.d.ts +333 -1
- package/lib/breadcrumb/breadcrumb.template.d.ts +2 -3
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +8 -6
- package/lib/button/button.d.ts +11 -5
- package/lib/calendar-event/calendar-event.d.ts +333 -1
- package/lib/checkbox/checkbox.d.ts +8 -6
- package/lib/combobox/combobox.d.ts +11 -5
- package/lib/date-picker/date-picker.d.ts +74 -50
- package/lib/date-range-picker/date-range-picker.d.ts +38 -26
- package/lib/date-time-picker/date-time-picker.d.ts +76 -52
- package/lib/dial-pad/dial-pad.d.ts +11 -5
- package/lib/dialog/dialog.d.ts +16 -8
- package/lib/divider/divider.d.ts +8 -6
- package/lib/fab/fab.d.ts +11 -5
- package/lib/file-picker/file-picker.d.ts +337 -1
- package/lib/file-picker/locale.d.ts +1 -0
- package/lib/header/header.d.ts +333 -1
- package/lib/menu/menu.d.ts +16 -8
- package/lib/menu-item/menu-item.d.ts +338 -2
- package/lib/nav/nav.d.ts +333 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +16 -8
- package/lib/nav-item/nav-item.d.ts +11 -5
- package/lib/note/note.d.ts +11 -5
- package/lib/number-field/number-field.d.ts +26 -12
- package/lib/option/option.d.ts +339 -3
- package/lib/progress/progress.d.ts +8 -6
- package/lib/progress-ring/progress-ring.d.ts +8 -6
- package/lib/radio-group/radio-group.d.ts +333 -1
- package/lib/range-slider/range-slider.d.ts +11 -5
- package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +1 -1
- package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +7 -1
- package/lib/rich-text-editor/locale.d.ts +9 -0
- package/lib/rich-text-editor/menubar/consts.d.ts +18 -0
- package/lib/rich-text-editor/menubar/menubar.d.ts +337 -1
- package/lib/rich-text-editor/rich-text-editor.d.ts +10 -0
- package/lib/searchable-select/locale.d.ts +1 -0
- package/lib/searchable-select/option-tag.d.ts +11 -5
- package/lib/searchable-select/searchable-select.d.ts +350 -7
- package/lib/select/select.d.ts +339 -3
- package/lib/selectable-box/selectable-box.d.ts +8 -6
- package/lib/slider/slider.d.ts +16 -8
- package/lib/split-button/split-button.d.ts +26 -12
- package/lib/switch/switch.d.ts +8 -6
- package/lib/tab/tab.d.ts +349 -7
- package/lib/tab-panel/tab-panel.d.ts +333 -1
- package/lib/tabs/tabs.d.ts +5 -21
- package/lib/tag/tag.d.ts +338 -2
- package/lib/tag-group/tag-group.d.ts +8 -6
- package/lib/text-anchor/text-anchor.d.ts +16 -8
- package/lib/text-area/text-area.d.ts +8 -6
- package/lib/text-field/text-field.d.ts +16 -8
- package/lib/time-picker/time-picker.d.ts +38 -26
- package/lib/toggletip/toggletip.d.ts +9 -3
- package/lib/tooltip/tooltip.d.ts +9 -3
- package/lib/tree-item/tree-item.d.ts +338 -2
- package/lib/tree-view/tree-view.d.ts +333 -1
- package/lib/video-player/video-player.d.ts +11 -5
- package/locales/de-DE.cjs +15 -1
- package/locales/de-DE.js +15 -1
- package/locales/en-GB.cjs +15 -1
- package/locales/en-GB.js +15 -1
- package/locales/en-US.cjs +15 -1
- package/locales/en-US.js +15 -1
- package/locales/ja-JP.cjs +15 -1
- package/locales/ja-JP.js +15 -1
- package/locales/zh-CN.cjs +15 -1
- package/locales/zh-CN.js +15 -1
- package/package.json +1 -1
- package/shared/affix.js +1 -1
- package/shared/aria/aria-change-subscription.d.ts +6 -0
- package/shared/aria/aria-mixin.d.ts +338 -0
- package/shared/aria/delegate-aria-behavior.d.ts +31 -0
- package/shared/aria/delegates-aria.d.ts +14 -9
- package/shared/aria/host-semantics-behavior.d.ts +22 -0
- package/shared/aria/host-semantics.d.ts +337 -0
- package/shared/attribute-binding-behaviour.cjs +41 -0
- package/shared/attribute-binding-behaviour.js +39 -0
- package/shared/button.cjs +6 -3
- package/shared/button.js +6 -3
- package/shared/calendar-event.cjs +2 -1
- package/shared/calendar-event.js +2 -1
- package/shared/definition.js +1 -1
- package/shared/definition10.cjs +8 -2
- package/shared/definition10.js +9 -3
- package/shared/definition11.cjs +4 -28
- package/shared/definition11.js +5 -29
- package/shared/definition12.cjs +5 -2
- package/shared/definition12.js +6 -3
- package/shared/definition13.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.cjs +8 -7
- package/shared/definition15.js +10 -9
- package/shared/definition16.js +1 -1
- package/shared/definition17.cjs +4 -1
- package/shared/definition17.js +5 -2
- package/shared/definition18.js +1 -1
- package/shared/definition19.js +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition21.js +1 -1
- package/shared/definition22.cjs +11 -4
- package/shared/definition22.js +13 -6
- package/shared/definition23.cjs +4 -2
- package/shared/definition23.js +6 -4
- package/shared/definition24.js +1 -1
- package/shared/definition25.cjs +2 -14
- package/shared/definition25.js +3 -15
- package/shared/definition26.cjs +19 -3
- package/shared/definition26.js +20 -4
- package/shared/definition27.cjs +3 -2
- package/shared/definition27.js +4 -3
- package/shared/definition28.js +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition3.cjs +3 -2
- package/shared/definition3.js +5 -4
- package/shared/definition30.cjs +33 -34
- package/shared/definition30.js +35 -36
- package/shared/definition31.cjs +6 -4
- package/shared/definition31.js +8 -6
- package/shared/definition32.js +1 -1
- package/shared/definition33.cjs +7 -2
- package/shared/definition33.js +8 -3
- package/shared/definition34.js +1 -1
- package/shared/definition35.cjs +2 -13
- package/shared/definition35.js +4 -15
- package/shared/definition36.cjs +8 -5
- package/shared/definition36.js +9 -6
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +7 -8
- package/shared/definition38.js +9 -10
- package/shared/definition39.cjs +7 -8
- package/shared/definition39.js +9 -10
- package/shared/definition4.js +1 -1
- package/shared/definition40.cjs +8 -5
- package/shared/definition40.js +9 -6
- package/shared/definition41.js +1 -1
- package/shared/definition42.js +1 -1
- package/shared/definition43.cjs +558 -134
- package/shared/definition43.js +550 -126
- package/shared/definition44.cjs +83 -10
- package/shared/definition44.js +84 -11
- package/shared/definition45.cjs +20 -8
- package/shared/definition45.js +21 -9
- package/shared/definition46.cjs +18 -6
- package/shared/definition46.js +20 -8
- package/shared/definition47.js +1 -1
- package/shared/definition48.js +1 -1
- package/shared/definition49.cjs +10 -3
- package/shared/definition49.js +12 -5
- package/shared/definition5.cjs +7 -2
- package/shared/definition5.js +8 -3
- package/shared/definition50.cjs +8 -7
- package/shared/definition50.js +10 -9
- package/shared/definition51.cjs +3 -2
- package/shared/definition51.js +4 -3
- package/shared/definition52.cjs +8 -4
- package/shared/definition52.js +9 -5
- package/shared/definition53.cjs +219 -297
- package/shared/definition53.js +221 -299
- package/shared/definition54.cjs +4 -3
- package/shared/definition54.js +6 -5
- package/shared/definition55.cjs +7 -4
- package/shared/definition55.js +8 -5
- package/shared/definition56.cjs +68 -14
- package/shared/definition56.js +69 -15
- package/shared/definition57.cjs +163 -112
- package/shared/definition57.js +165 -114
- package/shared/definition58.js +1 -1
- package/shared/definition59.js +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition60.js +1 -1
- package/shared/definition61.cjs +8 -5
- package/shared/definition61.js +9 -6
- package/shared/definition62.cjs +5 -2
- package/shared/definition62.js +6 -3
- package/shared/definition63.js +1 -1
- package/shared/definition64.js +1 -1
- package/shared/definition65.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.cjs +4 -2
- package/shared/definition8.js +6 -4
- package/shared/definition9.js +1 -1
- package/shared/delegates-aria.cjs +106 -56
- package/shared/delegates-aria.js +107 -58
- package/shared/foundation/button/button.d.ts +8 -6
- package/shared/foundation/vivid-element/vivid-element.d.ts +339 -1
- package/shared/host-semantics.cjs +65 -0
- package/shared/host-semantics.js +62 -0
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/option.cjs +4 -1
- package/shared/option.js +4 -1
- package/shared/patterns/affix.d.ts +22 -10
- package/shared/patterns/anchored.d.ts +18 -6
- package/shared/patterns/localized.d.ts +11 -5
- package/shared/patterns/trapped-focus.d.ts +11 -5
- package/shared/picker-field/mixins/calendar-picker.d.ts +19 -13
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +19 -13
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +11 -5
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +38 -26
- package/shared/picker-field/mixins/single-date-picker.d.ts +55 -37
- package/shared/picker-field/mixins/single-value-picker.d.ts +17 -11
- package/shared/picker-field/mixins/time-selection-picker.d.ts +38 -26
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +38 -26
- package/shared/picker-field/picker-field.d.ts +21 -9
- package/shared/picker-field.template.js +1 -1
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +10 -9
- package/shared/slider.template.js +10 -9
- package/shared/templating/attribute-binding-behaviour.d.ts +15 -0
- package/shared/templating/render-in-light-dom.d.ts +22 -0
- package/shared/text-anchor.template.cjs +2 -13
- package/shared/text-anchor.template.js +2 -13
- package/shared/time-selection-picker.template.js +1 -1
- package/shared/vivid-element.cjs +96 -2
- package/shared/vivid-element.js +93 -3
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/text-anchor/index.js +1 -1
- package/vivid.api.json +188 -17
- package/shared/Reflector.cjs +0 -71
- package/shared/Reflector.js +0 -69
|
@@ -1,4 +1,342 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
|
|
2
|
+
declare const VividElement_base: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
specialHandling: boolean;
|
|
5
|
+
_vividAriaBehaviour: import("../../aria/aria-mixin").VividAriaBehaviour;
|
|
6
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
7
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
11
|
+
accessKey: string;
|
|
12
|
+
readonly accessKeyLabel: string;
|
|
13
|
+
autocapitalize: string;
|
|
14
|
+
dir: string;
|
|
15
|
+
draggable: boolean;
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
inert: boolean;
|
|
18
|
+
innerText: string;
|
|
19
|
+
lang: string;
|
|
20
|
+
readonly offsetHeight: number;
|
|
21
|
+
readonly offsetLeft: number;
|
|
22
|
+
readonly offsetParent: Element | null;
|
|
23
|
+
readonly offsetTop: number;
|
|
24
|
+
readonly offsetWidth: number;
|
|
25
|
+
outerText: string;
|
|
26
|
+
spellcheck: boolean;
|
|
27
|
+
title: string;
|
|
28
|
+
translate: boolean;
|
|
29
|
+
attachInternals(): ElementInternals;
|
|
30
|
+
click(): void;
|
|
31
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
32
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
33
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
34
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
35
|
+
dropzone: import("dropzone");
|
|
36
|
+
readonly attributes: NamedNodeMap;
|
|
37
|
+
readonly classList: DOMTokenList;
|
|
38
|
+
className: string;
|
|
39
|
+
readonly clientHeight: number;
|
|
40
|
+
readonly clientLeft: number;
|
|
41
|
+
readonly clientTop: number;
|
|
42
|
+
readonly clientWidth: number;
|
|
43
|
+
id: string;
|
|
44
|
+
readonly localName: string;
|
|
45
|
+
readonly namespaceURI: string | null;
|
|
46
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
47
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
48
|
+
outerHTML: string;
|
|
49
|
+
readonly ownerDocument: Document;
|
|
50
|
+
readonly part: DOMTokenList;
|
|
51
|
+
readonly prefix: string | null;
|
|
52
|
+
readonly scrollHeight: number;
|
|
53
|
+
scrollLeft: number;
|
|
54
|
+
scrollTop: number;
|
|
55
|
+
readonly scrollWidth: number;
|
|
56
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
57
|
+
slot: string;
|
|
58
|
+
readonly tagName: string;
|
|
59
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
60
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
61
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
62
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
63
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
64
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
65
|
+
getAttribute(qualifiedName: string): string | null;
|
|
66
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
67
|
+
getAttributeNames(): string[];
|
|
68
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
69
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
70
|
+
getBoundingClientRect(): DOMRect;
|
|
71
|
+
getClientRects(): DOMRectList;
|
|
72
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
73
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
74
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
75
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
76
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
77
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
78
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
79
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
80
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
81
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
82
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
83
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
84
|
+
hasAttributes(): boolean;
|
|
85
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
86
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
87
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
88
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
89
|
+
matches(selectors: string): boolean;
|
|
90
|
+
releasePointerCapture(pointerId: number): void;
|
|
91
|
+
removeAttribute(qualifiedName: string): void;
|
|
92
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
93
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
94
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
95
|
+
requestPointerLock(): void;
|
|
96
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
97
|
+
scroll(x: number, y: number): void;
|
|
98
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
99
|
+
scrollBy(x: number, y: number): void;
|
|
100
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
101
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
102
|
+
scrollTo(x: number, y: number): void;
|
|
103
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
104
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
105
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
106
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
107
|
+
setPointerCapture(pointerId: number): void;
|
|
108
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
109
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
110
|
+
readonly baseURI: string;
|
|
111
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
112
|
+
readonly firstChild: ChildNode | null;
|
|
113
|
+
readonly isConnected: boolean;
|
|
114
|
+
readonly lastChild: ChildNode | null;
|
|
115
|
+
readonly nextSibling: ChildNode | null;
|
|
116
|
+
readonly nodeName: string;
|
|
117
|
+
readonly nodeType: number;
|
|
118
|
+
nodeValue: string | null;
|
|
119
|
+
readonly parentElement: HTMLElement | null;
|
|
120
|
+
readonly parentNode: ParentNode | null;
|
|
121
|
+
readonly previousSibling: ChildNode | null;
|
|
122
|
+
textContent: string | null;
|
|
123
|
+
appendChild<T extends Node>(node: T): T;
|
|
124
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
125
|
+
compareDocumentPosition(other: Node): number;
|
|
126
|
+
contains(other: Node | null): boolean;
|
|
127
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
128
|
+
hasChildNodes(): boolean;
|
|
129
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
130
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
131
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
132
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
133
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
134
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
135
|
+
normalize(): void;
|
|
136
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
137
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
138
|
+
readonly ELEMENT_NODE: 1;
|
|
139
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
140
|
+
readonly TEXT_NODE: 3;
|
|
141
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
142
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
143
|
+
readonly ENTITY_NODE: 6;
|
|
144
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
145
|
+
readonly COMMENT_NODE: 8;
|
|
146
|
+
readonly DOCUMENT_NODE: 9;
|
|
147
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
148
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
149
|
+
readonly NOTATION_NODE: 12;
|
|
150
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
151
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
152
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
153
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
154
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
155
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
156
|
+
dispatchEvent(event: Event): boolean;
|
|
157
|
+
ariaAtomic: string | null;
|
|
158
|
+
ariaAutoComplete: string | null;
|
|
159
|
+
ariaBusy: string | null;
|
|
160
|
+
ariaChecked: string | null;
|
|
161
|
+
ariaColCount: string | null;
|
|
162
|
+
ariaColIndex: string | null;
|
|
163
|
+
ariaColSpan: string | null;
|
|
164
|
+
ariaCurrent: string | null;
|
|
165
|
+
ariaDisabled: string | null;
|
|
166
|
+
ariaExpanded: string | null;
|
|
167
|
+
ariaHasPopup: string | null;
|
|
168
|
+
ariaHidden: string | null;
|
|
169
|
+
ariaInvalid: string | null;
|
|
170
|
+
ariaKeyShortcuts: string | null;
|
|
171
|
+
ariaLabel: string | null;
|
|
172
|
+
ariaLevel: string | null;
|
|
173
|
+
ariaLive: string | null;
|
|
174
|
+
ariaModal: string | null;
|
|
175
|
+
ariaMultiLine: string | null;
|
|
176
|
+
ariaMultiSelectable: string | null;
|
|
177
|
+
ariaOrientation: string | null;
|
|
178
|
+
ariaPlaceholder: string | null;
|
|
179
|
+
ariaPosInSet: string | null;
|
|
180
|
+
ariaPressed: string | null;
|
|
181
|
+
ariaReadOnly: string | null;
|
|
182
|
+
ariaRequired: string | null;
|
|
183
|
+
ariaRoleDescription: string | null;
|
|
184
|
+
ariaRowCount: string | null;
|
|
185
|
+
ariaRowIndex: string | null;
|
|
186
|
+
ariaRowSpan: string | null;
|
|
187
|
+
ariaSelected: string | null;
|
|
188
|
+
ariaSetSize: string | null;
|
|
189
|
+
ariaSort: string | null;
|
|
190
|
+
ariaValueMax: string | null;
|
|
191
|
+
ariaValueMin: string | null;
|
|
192
|
+
ariaValueNow: string | null;
|
|
193
|
+
ariaValueText: string | null;
|
|
194
|
+
role: string | null;
|
|
195
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
196
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
197
|
+
after(...nodes: (string | Node)[]): void;
|
|
198
|
+
before(...nodes: (string | Node)[]): void;
|
|
199
|
+
remove(): void;
|
|
200
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
201
|
+
innerHTML: string;
|
|
202
|
+
readonly nextElementSibling: Element | null;
|
|
203
|
+
readonly previousElementSibling: Element | null;
|
|
204
|
+
readonly childElementCount: number;
|
|
205
|
+
readonly children: HTMLCollection;
|
|
206
|
+
readonly firstElementChild: Element | null;
|
|
207
|
+
readonly lastElementChild: Element | null;
|
|
208
|
+
append(...nodes: (string | Node)[]): void;
|
|
209
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
210
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
211
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
212
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
213
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
214
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
215
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
216
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
217
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
218
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
219
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
220
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
221
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
222
|
+
readonly style: CSSStyleDeclaration;
|
|
223
|
+
contentEditable: string;
|
|
224
|
+
enterKeyHint: string;
|
|
225
|
+
inputMode: string;
|
|
226
|
+
readonly isContentEditable: boolean;
|
|
227
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
228
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
229
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
230
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
231
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
232
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
233
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
234
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
235
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
236
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
237
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
238
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
239
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
240
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
241
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
242
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
243
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
244
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
245
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
246
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
247
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
248
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
249
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
250
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
251
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
252
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
253
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
254
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
256
|
+
onerror: OnErrorEventHandler;
|
|
257
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
258
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
259
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
260
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
263
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
264
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
265
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
270
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
271
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
272
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
273
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
274
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
275
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
276
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
277
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
278
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
281
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
282
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
283
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
284
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
285
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
286
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
287
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
288
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
289
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
290
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
293
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
294
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
295
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
296
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
297
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
298
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
299
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
300
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
301
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
303
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
304
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
307
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
308
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
309
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
310
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
311
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
312
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
313
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
314
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
320
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
321
|
+
autofocus: boolean;
|
|
322
|
+
readonly dataset: DOMStringMap;
|
|
323
|
+
nonce?: string | undefined;
|
|
324
|
+
tabIndex: number;
|
|
325
|
+
blur(): void;
|
|
326
|
+
focus(options?: FocusOptions | undefined): void;
|
|
327
|
+
ariaColIndexText: string | null;
|
|
328
|
+
ariaDescription: string | null;
|
|
329
|
+
ariaRowIndexText: string | null;
|
|
330
|
+
ariaRelevant: string | null;
|
|
331
|
+
};
|
|
332
|
+
} & (new () => HTMLElement & FASTElement) & {
|
|
333
|
+
from<TBase extends {
|
|
334
|
+
new (): HTMLElement;
|
|
335
|
+
prototype: HTMLElement;
|
|
336
|
+
}>(BaseType: TBase): new () => InstanceType<TBase> & FASTElement;
|
|
337
|
+
define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition | undefined): TType;
|
|
338
|
+
};
|
|
339
|
+
export declare class VividElement extends VividElement_base {
|
|
3
340
|
static VIVID_VERSION: string;
|
|
4
341
|
}
|
|
342
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
|
+
const attributeBindingBehaviour = require('./attribute-binding-behaviour.cjs');
|
|
5
|
+
|
|
6
|
+
class HostSemanticsBehavior {
|
|
7
|
+
constructor(target, params) {
|
|
8
|
+
this.target = target;
|
|
9
|
+
this.bindingBehaviours = [];
|
|
10
|
+
this.boundProperties = params.boundProperties;
|
|
11
|
+
}
|
|
12
|
+
bind(source) {
|
|
13
|
+
if (this.target !== source) {
|
|
14
|
+
throw new Error("Target element must be the same as the source element");
|
|
15
|
+
}
|
|
16
|
+
this.bindPropertiesToTarget(source, this.boundProperties, this.target);
|
|
17
|
+
}
|
|
18
|
+
unbind(source) {
|
|
19
|
+
this.releasePropertyBindings(source);
|
|
20
|
+
}
|
|
21
|
+
bindPropertiesToTarget(source, boundProperties, target) {
|
|
22
|
+
for (const [property, binding] of Object.entries(boundProperties)) {
|
|
23
|
+
const bindingFn = binding instanceof Function ? binding : (x) => x[property] ?? binding;
|
|
24
|
+
this.bindingBehaviours.push(
|
|
25
|
+
new attributeBindingBehaviour.AttributeBindingBehavior(
|
|
26
|
+
target,
|
|
27
|
+
bindingFn,
|
|
28
|
+
true,
|
|
29
|
+
vividElement.ariaAttributeName(property)
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
source.$fastController.addBehaviors(this.bindingBehaviours);
|
|
34
|
+
}
|
|
35
|
+
releasePropertyBindings(source) {
|
|
36
|
+
source.$fastController.removeBehaviors(this.bindingBehaviours);
|
|
37
|
+
this.bindingBehaviours = [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function applyHostSemantics(boundProperties = {}) {
|
|
42
|
+
const forwardedProperties = new Set(
|
|
43
|
+
vividElement.ariaMixinProperties.filter((p) => !(p in boundProperties))
|
|
44
|
+
);
|
|
45
|
+
return new vividElement.AttachedBehaviorHTMLDirective(
|
|
46
|
+
"vvd-host-semantics",
|
|
47
|
+
HostSemanticsBehavior,
|
|
48
|
+
{
|
|
49
|
+
boundProperties,
|
|
50
|
+
forwardedProperties
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const HostSemantics = (Base) => {
|
|
55
|
+
class HostSemanticsElement extends Base {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(...arguments);
|
|
58
|
+
this._vividAriaBehaviour = "host";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return HostSemanticsElement;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.HostSemantics = HostSemantics;
|
|
65
|
+
exports.applyHostSemantics = applyHostSemantics;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { d as ariaAttributeName, f as ariaMixinProperties, A as AttachedBehaviorHTMLDirective } from './vivid-element.js';
|
|
2
|
+
import { A as AttributeBindingBehavior } from './attribute-binding-behaviour.js';
|
|
3
|
+
|
|
4
|
+
class HostSemanticsBehavior {
|
|
5
|
+
constructor(target, params) {
|
|
6
|
+
this.target = target;
|
|
7
|
+
this.bindingBehaviours = [];
|
|
8
|
+
this.boundProperties = params.boundProperties;
|
|
9
|
+
}
|
|
10
|
+
bind(source) {
|
|
11
|
+
if (this.target !== source) {
|
|
12
|
+
throw new Error("Target element must be the same as the source element");
|
|
13
|
+
}
|
|
14
|
+
this.bindPropertiesToTarget(source, this.boundProperties, this.target);
|
|
15
|
+
}
|
|
16
|
+
unbind(source) {
|
|
17
|
+
this.releasePropertyBindings(source);
|
|
18
|
+
}
|
|
19
|
+
bindPropertiesToTarget(source, boundProperties, target) {
|
|
20
|
+
for (const [property, binding] of Object.entries(boundProperties)) {
|
|
21
|
+
const bindingFn = binding instanceof Function ? binding : (x) => x[property] ?? binding;
|
|
22
|
+
this.bindingBehaviours.push(
|
|
23
|
+
new AttributeBindingBehavior(
|
|
24
|
+
target,
|
|
25
|
+
bindingFn,
|
|
26
|
+
true,
|
|
27
|
+
ariaAttributeName(property)
|
|
28
|
+
)
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
source.$fastController.addBehaviors(this.bindingBehaviours);
|
|
32
|
+
}
|
|
33
|
+
releasePropertyBindings(source) {
|
|
34
|
+
source.$fastController.removeBehaviors(this.bindingBehaviours);
|
|
35
|
+
this.bindingBehaviours = [];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function applyHostSemantics(boundProperties = {}) {
|
|
40
|
+
const forwardedProperties = new Set(
|
|
41
|
+
ariaMixinProperties.filter((p) => !(p in boundProperties))
|
|
42
|
+
);
|
|
43
|
+
return new AttachedBehaviorHTMLDirective(
|
|
44
|
+
"vvd-host-semantics",
|
|
45
|
+
HostSemanticsBehavior,
|
|
46
|
+
{
|
|
47
|
+
boundProperties,
|
|
48
|
+
forwardedProperties
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
const HostSemantics = (Base) => {
|
|
53
|
+
class HostSemanticsElement extends Base {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
this._vividAriaBehaviour = "host";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return HostSemanticsElement;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { HostSemantics as H, applyHostSemantics as a };
|
|
@@ -14,6 +14,7 @@ import type { TabLocale } from '../../lib/tab/locale';
|
|
|
14
14
|
import type { SearchableSelectLocale } from '../../lib/searchable-select/locale';
|
|
15
15
|
import type { PickerFieldLocale } from '../picker-field/locale';
|
|
16
16
|
import type { DateTimePickerLocale } from '../../lib/date-time-picker/locale';
|
|
17
|
+
import type { RichTextEditorLocale } from '../../lib/rich-text-editor/locale';
|
|
17
18
|
export interface Locale {
|
|
18
19
|
lang: string;
|
|
19
20
|
common: {
|
|
@@ -35,4 +36,5 @@ export interface Locale {
|
|
|
35
36
|
dialPad: DialPadLocale;
|
|
36
37
|
tab: TabLocale;
|
|
37
38
|
searchableSelect: SearchableSelectLocale;
|
|
39
|
+
richTextEditor: RichTextEditorLocale;
|
|
38
40
|
}
|
package/shared/option.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const affix = require('./affix.cjs');
|
|
4
4
|
const vividElement = require('./vivid-element.cjs');
|
|
5
|
+
const hostSemantics = require('./host-semantics.cjs');
|
|
5
6
|
const dom = require('./dom.cjs');
|
|
6
7
|
|
|
7
8
|
var __defProp = Object.defineProperty;
|
|
@@ -17,7 +18,9 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
17
18
|
function isListboxOption(el) {
|
|
18
19
|
return dom.isHTMLElement(el) && (el.getAttribute("role") === "option" || el instanceof HTMLOptionElement);
|
|
19
20
|
}
|
|
20
|
-
class ListboxOption extends
|
|
21
|
+
class ListboxOption extends hostSemantics.HostSemantics(
|
|
22
|
+
affix.AffixIconWithTrailing(vividElement.VividElement)
|
|
23
|
+
) {
|
|
21
24
|
constructor(text, value, defaultSelected, selected) {
|
|
22
25
|
super();
|
|
23
26
|
this.defaultSelected = false;
|
package/shared/option.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { A as AffixIconWithTrailing } from './affix.js';
|
|
2
2
|
import { O as Observable, V as VividElement, o as observable, a as attr, v as volatile } from './vivid-element.js';
|
|
3
|
+
import { H as HostSemantics } from './host-semantics.js';
|
|
3
4
|
import { i as isHTMLElement } from './dom.js';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
@@ -15,7 +16,9 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
16
|
function isListboxOption(el) {
|
|
16
17
|
return isHTMLElement(el) && (el.getAttribute("role") === "option" || el instanceof HTMLOptionElement);
|
|
17
18
|
}
|
|
18
|
-
class ListboxOption extends
|
|
19
|
+
class ListboxOption extends HostSemantics(
|
|
20
|
+
AffixIconWithTrailing(VividElement)
|
|
21
|
+
) {
|
|
19
22
|
constructor(text, value, defaultSelected, selected) {
|
|
20
23
|
super();
|
|
21
24
|
this.defaultSelected = false;
|
|
@@ -6,6 +6,13 @@ export declare const AffixIcon: <T extends Constructor<VividElement>>(Base: T) =
|
|
|
6
6
|
new (...args: any[]): {
|
|
7
7
|
icon?: string | undefined;
|
|
8
8
|
iconSlottedContent?: HTMLElement[] | undefined;
|
|
9
|
+
specialHandling: boolean;
|
|
10
|
+
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
11
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
12
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
9
16
|
accessKey: string;
|
|
10
17
|
readonly accessKeyLabel: string;
|
|
11
18
|
autocapitalize: string;
|
|
@@ -322,11 +329,10 @@ export declare const AffixIcon: <T extends Constructor<VividElement>>(Base: T) =
|
|
|
322
329
|
tabIndex: number;
|
|
323
330
|
blur(): void;
|
|
324
331
|
focus(options?: FocusOptions | undefined): void;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
332
|
+
ariaColIndexText: string | null;
|
|
333
|
+
ariaDescription: string | null;
|
|
334
|
+
ariaRowIndexText: string | null;
|
|
335
|
+
ariaRelevant: string | null;
|
|
330
336
|
};
|
|
331
337
|
} & T;
|
|
332
338
|
export type AffixIconElement = MixinType<typeof AffixIcon>;
|
|
@@ -335,6 +341,13 @@ export declare const AffixIconWithTrailing: <T extends Constructor<VividElement>
|
|
|
335
341
|
iconTrailing: boolean;
|
|
336
342
|
icon?: string | undefined;
|
|
337
343
|
iconSlottedContent?: HTMLElement[] | undefined;
|
|
344
|
+
specialHandling: boolean;
|
|
345
|
+
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
346
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
347
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
348
|
+
connectedCallback(): void;
|
|
349
|
+
disconnectedCallback(): void;
|
|
350
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
338
351
|
accessKey: string;
|
|
339
352
|
readonly accessKeyLabel: string;
|
|
340
353
|
autocapitalize: string;
|
|
@@ -651,11 +664,10 @@ export declare const AffixIconWithTrailing: <T extends Constructor<VividElement>
|
|
|
651
664
|
tabIndex: number;
|
|
652
665
|
blur(): void;
|
|
653
666
|
focus(options?: FocusOptions | undefined): void;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
667
|
+
ariaColIndexText: string | null;
|
|
668
|
+
ariaDescription: string | null;
|
|
669
|
+
ariaRowIndexText: string | null;
|
|
670
|
+
ariaRelevant: string | null;
|
|
659
671
|
};
|
|
660
672
|
} & T;
|
|
661
673
|
export declare const IconWrapper: {
|
|
@@ -14,6 +14,11 @@ export declare const Anchored: <T extends Constructor<VividElement>>(Base: T) =>
|
|
|
14
14
|
"__#7@#cleanupObserverIfNeeded": () => void;
|
|
15
15
|
connectedCallback(): void;
|
|
16
16
|
disconnectedCallback(): void;
|
|
17
|
+
specialHandling: boolean;
|
|
18
|
+
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
19
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
20
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
21
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
17
22
|
accessKey: string;
|
|
18
23
|
readonly accessKeyLabel: string;
|
|
19
24
|
autocapitalize: string;
|
|
@@ -330,9 +335,10 @@ export declare const Anchored: <T extends Constructor<VividElement>>(Base: T) =>
|
|
|
330
335
|
tabIndex: number;
|
|
331
336
|
blur(): void;
|
|
332
337
|
focus(options?: FocusOptions | undefined): void;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
338
|
+
ariaColIndexText: string | null;
|
|
339
|
+
ariaDescription: string | null;
|
|
340
|
+
ariaRowIndexText: string | null;
|
|
341
|
+
ariaRelevant: string | null;
|
|
336
342
|
};
|
|
337
343
|
} & T;
|
|
338
344
|
export type AnchoredElement = MixinType<typeof Anchored>;
|
|
@@ -348,6 +354,11 @@ export declare const anchorSlotTemplateFactory: () => import("@microsoft/fast-el
|
|
|
348
354
|
"__#7@#cleanupObserverIfNeeded": () => void;
|
|
349
355
|
connectedCallback(): void;
|
|
350
356
|
disconnectedCallback(): void;
|
|
357
|
+
specialHandling: boolean;
|
|
358
|
+
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
359
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
360
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
361
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
351
362
|
accessKey: string;
|
|
352
363
|
readonly accessKeyLabel: string;
|
|
353
364
|
autocapitalize: string;
|
|
@@ -664,8 +675,9 @@ export declare const anchorSlotTemplateFactory: () => import("@microsoft/fast-el
|
|
|
664
675
|
tabIndex: number;
|
|
665
676
|
blur(): void;
|
|
666
677
|
focus(options?: FocusOptions | undefined): void;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
678
|
+
ariaColIndexText: string | null;
|
|
679
|
+
ariaDescription: string | null;
|
|
680
|
+
ariaRowIndexText: string | null;
|
|
681
|
+
ariaRelevant: string | null;
|
|
670
682
|
} & VividElement, any>;
|
|
671
683
|
export {};
|
|
@@ -4,6 +4,13 @@ import type { Locale } from '../localization/Locale';
|
|
|
4
4
|
export declare const Localized: <T extends Constructor<VividElement>>(Base: T) => {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
readonly locale: Locale;
|
|
7
|
+
specialHandling: boolean;
|
|
8
|
+
_vividAriaBehaviour: import("../aria/aria-mixin").VividAriaBehaviour;
|
|
9
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
10
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
7
14
|
accessKey: string;
|
|
8
15
|
readonly accessKeyLabel: string;
|
|
9
16
|
autocapitalize: string;
|
|
@@ -320,10 +327,9 @@ export declare const Localized: <T extends Constructor<VividElement>>(Base: T) =
|
|
|
320
327
|
tabIndex: number;
|
|
321
328
|
blur(): void;
|
|
322
329
|
focus(options?: FocusOptions | undefined): void;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
330
|
+
ariaColIndexText: string | null;
|
|
331
|
+
ariaDescription: string | null;
|
|
332
|
+
ariaRowIndexText: string | null;
|
|
333
|
+
ariaRelevant: string | null;
|
|
328
334
|
};
|
|
329
335
|
} & T;
|