@nvidia-elements/core 0.2.2 → 0.2.3
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/CHANGELOG.md +9 -0
- package/dist/accordion/accordion2.js +39 -39
- package/dist/alert/alert-group2.js +14 -14
- package/dist/alert/alert2.js +20 -20
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +6 -6
- package/dist/badge/badge2.js +21 -21
- package/dist/breadcrumb/breadcrumb2.js +12 -12
- package/dist/bundles/index.d.ts +418 -1802
- package/dist/bundles/index.js +6 -6
- package/dist/button/button.d.ts +5 -2
- package/dist/button/button2.js +13 -13
- package/dist/button/button2.js.map +1 -1
- package/dist/button-group/button-group2.js +15 -15
- package/dist/card/card2.js +17 -17
- package/dist/chat-message/chat-message2.js +7 -7
- package/dist/checkbox/checkbox-group2.js +7 -7
- package/dist/checkbox/checkbox2.js +7 -7
- package/dist/color/color2.js +7 -7
- package/dist/combobox/combobox2.js +10 -10
- package/dist/copy-button/copy-button2.js +10 -10
- package/dist/custom-elements-jsx.d.ts +346 -613
- package/dist/custom-elements-vue.d.ts +346 -613
- package/dist/custom-elements.json +4870 -14220
- package/dist/data.html.json +252 -168
- package/dist/data.snippets.json +42 -42
- package/dist/date/date2.js +7 -7
- package/dist/datetime/datetime2.js +7 -7
- package/dist/dialog/dialog-footer2.js +6 -6
- package/dist/dialog/dialog-header2.js +6 -6
- package/dist/dialog/dialog2.js +19 -19
- package/dist/divider/divider2.js +5 -5
- package/dist/dot/dot2.js +8 -8
- package/dist/drawer/drawer-content2.js +6 -6
- package/dist/drawer/drawer-footer2.js +6 -6
- package/dist/drawer/drawer-header2.js +6 -6
- package/dist/drawer/drawer2.js +19 -19
- package/dist/dropdown/dropdown-footer2.js +6 -6
- package/dist/dropdown/dropdown-header2.js +6 -6
- package/dist/dropdown/dropdown2.js +16 -16
- package/dist/dropdown-group/dropdown-group.js +16 -16
- package/dist/dropzone/dropzone.d.ts +1 -404
- package/dist/dropzone/dropzone2.js +14 -14
- package/dist/dropzone/dropzone2.js.map +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +10 -10
- package/dist/format-number/format-number2.js +16 -16
- package/dist/format-relative-time/format-relative-time2.js +7 -7
- package/dist/forms/control/control2.js +19 -19
- package/dist/forms/control-group/control-group2.js +6 -6
- package/dist/forms/control-message/control-message2.js +9 -9
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +10 -10
- package/dist/grid/footer/footer2.js +6 -6
- package/dist/grid/grid2.js +12 -12
- package/dist/grid/header/header2.js +9 -9
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +9 -9
- package/dist/icon/icon2.js +15 -15
- package/dist/icon-button/icon-button2.js +9 -9
- package/dist/index.js +4 -4
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +6 -6
- package/dist/internal/controllers/keynav-grid.controller.js +39 -39
- package/dist/internal/controllers/type-button.controller.examples.js.map +1 -1
- package/dist/internal/controllers/type-button.controller.examples.json +1 -1
- package/dist/internal/controllers/type-command.controller.d.ts +10 -1
- package/dist/internal/controllers/type-command.controller.js +23 -14
- package/dist/internal/controllers/type-command.controller.js.map +1 -1
- package/dist/internal/controllers/type-native-popover.utils.js +7 -7
- package/dist/internal/index.d.ts +0 -1
- package/dist/internal/index.js +40 -41
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +6 -6
- package/dist/menu/menu-item.d.ts +4 -2
- package/dist/menu/menu-item2.js +12 -12
- package/dist/menu/menu-item2.js.map +1 -1
- package/dist/menu/menu2.js +10 -10
- package/dist/month/month2.js +7 -7
- package/dist/notification/notification-group2.js +11 -11
- package/dist/notification/notification2.js +22 -22
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +6 -6
- package/dist/page/page-panel/page-panel-header2.js +6 -6
- package/dist/page/page-panel/page-panel2.js +14 -14
- package/dist/page/page2.js +9 -9
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +10 -10
- package/dist/pagination/pagination.d.ts +1 -404
- package/dist/pagination/pagination2.js +17 -17
- package/dist/pagination/pagination2.js.map +1 -1
- package/dist/panel/panel2.js +21 -21
- package/dist/password/password2.js +7 -7
- package/dist/preferences-input/preferences-input.d.ts +1 -404
- package/dist/preferences-input/preferences-input2.js +9 -9
- package/dist/preferences-input/preferences-input2.js.map +1 -1
- package/dist/progress-bar/progress-bar2.js +8 -8
- package/dist/progress-ring/progress-ring2.js +15 -15
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +15 -15
- package/dist/pulse/pulse2.js +6 -6
- package/dist/radio/radio-group2.js +7 -7
- package/dist/radio/radio2.js +7 -7
- package/dist/range/range2.js +5 -5
- package/dist/resize-handle/resize-handle.d.ts +1 -404
- package/dist/resize-handle/resize-handle2.js +16 -16
- package/dist/resize-handle/resize-handle2.js.map +1 -1
- package/dist/search/search2.js +8 -8
- package/dist/select/select2.js +18 -18
- package/dist/skeleton/skeleton2.js +7 -7
- package/dist/sort-button/sort-button.d.ts +4 -2
- package/dist/sort-button/sort-button2.js +19 -19
- package/dist/sort-button/sort-button2.js.map +1 -1
- package/dist/sparkline/sparkline2.js +14 -14
- package/dist/star-rating/star-rating2.js +6 -6
- package/dist/steps/steps.d.ts +4 -2
- package/dist/steps/steps2.js +36 -36
- package/dist/steps/steps2.js.map +1 -1
- package/dist/switch/switch-group2.js +6 -6
- package/dist/switch/switch2.js +7 -7
- package/dist/tabs/tabs-group2.js +21 -21
- package/dist/tabs/tabs.d.ts +4 -2
- package/dist/tabs/tabs2.js +30 -30
- package/dist/tabs/tabs2.js.map +1 -1
- package/dist/tag/tag.d.ts +5 -2
- package/dist/tag/tag2.js +20 -20
- package/dist/tag/tag2.js.map +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +7 -7
- package/dist/toast/toast2.js +21 -21
- package/dist/toggletip/toggletip-footer2.js +6 -6
- package/dist/toggletip/toggletip-header2.js +6 -6
- package/dist/toggletip/toggletip2.js +17 -17
- package/dist/toolbar/toolbar2.js +11 -11
- package/dist/tooltip/tooltip2.js +16 -16
- package/dist/tree/tree-node2.js +30 -30
- package/dist/tree/tree2.js +14 -14
- package/dist/week/week2.js +7 -7
- package/package.json +3 -3
- package/dist/internal/base/button.d.ts +0 -114
- package/dist/internal/base/button.js +0 -117
- package/dist/internal/base/button.js.map +0 -1
package/dist/panel/panel2.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { I18nController as e } from "../internal/controllers/i18n.controller.js";
|
|
2
|
+
import { attachInternals as t } from "../internal/utils/a11y.js";
|
|
3
|
+
import { stateExpanded as n } from "../internal/controllers/state-expanded.controller.js";
|
|
4
|
+
import { TypeExpandableController as r } from "../internal/controllers/type-expandable.controller.js";
|
|
5
|
+
import { scopedRegistry as i } from "../internal/decorators/scoped-registry.js";
|
|
6
|
+
import { useStyles as a } from "../internal/styles/index.js";
|
|
7
|
+
import { __decorate as o } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
8
8
|
import { IconButton as s } from "../icon-button/icon-button2.js";
|
|
9
9
|
import c from "./panel.js";
|
|
10
10
|
import l from "./panel-header.js";
|
|
@@ -16,12 +16,12 @@ import { when as h } from "lit/directives/when.js";
|
|
|
16
16
|
//#region src/panel/panel.ts
|
|
17
17
|
var g = class extends f {
|
|
18
18
|
static {
|
|
19
|
-
this.styles =
|
|
19
|
+
this.styles = a([l]);
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.metadata = {
|
|
23
23
|
tag: "nve-panel-header",
|
|
24
|
-
version: "0.2.
|
|
24
|
+
version: "0.2.3"
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
@@ -32,12 +32,12 @@ var g = class extends f {
|
|
|
32
32
|
}
|
|
33
33
|
}, _ = class extends f {
|
|
34
34
|
static {
|
|
35
|
-
this.styles =
|
|
35
|
+
this.styles = a([u]);
|
|
36
36
|
}
|
|
37
37
|
static {
|
|
38
38
|
this.metadata = {
|
|
39
39
|
tag: "nve-panel-content",
|
|
40
|
-
version: "0.2.
|
|
40
|
+
version: "0.2.3"
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
@@ -45,12 +45,12 @@ var g = class extends f {
|
|
|
45
45
|
}
|
|
46
46
|
}, v = class extends f {
|
|
47
47
|
static {
|
|
48
|
-
this.styles =
|
|
48
|
+
this.styles = a([d]);
|
|
49
49
|
}
|
|
50
50
|
static {
|
|
51
51
|
this.metadata = {
|
|
52
52
|
tag: "nve-panel-footer",
|
|
53
|
-
version: "0.2.
|
|
53
|
+
version: "0.2.3"
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
@@ -60,16 +60,16 @@ var g = class extends f {
|
|
|
60
60
|
super.connectedCallback(), this.slot = "footer";
|
|
61
61
|
}
|
|
62
62
|
}, y = class extends f {
|
|
63
|
-
constructor(...
|
|
64
|
-
super(...
|
|
63
|
+
constructor(...t) {
|
|
64
|
+
super(...t), this.expanded = !1, this.closable = !1, this.behaviorExpand = !1, this.side = "left", this.#e = new e(this), this.#t = new r(this), this.i18n = this.#e.i18n;
|
|
65
65
|
}
|
|
66
66
|
static {
|
|
67
|
-
this.styles =
|
|
67
|
+
this.styles = a([c]);
|
|
68
68
|
}
|
|
69
69
|
static {
|
|
70
70
|
this.metadata = {
|
|
71
71
|
tag: "nve-panel",
|
|
72
|
-
version: "0.2.
|
|
72
|
+
version: "0.2.3"
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
static {
|
|
@@ -84,16 +84,16 @@ var g = class extends f {
|
|
|
84
84
|
return p`<div internal-host><div class="header"><slot name="header"></slot>${h(!this.closable, () => p`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" .container="${this.expanded ? "flat" : void 0}" icon-name="double-chevron" @click="${() => this.#t.toggle()}" .direction="${this.#n}" .expanded="${this.expanded}" .ariaLabel="${this.expanded ? this.i18n.close : this.i18n.expand}"></nve-icon-button>`, () => p`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" container="flat" icon-name="cancel" @click="${() => this.#t.close()}" .expanded="${this.expanded}" .ariaLabel="${this.expanded ? this.i18n.hide : this.i18n.show}"></nve-icon-button>`)}</div><div class="content"><slot></slot></div><slot name="footer"></slot></div>`;
|
|
85
85
|
}
|
|
86
86
|
connectedCallback() {
|
|
87
|
-
super.connectedCallback(),
|
|
87
|
+
super.connectedCallback(), t(this), this._internals.role = "region";
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
o([m({
|
|
91
91
|
type: Boolean,
|
|
92
92
|
reflect: !0
|
|
93
|
-
})], y.prototype, "expanded", void 0),
|
|
93
|
+
})], y.prototype, "expanded", void 0), o([m({ type: Boolean })], y.prototype, "closable", void 0), o([m({
|
|
94
94
|
type: Boolean,
|
|
95
95
|
attribute: "behavior-expand"
|
|
96
|
-
})], y.prototype, "behaviorExpand", void 0),
|
|
96
|
+
})], y.prototype, "behaviorExpand", void 0), o([m({ type: String })], y.prototype, "side", void 0), o([m({ type: Object })], y.prototype, "i18n", void 0), y = o([i(), n()], y);
|
|
97
97
|
//#endregion
|
|
98
98
|
export { y as Panel, _ as PanelContent, v as PanelFooter, g as PanelHeader };
|
|
99
99
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { scopedRegistry as e } from "../internal/decorators/scoped-registry.js";
|
|
2
|
+
import { useStyles as t } from "../internal/styles/index.js";
|
|
3
|
+
import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
4
4
|
import { Control as r } from "../forms/control/control2.js";
|
|
5
5
|
import { IconButton as i } from "../icon-button/icon-button2.js";
|
|
6
6
|
import { inputStyles as a } from "../input/input2.js";
|
|
@@ -14,7 +14,7 @@ var u = class extends r {
|
|
|
14
14
|
super(...e), this.pressed = !1;
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
|
-
this.styles =
|
|
17
|
+
this.styles = t([
|
|
18
18
|
...r.styles,
|
|
19
19
|
a,
|
|
20
20
|
o
|
|
@@ -23,7 +23,7 @@ var u = class extends r {
|
|
|
23
23
|
static {
|
|
24
24
|
this.metadata = {
|
|
25
25
|
tag: "nve-password",
|
|
26
|
-
version: "0.2.
|
|
26
|
+
version: "0.2.3"
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
static {
|
|
@@ -36,10 +36,10 @@ var u = class extends r {
|
|
|
36
36
|
this.pressed = !this.pressed, this.input.type = this.pressed ? "text" : "password";
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
n([c({
|
|
40
40
|
type: String,
|
|
41
41
|
reflect: !0
|
|
42
|
-
})], u.prototype, "container", void 0),
|
|
42
|
+
})], u.prototype, "container", void 0), n([l()], u.prototype, "pressed", void 0), u = n([e()], u);
|
|
43
43
|
//#endregion
|
|
44
44
|
export { u as Password };
|
|
45
45
|
|
|
@@ -12,410 +12,7 @@ export interface PreferencesInputValue {
|
|
|
12
12
|
scale?: Scale | string;
|
|
13
13
|
'reduced-motion'?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const PreferencesInput_base:
|
|
16
|
-
new (...args: any[]): {
|
|
17
|
-
get readOnly(): boolean;
|
|
18
|
-
set readOnly(value: boolean | unknown);
|
|
19
|
-
get disabled(): boolean;
|
|
20
|
-
set disabled(value: boolean | unknown);
|
|
21
|
-
get required(): boolean;
|
|
22
|
-
set required(value: PreferencesInputValue | unknown);
|
|
23
|
-
name: string;
|
|
24
|
-
get noValidate(): boolean;
|
|
25
|
-
set noValidate(value: boolean | unknown);
|
|
26
|
-
_value: PreferencesInputValue | undefined;
|
|
27
|
-
get value(): PreferencesInputValue | undefined;
|
|
28
|
-
set value(value: PreferencesInputValue | unknown);
|
|
29
|
-
updateValue(value: PreferencesInputValue): void;
|
|
30
|
-
readonly form: HTMLFormElement | null;
|
|
31
|
-
readonly willValidate: boolean;
|
|
32
|
-
readonly validity: ValidityState;
|
|
33
|
-
readonly validationMessage: string;
|
|
34
|
-
readonly valueAsString: string;
|
|
35
|
-
valueAsNumber: number;
|
|
36
|
-
readonly type: string;
|
|
37
|
-
readonly _metadata: import('@nvidia-elements/forms').FormControlMetadata;
|
|
38
|
-
_formInternals: ElementInternals;
|
|
39
|
-
_initialValue: PreferencesInputValue | undefined;
|
|
40
|
-
readonly _validators: import('@nvidia-elements/forms').Validator[];
|
|
41
|
-
readonly _internals: ElementInternals;
|
|
42
|
-
connectedCallback(): void;
|
|
43
|
-
disconnectedCallback(): void;
|
|
44
|
-
_stopInternalPropagation: (event: Event) => void;
|
|
45
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
46
|
-
_handleAttributeChange(name: string, newValue: string): void;
|
|
47
|
-
formResetCallback(): void;
|
|
48
|
-
formStateRestoreCallback(state: PreferencesInputValue, _reason: string): void;
|
|
49
|
-
reportValidity(): boolean;
|
|
50
|
-
checkValidity(): boolean;
|
|
51
|
-
setValidity(validity: Partial<ValidityState>, message?: string): void;
|
|
52
|
-
dispatchInputEvent(): void;
|
|
53
|
-
dispatchChangeEvent(): void;
|
|
54
|
-
dispatchUpdateEvent(type: "input" | "change"): void;
|
|
55
|
-
_updateFormState(): void;
|
|
56
|
-
_requestUpdate(): void;
|
|
57
|
-
accessKey: string;
|
|
58
|
-
readonly accessKeyLabel: string;
|
|
59
|
-
autocapitalize: string;
|
|
60
|
-
autocorrect: boolean;
|
|
61
|
-
dir: string;
|
|
62
|
-
draggable: boolean;
|
|
63
|
-
hidden: boolean | "until-found";
|
|
64
|
-
inert: boolean;
|
|
65
|
-
innerText: string;
|
|
66
|
-
lang: string;
|
|
67
|
-
readonly offsetHeight: number;
|
|
68
|
-
readonly offsetLeft: number;
|
|
69
|
-
readonly offsetParent: Element | null;
|
|
70
|
-
readonly offsetTop: number;
|
|
71
|
-
readonly offsetWidth: number;
|
|
72
|
-
outerText: string;
|
|
73
|
-
popover: string | null;
|
|
74
|
-
spellcheck: boolean;
|
|
75
|
-
title: string;
|
|
76
|
-
translate: boolean;
|
|
77
|
-
writingSuggestions: string;
|
|
78
|
-
attachInternals(): ElementInternals;
|
|
79
|
-
click(): void;
|
|
80
|
-
hidePopover(): void;
|
|
81
|
-
showPopover(options?: ShowPopoverOptions): void;
|
|
82
|
-
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
83
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
84
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
85
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
86
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
87
|
-
readonly attributes: NamedNodeMap;
|
|
88
|
-
get classList(): DOMTokenList;
|
|
89
|
-
set classList(value: string);
|
|
90
|
-
className: string;
|
|
91
|
-
readonly clientHeight: number;
|
|
92
|
-
readonly clientLeft: number;
|
|
93
|
-
readonly clientTop: number;
|
|
94
|
-
readonly clientWidth: number;
|
|
95
|
-
readonly currentCSSZoom: number;
|
|
96
|
-
readonly customElementRegistry: CustomElementRegistry | null;
|
|
97
|
-
id: string;
|
|
98
|
-
innerHTML: string;
|
|
99
|
-
readonly localName: string;
|
|
100
|
-
readonly namespaceURI: string | null;
|
|
101
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
102
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
103
|
-
outerHTML: string;
|
|
104
|
-
readonly ownerDocument: Document;
|
|
105
|
-
get part(): DOMTokenList;
|
|
106
|
-
set part(value: string);
|
|
107
|
-
readonly prefix: string | null;
|
|
108
|
-
readonly scrollHeight: number;
|
|
109
|
-
scrollLeft: number;
|
|
110
|
-
scrollTop: number;
|
|
111
|
-
readonly scrollWidth: number;
|
|
112
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
113
|
-
slot: string;
|
|
114
|
-
readonly tagName: string;
|
|
115
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
116
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
117
|
-
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
118
|
-
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
119
|
-
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
120
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
121
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
122
|
-
getAttribute(qualifiedName: string): string | null;
|
|
123
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
124
|
-
getAttributeNames(): string[];
|
|
125
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
126
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
127
|
-
getBoundingClientRect(): DOMRect;
|
|
128
|
-
getClientRects(): DOMRectList;
|
|
129
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
130
|
-
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
131
|
-
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
132
|
-
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
133
|
-
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
134
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
135
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
136
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
137
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
138
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
139
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
140
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
141
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
142
|
-
hasAttributes(): boolean;
|
|
143
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
144
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
145
|
-
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
146
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
147
|
-
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
148
|
-
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
149
|
-
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
150
|
-
matches(selectors: string): boolean;
|
|
151
|
-
releasePointerCapture(pointerId: number): void;
|
|
152
|
-
removeAttribute(qualifiedName: string): void;
|
|
153
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
154
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
155
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
156
|
-
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
157
|
-
scroll(options?: ScrollToOptions): void;
|
|
158
|
-
scroll(x: number, y: number): void;
|
|
159
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
160
|
-
scrollBy(x: number, y: number): void;
|
|
161
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
162
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
163
|
-
scrollTo(x: number, y: number): void;
|
|
164
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
165
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
166
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
167
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
168
|
-
setHTMLUnsafe(html: string): void;
|
|
169
|
-
setPointerCapture(pointerId: number): void;
|
|
170
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
171
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
172
|
-
get textContent(): string;
|
|
173
|
-
set textContent(value: string | null);
|
|
174
|
-
readonly baseURI: string;
|
|
175
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
176
|
-
readonly firstChild: ChildNode | null;
|
|
177
|
-
readonly isConnected: boolean;
|
|
178
|
-
readonly lastChild: ChildNode | null;
|
|
179
|
-
readonly nextSibling: ChildNode | null;
|
|
180
|
-
readonly nodeName: string;
|
|
181
|
-
readonly nodeType: number;
|
|
182
|
-
nodeValue: string | null;
|
|
183
|
-
readonly parentElement: HTMLElement | null;
|
|
184
|
-
readonly parentNode: ParentNode | null;
|
|
185
|
-
readonly previousSibling: ChildNode | null;
|
|
186
|
-
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
187
|
-
cloneNode(subtree?: boolean): Node;
|
|
188
|
-
compareDocumentPosition(other: Node): number;
|
|
189
|
-
contains(other: Node | null): boolean;
|
|
190
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
191
|
-
hasChildNodes(): boolean;
|
|
192
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
193
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
194
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
195
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
196
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
197
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
198
|
-
normalize(): void;
|
|
199
|
-
removeChild<T_1 extends Node>(child: T_1): T_1;
|
|
200
|
-
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
|
201
|
-
readonly ELEMENT_NODE: 1;
|
|
202
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
203
|
-
readonly TEXT_NODE: 3;
|
|
204
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
205
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
206
|
-
readonly ENTITY_NODE: 6;
|
|
207
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
208
|
-
readonly COMMENT_NODE: 8;
|
|
209
|
-
readonly DOCUMENT_NODE: 9;
|
|
210
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
211
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
212
|
-
readonly NOTATION_NODE: 12;
|
|
213
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
214
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
215
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
216
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
217
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
218
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
219
|
-
dispatchEvent(event: Event): boolean;
|
|
220
|
-
ariaActiveDescendantElement: Element | null;
|
|
221
|
-
ariaAtomic: string | null;
|
|
222
|
-
ariaAutoComplete: string | null;
|
|
223
|
-
ariaBrailleLabel: string | null;
|
|
224
|
-
ariaBrailleRoleDescription: string | null;
|
|
225
|
-
ariaBusy: string | null;
|
|
226
|
-
ariaChecked: string | null;
|
|
227
|
-
ariaColCount: string | null;
|
|
228
|
-
ariaColIndex: string | null;
|
|
229
|
-
ariaColIndexText: string | null;
|
|
230
|
-
ariaColSpan: string | null;
|
|
231
|
-
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
232
|
-
ariaCurrent: string | null;
|
|
233
|
-
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
234
|
-
ariaDescription: string | null;
|
|
235
|
-
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
236
|
-
ariaDisabled: string | null;
|
|
237
|
-
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
238
|
-
ariaExpanded: string | null;
|
|
239
|
-
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
240
|
-
ariaHasPopup: string | null;
|
|
241
|
-
ariaHidden: string | null;
|
|
242
|
-
ariaInvalid: string | null;
|
|
243
|
-
ariaKeyShortcuts: string | null;
|
|
244
|
-
ariaLabel: string | null;
|
|
245
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
246
|
-
ariaLevel: string | null;
|
|
247
|
-
ariaLive: string | null;
|
|
248
|
-
ariaModal: string | null;
|
|
249
|
-
ariaMultiLine: string | null;
|
|
250
|
-
ariaMultiSelectable: string | null;
|
|
251
|
-
ariaOrientation: string | null;
|
|
252
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
253
|
-
ariaPlaceholder: string | null;
|
|
254
|
-
ariaPosInSet: string | null;
|
|
255
|
-
ariaPressed: string | null;
|
|
256
|
-
ariaReadOnly: string | null;
|
|
257
|
-
ariaRelevant: string | null;
|
|
258
|
-
ariaRequired: string | null;
|
|
259
|
-
ariaRoleDescription: string | null;
|
|
260
|
-
ariaRowCount: string | null;
|
|
261
|
-
ariaRowIndex: string | null;
|
|
262
|
-
ariaRowIndexText: string | null;
|
|
263
|
-
ariaRowSpan: string | null;
|
|
264
|
-
ariaSelected: string | null;
|
|
265
|
-
ariaSetSize: string | null;
|
|
266
|
-
ariaSort: string | null;
|
|
267
|
-
ariaValueMax: string | null;
|
|
268
|
-
ariaValueMin: string | null;
|
|
269
|
-
ariaValueNow: string | null;
|
|
270
|
-
ariaValueText: string | null;
|
|
271
|
-
role: string | null;
|
|
272
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
273
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
274
|
-
after(...nodes: (Node | string)[]): void;
|
|
275
|
-
before(...nodes: (Node | string)[]): void;
|
|
276
|
-
remove(): void;
|
|
277
|
-
replaceWith(...nodes: (Node | string)[]): void;
|
|
278
|
-
readonly nextElementSibling: Element | null;
|
|
279
|
-
readonly previousElementSibling: Element | null;
|
|
280
|
-
readonly childElementCount: number;
|
|
281
|
-
readonly children: HTMLCollection;
|
|
282
|
-
readonly firstElementChild: Element | null;
|
|
283
|
-
readonly lastElementChild: Element | null;
|
|
284
|
-
append(...nodes: (Node | string)[]): void;
|
|
285
|
-
moveBefore(node: Node, child: Node | null): void;
|
|
286
|
-
prepend(...nodes: (Node | string)[]): void;
|
|
287
|
-
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
288
|
-
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
289
|
-
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
290
|
-
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
291
|
-
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
292
|
-
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
293
|
-
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
294
|
-
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
295
|
-
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
296
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
297
|
-
replaceChildren(...nodes: (Node | string)[]): void;
|
|
298
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
299
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
300
|
-
get style(): CSSStyleDeclaration;
|
|
301
|
-
set style(cssText: string);
|
|
302
|
-
contentEditable: string;
|
|
303
|
-
enterKeyHint: string;
|
|
304
|
-
inputMode: string;
|
|
305
|
-
readonly isContentEditable: boolean;
|
|
306
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
307
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
308
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
309
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
310
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
311
|
-
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
312
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
313
|
-
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
315
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
316
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
320
|
-
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
321
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
322
|
-
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
325
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
327
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
329
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
330
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
331
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
332
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
333
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
334
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
335
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
336
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
337
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
338
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
339
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
340
|
-
onerror: OnErrorEventHandler;
|
|
341
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
342
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
343
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
344
|
-
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
345
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
346
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
347
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
348
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
349
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
350
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
351
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
352
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
353
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
354
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
355
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
356
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
357
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
358
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
359
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
360
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
361
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
362
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
363
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
364
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
365
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
366
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
367
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
368
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
369
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
370
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
371
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
372
|
-
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
373
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
374
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
375
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
376
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
377
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
378
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
379
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
380
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
381
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
382
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
383
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
384
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
385
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
386
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
387
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
388
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
389
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
390
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
391
|
-
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
392
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
393
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
394
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
395
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
396
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
397
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
398
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
399
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
400
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
401
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
402
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
403
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
404
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
405
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
406
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
407
|
-
autofocus: boolean;
|
|
408
|
-
readonly dataset: DOMStringMap;
|
|
409
|
-
nonce: string;
|
|
410
|
-
tabIndex: number;
|
|
411
|
-
blur(): void;
|
|
412
|
-
focus(options?: FocusOptions): void;
|
|
413
|
-
requestUpdate?(name?: string, oldValue?: unknown): void;
|
|
414
|
-
};
|
|
415
|
-
formAssociated: boolean;
|
|
416
|
-
metadata: import('@nvidia-elements/forms').FormControlMetadata;
|
|
417
|
-
readonly observedAttributes: string[];
|
|
418
|
-
} & typeof LitElement;
|
|
15
|
+
declare const PreferencesInput_base: import('@nvidia-elements/forms/mixins').FormControlMixinReturn<typeof LitElement, PreferencesInputValue>;
|
|
419
16
|
/**
|
|
420
17
|
* @element nve-preferences-input
|
|
421
18
|
* @description A preferences input is a widget for controlling apperance. Stylesheets register to the preferences input by including a css-property, see Standard for an example.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { I18nController as e } from "../internal/controllers/i18n.controller.js";
|
|
2
|
+
import { scopedRegistry as t } from "../internal/decorators/scoped-registry.js";
|
|
3
|
+
import { useStyles as n } from "../internal/styles/index.js";
|
|
4
|
+
import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
5
5
|
import { Icon as i } from "../icon/icon2.js";
|
|
6
6
|
import { Control as a } from "../forms/control/control2.js";
|
|
7
7
|
import { Switch as o } from "../switch/switch2.js";
|
|
@@ -12,7 +12,7 @@ import u from "./preferences-input.js";
|
|
|
12
12
|
import { LitElement as d, html as f, isServer as p } from "lit";
|
|
13
13
|
import { property as m } from "lit/decorators/property.js";
|
|
14
14
|
import { state as h } from "lit/decorators/state.js";
|
|
15
|
-
import { FormControlMixin as g } from "@nvidia-elements/forms/
|
|
15
|
+
import { FormControlMixin as g } from "@nvidia-elements/forms/mixins";
|
|
16
16
|
//#region src/preferences-input/preferences-input.ts
|
|
17
17
|
var _ = [
|
|
18
18
|
"auto",
|
|
@@ -38,12 +38,12 @@ function b(e = globalThis.document.documentElement) {
|
|
|
38
38
|
var x = class extends g(d) {
|
|
39
39
|
#e;
|
|
40
40
|
static {
|
|
41
|
-
this.styles =
|
|
41
|
+
this.styles = n([u]);
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
44
|
this.metadata = {
|
|
45
45
|
tag: "nve-preferences-input",
|
|
46
|
-
version: "0.2.
|
|
46
|
+
version: "0.2.3",
|
|
47
47
|
valueSchema: {
|
|
48
48
|
type: "object",
|
|
49
49
|
properties: {
|
|
@@ -68,7 +68,7 @@ var x = class extends g(d) {
|
|
|
68
68
|
return f`<div internal-host><nve-control part="control"><label>${this.i18n.colorScheme}</label><nve-menu part="menu" nve-control>${_.map((e) => f`<nve-menu-item part="menu-item" .selected="${this.value?.["color-scheme"] === e}" .value="${e}" @click="${() => this.#n(e)}"><nve-icon part="icon" name="${y[e]}"></nve-icon>${e}</nve-menu-item>`)}</nve-menu></nve-control>${this.activePreferences.compact ? f`<nve-divider part="divider"></nve-divider><nve-control part="control"><label>${this.i18n.scale}</label><nve-menu part="menu" nve-control>${v.map((e) => f`<nve-menu-item part="menu-item" .selected="${this.value?.scale === e}" .value="${e}" @click="${() => this.#r(e)}">${e}</nve-menu-item>`)}</nve-menu></nve-control>` : ""} ${this.activePreferences["reduced-motion"] ? f`<nve-divider part="divider"></nve-divider><nve-switch part="switch"><label>${this.i18n.reducedMotion}</label> <input type="checkbox" value="reduced-motion" .checked="${this.value?.["reduced-motion"]}" @change="${(e) => this.#i(e.target.checked)}"></nve-switch>` : ""}</div>`;
|
|
69
69
|
}
|
|
70
70
|
constructor() {
|
|
71
|
-
super(), this.#e = new
|
|
71
|
+
super(), this.#e = new e(this), this.i18n = this.#e.i18n, this.activePreferences = {
|
|
72
72
|
light: !1,
|
|
73
73
|
dark: !1,
|
|
74
74
|
"high-contrast": !1,
|
|
@@ -118,7 +118,7 @@ var x = class extends g(d) {
|
|
|
118
118
|
this.dispatchInputEvent(), this.dispatchChangeEvent();
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
r([m({ type: Object })], x.prototype, "i18n", void 0), r([h()], x.prototype, "activePreferences", void 0), x = r([t()], x);
|
|
122
122
|
//#endregion
|
|
123
123
|
export { x as PreferencesInput };
|
|
124
124
|
|