@nvidia-elements/core 0.2.1 → 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 +13 -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 +32 -32
- 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/decorators/scoped-registry.js +24 -6
- package/dist/internal/decorators/scoped-registry.js.map +1 -1
- 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/internal/utils/focus.js +1 -1
- package/dist/internal/utils/focus.js.map +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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { I18nController as t } from "../internal/controllers/i18n.controller.js";
|
|
3
|
+
import { TypeNativePopoverController as n } from "../internal/controllers/type-native-popover.controller.js";
|
|
4
|
+
import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
|
|
5
|
+
import { useStyles as i } from "../internal/styles/index.js";
|
|
6
|
+
import { popoverStyles as a } from "../internal/styles/popover2.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 "./dropdown.js";
|
|
10
10
|
import { LitElement as l, html as u } from "lit";
|
|
@@ -13,15 +13,15 @@ import { query as f } from "lit/decorators/query.js";
|
|
|
13
13
|
//#region src/dropdown/dropdown.ts
|
|
14
14
|
var p = class extends l {
|
|
15
15
|
constructor(...e) {
|
|
16
|
-
super(...e), this.position = "bottom", this.alignment = "start", this.closable = !1, this.arrow = !1, this.modal = !0, this.popoverType = "auto", this.#e = new
|
|
16
|
+
super(...e), this.position = "bottom", this.alignment = "start", this.closable = !1, this.arrow = !1, this.modal = !0, this.popoverType = "auto", this.#e = new t(this), this.typeNativePopoverController = new n(this), this.i18n = this.#e.i18n;
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.styles =
|
|
19
|
+
this.styles = i([a, c]);
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.metadata = {
|
|
23
23
|
tag: "nve-dropdown",
|
|
24
|
-
version: "0.2.
|
|
24
|
+
version: "0.2.3"
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
@@ -35,23 +35,23 @@ var p = class extends l {
|
|
|
35
35
|
return u`<div internal-host><slot name="header"></slot>${this.closable ? u`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>` : ""}<slot></slot><slot name="footer"></slot>${this.arrow ? u`<div class="arrow"></div>` : ""}</div>`;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
o([d({ type: String })], p.prototype, "anchor", void 0), o([d({ type: String })], p.prototype, "trigger", void 0), o([d({
|
|
39
39
|
type: String,
|
|
40
40
|
reflect: !0
|
|
41
|
-
})], p.prototype, "position", void 0),
|
|
41
|
+
})], p.prototype, "position", void 0), o([d({
|
|
42
42
|
type: String,
|
|
43
43
|
reflect: !0
|
|
44
|
-
})], p.prototype, "alignment", void 0),
|
|
44
|
+
})], p.prototype, "alignment", void 0), o([d({
|
|
45
45
|
type: Boolean,
|
|
46
46
|
reflect: !0,
|
|
47
47
|
attribute: "behavior-trigger"
|
|
48
|
-
})], p.prototype, "behaviorTrigger", void 0),
|
|
48
|
+
})], p.prototype, "behaviorTrigger", void 0), o([d({ type: Boolean })], p.prototype, "closable", void 0), o([d({ type: Boolean })], p.prototype, "arrow", void 0), o([d({
|
|
49
49
|
type: Boolean,
|
|
50
50
|
reflect: !0
|
|
51
|
-
})], p.prototype, "modal", void 0),
|
|
51
|
+
})], p.prototype, "modal", void 0), o([d({
|
|
52
52
|
type: String,
|
|
53
53
|
attribute: "popover-type"
|
|
54
|
-
})], p.prototype, "popoverType", void 0),
|
|
54
|
+
})], p.prototype, "popoverType", void 0), o([f(".arrow")], p.prototype, "popoverArrow", void 0), o([d({ type: Object })], p.prototype, "i18n", void 0), p = o([e({ excessiveInstanceLimit: 50 }), r()], p);
|
|
55
55
|
//#endregion
|
|
56
56
|
export { p as Dropdown };
|
|
57
57
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { audit as e } from "../internal/controllers/audit.controller.js";
|
|
2
|
+
import { isSimpleFocusable as t } from "../internal/utils/focus.js";
|
|
3
|
+
import { appendRootNodeStyle as n, clickOutsideElementBounds as r, getFlattenedFocusableItems as i } from "../internal/utils/dom.js";
|
|
4
|
+
import { useStyles as a } from "../internal/styles/index.js";
|
|
5
|
+
import { __decorate as o } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
6
6
|
import s from "./dropdown-group.global.js";
|
|
7
7
|
import { LitElement as c, html as l } from "lit";
|
|
8
8
|
import { queryAssignedElements as u } from "lit/decorators/query-assigned-elements.js";
|
|
9
9
|
//#region src/dropdown-group/dropdown-group.ts
|
|
10
10
|
var d = class extends c {
|
|
11
11
|
static {
|
|
12
|
-
this.styles =
|
|
12
|
+
this.styles = a([]);
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
15
|
this.metadata = {
|
|
16
16
|
tag: "nve-dropdown-group",
|
|
17
|
-
version: "0.2.
|
|
17
|
+
version: "0.2.3",
|
|
18
18
|
children: ["nve-dropdown"]
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -23,7 +23,7 @@ var d = class extends c {
|
|
|
23
23
|
}
|
|
24
24
|
#e = (e) => this.#n(e);
|
|
25
25
|
connectedCallback() {
|
|
26
|
-
super.connectedCallback(),
|
|
26
|
+
super.connectedCallback(), n(this, s), globalThis.document?.addEventListener("pointerup", this.#e), this.addEventListener("keydown", this.#r), this.addEventListener("open", this.#i), this.addEventListener("close", this.#a);
|
|
27
27
|
}
|
|
28
28
|
disconnectedCallback() {
|
|
29
29
|
super.disconnectedCallback(), globalThis.document?.removeEventListener("pointerup", this.#e), this.removeEventListener("keydown", this.#r), this.removeEventListener("open", this.#i), this.removeEventListener("close", this.#a);
|
|
@@ -34,20 +34,20 @@ var d = class extends c {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
#n(e) {
|
|
37
|
-
let t = this.dropdowns.some((e) => e.matches(":popover-open")),
|
|
38
|
-
t &&
|
|
37
|
+
let t = this.dropdowns.some((e) => e.matches(":popover-open")), n = this.dropdowns.every((t) => r(e, t));
|
|
38
|
+
t && n && this.close();
|
|
39
39
|
}
|
|
40
|
-
#r(
|
|
41
|
-
let n =
|
|
42
|
-
if (
|
|
40
|
+
#r(e) {
|
|
41
|
+
let n = e.target;
|
|
42
|
+
if (e.code === "Escape" && this.close(), e.code === "ArrowRight") {
|
|
43
43
|
let e = n.getAttribute("popovertarget");
|
|
44
44
|
this.dropdowns.find((t) => t.id === e)?.showPopover();
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
e.code === "ArrowLeft" && t(e.target) && n.closest("nve-dropdown")?.hidePopover();
|
|
47
47
|
}
|
|
48
48
|
#i(e) {
|
|
49
49
|
let t = e.target;
|
|
50
|
-
t.localName === "nve-dropdown" && this.dropdowns.find((e) => e === t) &&
|
|
50
|
+
t.localName === "nve-dropdown" && this.dropdowns.find((e) => e === t) && i(t)[0]?.focus();
|
|
51
51
|
}
|
|
52
52
|
#a(e) {
|
|
53
53
|
let t = e.target;
|
|
@@ -57,7 +57,7 @@ var d = class extends c {
|
|
|
57
57
|
this.querySelectorAll("nve-dropdown").forEach((e) => e.hidePopover());
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
o([u()], d.prototype, "dropdowns", void 0), d = o([e()], d);
|
|
61
61
|
//#endregion
|
|
62
62
|
export { d as DropdownGroup };
|
|
63
63
|
|
|
@@ -1,410 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { Icon } from '../icon';
|
|
3
3
|
import { fileTypeValidator } from './dropzone.util';
|
|
4
|
-
declare const Dropzone_base:
|
|
5
|
-
new (...args: any[]): {
|
|
6
|
-
get readOnly(): boolean;
|
|
7
|
-
set readOnly(value: boolean | unknown);
|
|
8
|
-
get disabled(): boolean;
|
|
9
|
-
set disabled(value: boolean | unknown);
|
|
10
|
-
get required(): boolean;
|
|
11
|
-
set required(value: File[] | unknown);
|
|
12
|
-
name: string;
|
|
13
|
-
get noValidate(): boolean;
|
|
14
|
-
set noValidate(value: boolean | unknown);
|
|
15
|
-
_value: File[] | undefined;
|
|
16
|
-
get value(): File[] | undefined;
|
|
17
|
-
set value(value: File[] | unknown);
|
|
18
|
-
updateValue(value: File[]): void;
|
|
19
|
-
readonly form: HTMLFormElement | null;
|
|
20
|
-
readonly willValidate: boolean;
|
|
21
|
-
readonly validity: ValidityState;
|
|
22
|
-
readonly validationMessage: string;
|
|
23
|
-
readonly valueAsString: string;
|
|
24
|
-
valueAsNumber: number;
|
|
25
|
-
readonly type: string;
|
|
26
|
-
readonly _metadata: import('@nvidia-elements/forms').FormControlMetadata;
|
|
27
|
-
_formInternals: ElementInternals;
|
|
28
|
-
_initialValue: File[] | undefined;
|
|
29
|
-
readonly _validators: import('@nvidia-elements/forms').Validator[];
|
|
30
|
-
readonly _internals: ElementInternals;
|
|
31
|
-
connectedCallback(): void;
|
|
32
|
-
disconnectedCallback(): void;
|
|
33
|
-
_stopInternalPropagation: (event: Event) => void;
|
|
34
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
35
|
-
_handleAttributeChange(name: string, newValue: string): void;
|
|
36
|
-
formResetCallback(): void;
|
|
37
|
-
formStateRestoreCallback(state: File[], _reason: string): void;
|
|
38
|
-
reportValidity(): boolean;
|
|
39
|
-
checkValidity(): boolean;
|
|
40
|
-
setValidity(validity: Partial<ValidityState>, message?: string): void;
|
|
41
|
-
dispatchInputEvent(): void;
|
|
42
|
-
dispatchChangeEvent(): void;
|
|
43
|
-
dispatchUpdateEvent(type: "input" | "change"): void;
|
|
44
|
-
_updateFormState(): void;
|
|
45
|
-
_requestUpdate(): void;
|
|
46
|
-
accessKey: string;
|
|
47
|
-
readonly accessKeyLabel: string;
|
|
48
|
-
autocapitalize: string;
|
|
49
|
-
autocorrect: boolean;
|
|
50
|
-
dir: string;
|
|
51
|
-
draggable: boolean;
|
|
52
|
-
hidden: boolean | "until-found";
|
|
53
|
-
inert: boolean;
|
|
54
|
-
innerText: string;
|
|
55
|
-
lang: string;
|
|
56
|
-
readonly offsetHeight: number;
|
|
57
|
-
readonly offsetLeft: number;
|
|
58
|
-
readonly offsetParent: Element | null;
|
|
59
|
-
readonly offsetTop: number;
|
|
60
|
-
readonly offsetWidth: number;
|
|
61
|
-
outerText: string;
|
|
62
|
-
popover: string | null;
|
|
63
|
-
spellcheck: boolean;
|
|
64
|
-
title: string;
|
|
65
|
-
translate: boolean;
|
|
66
|
-
writingSuggestions: string;
|
|
67
|
-
attachInternals(): ElementInternals;
|
|
68
|
-
click(): void;
|
|
69
|
-
hidePopover(): void;
|
|
70
|
-
showPopover(options?: ShowPopoverOptions): void;
|
|
71
|
-
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
72
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
73
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
74
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
75
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
76
|
-
readonly attributes: NamedNodeMap;
|
|
77
|
-
get classList(): DOMTokenList;
|
|
78
|
-
set classList(value: string);
|
|
79
|
-
className: string;
|
|
80
|
-
readonly clientHeight: number;
|
|
81
|
-
readonly clientLeft: number;
|
|
82
|
-
readonly clientTop: number;
|
|
83
|
-
readonly clientWidth: number;
|
|
84
|
-
readonly currentCSSZoom: number;
|
|
85
|
-
readonly customElementRegistry: CustomElementRegistry | null;
|
|
86
|
-
id: string;
|
|
87
|
-
innerHTML: string;
|
|
88
|
-
readonly localName: string;
|
|
89
|
-
readonly namespaceURI: string | null;
|
|
90
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
91
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
92
|
-
outerHTML: string;
|
|
93
|
-
readonly ownerDocument: Document;
|
|
94
|
-
get part(): DOMTokenList;
|
|
95
|
-
set part(value: string);
|
|
96
|
-
readonly prefix: string | null;
|
|
97
|
-
readonly scrollHeight: number;
|
|
98
|
-
scrollLeft: number;
|
|
99
|
-
scrollTop: number;
|
|
100
|
-
readonly scrollWidth: number;
|
|
101
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
102
|
-
slot: string;
|
|
103
|
-
readonly tagName: string;
|
|
104
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
105
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
106
|
-
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
107
|
-
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
108
|
-
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
109
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
110
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
111
|
-
getAttribute(qualifiedName: string): string | null;
|
|
112
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
113
|
-
getAttributeNames(): string[];
|
|
114
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
115
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
116
|
-
getBoundingClientRect(): DOMRect;
|
|
117
|
-
getClientRects(): DOMRectList;
|
|
118
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
119
|
-
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
120
|
-
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
121
|
-
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
122
|
-
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
123
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
124
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
125
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
126
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
127
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
128
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
129
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
130
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
131
|
-
hasAttributes(): boolean;
|
|
132
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
133
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
134
|
-
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
135
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
136
|
-
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
137
|
-
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
138
|
-
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
139
|
-
matches(selectors: string): boolean;
|
|
140
|
-
releasePointerCapture(pointerId: number): void;
|
|
141
|
-
removeAttribute(qualifiedName: string): void;
|
|
142
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
143
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
144
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
145
|
-
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
146
|
-
scroll(options?: ScrollToOptions): void;
|
|
147
|
-
scroll(x: number, y: number): void;
|
|
148
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
149
|
-
scrollBy(x: number, y: number): void;
|
|
150
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
151
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
152
|
-
scrollTo(x: number, y: number): void;
|
|
153
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
154
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
155
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
156
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
157
|
-
setHTMLUnsafe(html: string): void;
|
|
158
|
-
setPointerCapture(pointerId: number): void;
|
|
159
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
160
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
161
|
-
get textContent(): string;
|
|
162
|
-
set textContent(value: string | null);
|
|
163
|
-
readonly baseURI: string;
|
|
164
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
165
|
-
readonly firstChild: ChildNode | null;
|
|
166
|
-
readonly isConnected: boolean;
|
|
167
|
-
readonly lastChild: ChildNode | null;
|
|
168
|
-
readonly nextSibling: ChildNode | null;
|
|
169
|
-
readonly nodeName: string;
|
|
170
|
-
readonly nodeType: number;
|
|
171
|
-
nodeValue: string | null;
|
|
172
|
-
readonly parentElement: HTMLElement | null;
|
|
173
|
-
readonly parentNode: ParentNode | null;
|
|
174
|
-
readonly previousSibling: ChildNode | null;
|
|
175
|
-
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
176
|
-
cloneNode(subtree?: boolean): Node;
|
|
177
|
-
compareDocumentPosition(other: Node): number;
|
|
178
|
-
contains(other: Node | null): boolean;
|
|
179
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
180
|
-
hasChildNodes(): boolean;
|
|
181
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
182
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
183
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
184
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
185
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
186
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
187
|
-
normalize(): void;
|
|
188
|
-
removeChild<T_1 extends Node>(child: T_1): T_1;
|
|
189
|
-
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
|
190
|
-
readonly ELEMENT_NODE: 1;
|
|
191
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
192
|
-
readonly TEXT_NODE: 3;
|
|
193
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
194
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
195
|
-
readonly ENTITY_NODE: 6;
|
|
196
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
197
|
-
readonly COMMENT_NODE: 8;
|
|
198
|
-
readonly DOCUMENT_NODE: 9;
|
|
199
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
200
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
201
|
-
readonly NOTATION_NODE: 12;
|
|
202
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
203
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
204
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
205
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
206
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
207
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
208
|
-
dispatchEvent(event: Event): boolean;
|
|
209
|
-
ariaActiveDescendantElement: Element | null;
|
|
210
|
-
ariaAtomic: string | null;
|
|
211
|
-
ariaAutoComplete: string | null;
|
|
212
|
-
ariaBrailleLabel: string | null;
|
|
213
|
-
ariaBrailleRoleDescription: string | null;
|
|
214
|
-
ariaBusy: string | null;
|
|
215
|
-
ariaChecked: string | null;
|
|
216
|
-
ariaColCount: string | null;
|
|
217
|
-
ariaColIndex: string | null;
|
|
218
|
-
ariaColIndexText: string | null;
|
|
219
|
-
ariaColSpan: string | null;
|
|
220
|
-
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
221
|
-
ariaCurrent: string | null;
|
|
222
|
-
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
223
|
-
ariaDescription: string | null;
|
|
224
|
-
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
225
|
-
ariaDisabled: string | null;
|
|
226
|
-
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
227
|
-
ariaExpanded: string | null;
|
|
228
|
-
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
229
|
-
ariaHasPopup: string | null;
|
|
230
|
-
ariaHidden: string | null;
|
|
231
|
-
ariaInvalid: string | null;
|
|
232
|
-
ariaKeyShortcuts: string | null;
|
|
233
|
-
ariaLabel: string | null;
|
|
234
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
235
|
-
ariaLevel: string | null;
|
|
236
|
-
ariaLive: string | null;
|
|
237
|
-
ariaModal: string | null;
|
|
238
|
-
ariaMultiLine: string | null;
|
|
239
|
-
ariaMultiSelectable: string | null;
|
|
240
|
-
ariaOrientation: string | null;
|
|
241
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
242
|
-
ariaPlaceholder: string | null;
|
|
243
|
-
ariaPosInSet: string | null;
|
|
244
|
-
ariaPressed: string | null;
|
|
245
|
-
ariaReadOnly: string | null;
|
|
246
|
-
ariaRelevant: string | null;
|
|
247
|
-
ariaRequired: string | null;
|
|
248
|
-
ariaRoleDescription: string | null;
|
|
249
|
-
ariaRowCount: string | null;
|
|
250
|
-
ariaRowIndex: string | null;
|
|
251
|
-
ariaRowIndexText: string | null;
|
|
252
|
-
ariaRowSpan: string | null;
|
|
253
|
-
ariaSelected: string | null;
|
|
254
|
-
ariaSetSize: string | null;
|
|
255
|
-
ariaSort: string | null;
|
|
256
|
-
ariaValueMax: string | null;
|
|
257
|
-
ariaValueMin: string | null;
|
|
258
|
-
ariaValueNow: string | null;
|
|
259
|
-
ariaValueText: string | null;
|
|
260
|
-
role: string | null;
|
|
261
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
262
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
263
|
-
after(...nodes: (Node | string)[]): void;
|
|
264
|
-
before(...nodes: (Node | string)[]): void;
|
|
265
|
-
remove(): void;
|
|
266
|
-
replaceWith(...nodes: (Node | string)[]): void;
|
|
267
|
-
readonly nextElementSibling: Element | null;
|
|
268
|
-
readonly previousElementSibling: Element | null;
|
|
269
|
-
readonly childElementCount: number;
|
|
270
|
-
readonly children: HTMLCollection;
|
|
271
|
-
readonly firstElementChild: Element | null;
|
|
272
|
-
readonly lastElementChild: Element | null;
|
|
273
|
-
append(...nodes: (Node | string)[]): void;
|
|
274
|
-
moveBefore(node: Node, child: Node | null): void;
|
|
275
|
-
prepend(...nodes: (Node | string)[]): void;
|
|
276
|
-
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
277
|
-
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
278
|
-
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
279
|
-
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
280
|
-
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
281
|
-
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
282
|
-
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
283
|
-
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
284
|
-
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
285
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
286
|
-
replaceChildren(...nodes: (Node | string)[]): void;
|
|
287
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
288
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
289
|
-
get style(): CSSStyleDeclaration;
|
|
290
|
-
set style(cssText: string);
|
|
291
|
-
contentEditable: string;
|
|
292
|
-
enterKeyHint: string;
|
|
293
|
-
inputMode: string;
|
|
294
|
-
readonly isContentEditable: boolean;
|
|
295
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
296
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
297
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
298
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
299
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
300
|
-
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
301
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
302
|
-
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
304
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
305
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
307
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
308
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
-
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
|
-
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
312
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
314
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
316
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
318
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
319
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
320
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
321
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
322
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
323
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
324
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
325
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
326
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
-
onerror: OnErrorEventHandler;
|
|
330
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
331
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
332
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
333
|
-
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
334
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
335
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
336
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
337
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
338
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
339
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
340
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
341
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
342
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
343
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
344
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
345
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
346
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
347
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
348
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
349
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
350
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
351
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
352
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
353
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
354
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
355
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
356
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
357
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
358
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
359
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
360
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
361
|
-
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
362
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
363
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
364
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
365
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
366
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
367
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
368
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
369
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
370
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
371
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
372
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
373
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
374
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
375
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
376
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
377
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
378
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
379
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
380
|
-
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
381
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
382
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
383
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
384
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
385
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
386
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
387
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
388
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
389
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
390
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
391
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
392
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
393
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
394
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
395
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
396
|
-
autofocus: boolean;
|
|
397
|
-
readonly dataset: DOMStringMap;
|
|
398
|
-
nonce: string;
|
|
399
|
-
tabIndex: number;
|
|
400
|
-
blur(): void;
|
|
401
|
-
focus(options?: FocusOptions): void;
|
|
402
|
-
requestUpdate?(name?: string, oldValue?: unknown): void;
|
|
403
|
-
};
|
|
404
|
-
formAssociated: boolean;
|
|
405
|
-
metadata: import('@nvidia-elements/forms').FormControlMetadata;
|
|
406
|
-
readonly observedAttributes: string[];
|
|
407
|
-
} & typeof LitElement;
|
|
4
|
+
declare const Dropzone_base: import('@nvidia-elements/forms/mixins').FormControlMixinReturn<typeof LitElement, File[]>;
|
|
408
5
|
/**
|
|
409
6
|
* @element nve-dropzone
|
|
410
7
|
* @description A dropzone form control that enables users to drag and drop files onto it.
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { formatFileSize as e } from "../internal/utils/strings.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { I18nController as t } from "../internal/controllers/i18n.controller.js";
|
|
3
|
+
import { removeEmptyTextNode as n } from "../internal/utils/dom.js";
|
|
4
|
+
import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
|
|
5
|
+
import { useStyles as i } from "../internal/styles/index.js";
|
|
6
|
+
import { __decorate as a } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
|
|
7
7
|
import { Icon as o } from "../icon/icon2.js";
|
|
8
8
|
import s from "./dropzone.js";
|
|
9
9
|
import { fileSizeValidator as c, fileTypeValidator as l, getFileTypeSpecifiers as u } from "./dropzone.util.js";
|
|
10
10
|
import { LitElement as d, html as f } from "lit";
|
|
11
11
|
import { property as p } from "lit/decorators/property.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { FormControlMixin as m } from "@nvidia-elements/forms/mixins";
|
|
13
|
+
import { query as h } from "lit/decorators/query.js";
|
|
14
14
|
//#region src/dropzone/dropzone.ts
|
|
15
|
-
var g = class extends
|
|
15
|
+
var g = class extends m(d) {
|
|
16
16
|
#e;
|
|
17
17
|
static {
|
|
18
|
-
this.styles =
|
|
18
|
+
this.styles = i([s]);
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
21
|
this.metadata = {
|
|
22
22
|
tag: "nve-dropzone",
|
|
23
|
-
version: "0.2.
|
|
23
|
+
version: "0.2.3",
|
|
24
24
|
validators: [l, c],
|
|
25
25
|
valueSchema: {
|
|
26
26
|
type: "array",
|
|
@@ -42,7 +42,7 @@ var g = class extends h(d) {
|
|
|
42
42
|
this.value = [], this.requestUpdate();
|
|
43
43
|
}
|
|
44
44
|
constructor() {
|
|
45
|
-
super(), this.accept = "image/gif, image/jpeg, image/png, image/svg+xml", this.maxFileSize = 2 * 1024 ** 2, this.#e = new
|
|
45
|
+
super(), this.accept = "image/gif, image/jpeg, image/png, image/svg+xml", this.maxFileSize = 2 * 1024 ** 2, this.#e = new t(this), this.i18n = this.#e.i18n, this.value = [];
|
|
46
46
|
}
|
|
47
47
|
connectedCallback() {
|
|
48
48
|
super.connectedCallback(), this.setAttribute("nve-control", ""), globalThis.document.addEventListener("dragover", this.#t), globalThis.document.addEventListener("drop", this.#t);
|
|
@@ -88,16 +88,16 @@ var g = class extends h(d) {
|
|
|
88
88
|
this.toggleAttribute("highlighted", e);
|
|
89
89
|
}
|
|
90
90
|
#d(e) {
|
|
91
|
-
e.target.assignedNodes().forEach((e) =>
|
|
91
|
+
e.target.assignedNodes().forEach((e) => n(e));
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
94
|
return f`<div internal-host><div class="container" @click="${this.#n}" @dragenter="${this.#r}" @dragover="${this.#i}" @dragleave="${this.#a}" @drop="${this.#o}"><svg class="border" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="none" rx="4" ry="4" stroke="currentColor" stroke-width="2" stroke-dasharray="6,6" stroke-dashoffset="0" stroke-linecap="square"/></svg><slot name="icon"><nve-icon part="icon" class="icon" name="upload"></nve-icon></slot><slot @slotchange="${this.#d}"><div class="text-center"><div class="text-bold">${this.i18n.dragAndDrop} ${this.i18n.files} ${this.i18n.or} <span class="text-emphasized">${this.i18n.browseFiles}</span></div><div class="text-muted">${this.#l(this.accept)} — ${this.i18n.maxFileSize} ${e(this.maxFileSize)}</div></div></slot><input id="dropzone-input" type="file" accept="${this.accept}" @change="${this.#s}" multiple="multiple" hidden></div></div>`;
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
a([p()], g.prototype, "accept", void 0), a([p({
|
|
98
98
|
attribute: "max-file-size",
|
|
99
99
|
type: Number
|
|
100
|
-
})], g.prototype, "maxFileSize", void 0),
|
|
100
|
+
})], g.prototype, "maxFileSize", void 0), a([p({ type: Object })], g.prototype, "i18n", void 0), a([h("#dropzone-input")], g.prototype, "fileInput", void 0), g = a([r()], g);
|
|
101
101
|
//#endregion
|
|
102
102
|
export { g as Dropzone };
|
|
103
103
|
|