@proximus/lavender-input 2.0.0-alpha.23 → 2.0.0-alpha.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AbstractInput.d.ts +9 -4
- package/dist/CodeInput.d.ts +206 -0
- package/dist/Input.d.ts +171 -5
- package/dist/Select.d.ts +64 -1
- package/dist/TextArea.d.ts +89 -0
- package/dist/Upload.d.ts +166 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +540 -253
- package/package.json +1 -1
package/dist/AbstractInput.d.ts
CHANGED
|
@@ -11,14 +11,19 @@ export declare abstract class AbstractInputElement<INPUT_ELEMENT extends HTMLInp
|
|
|
11
11
|
static get observedAttributes(): string[];
|
|
12
12
|
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
13
13
|
stateChangeCallback(oldValue: InputState, newValue: InputState): void;
|
|
14
|
-
swapLabels(oldValue: InputState, newValue: InputState): void;
|
|
15
14
|
formData(): FormData;
|
|
16
15
|
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
protected onNativeChange: () => void;
|
|
18
|
+
private onHelperSlotChange;
|
|
19
|
+
private onStatusTextSlotChange;
|
|
17
20
|
static get formAssociated(): boolean;
|
|
18
21
|
formResetCallback(): void;
|
|
19
|
-
formStateRestoreCallback(state:
|
|
22
|
+
formStateRestoreCallback(state: string): void;
|
|
23
|
+
private instanceId?;
|
|
20
24
|
setupForId(): void;
|
|
21
25
|
setupAriaDescribedBy(slotElements: NodeListOf<Element>, targetElement: Element, descriptor: string): void;
|
|
26
|
+
private ariaDescribedByRank;
|
|
22
27
|
get state(): InputState;
|
|
23
28
|
set state(value: InputState);
|
|
24
29
|
get extended(): boolean;
|
|
@@ -34,8 +39,8 @@ export declare abstract class AbstractInputElement<INPUT_ELEMENT extends HTMLInp
|
|
|
34
39
|
get $labelSlot(): Element;
|
|
35
40
|
get $helperSlot(): Element;
|
|
36
41
|
get $statusTextSlot(): Element;
|
|
37
|
-
get $label(): HTMLLabelElement;
|
|
38
|
-
get $labelHelper(): Element;
|
|
42
|
+
get $label(): HTMLLabelElement | null;
|
|
43
|
+
get $labelHelper(): Element | null;
|
|
39
44
|
get $slotHelper(): NodeListOf<Element>;
|
|
40
45
|
get $slotStatusText(): NodeListOf<Element>;
|
|
41
46
|
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { AbstractInputElement, InputState } from './AbstractInput.ts';
|
|
2
|
+
/**
|
|
3
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
4
|
+
* @attr {string} list - The ID of the associated datalist; the list property is the native datalist reference.
|
|
5
|
+
* @attr {string} popovertarget - The ID of the target popover.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CodeInput extends AbstractInputElement<HTMLInputElement> {
|
|
8
|
+
static styles: CSSStyleSheet;
|
|
9
|
+
static nativeName: string;
|
|
10
|
+
static nativeProperties: {
|
|
11
|
+
checked: "writable";
|
|
12
|
+
indeterminate: "writable";
|
|
13
|
+
files: "writable";
|
|
14
|
+
selectionStart: "writable";
|
|
15
|
+
selectionEnd: "writable";
|
|
16
|
+
selectionDirection: "writable";
|
|
17
|
+
valueAsDate: "writable";
|
|
18
|
+
valueAsNumber: "writable";
|
|
19
|
+
form: "readonly";
|
|
20
|
+
list: "readonly";
|
|
21
|
+
labels: "readonly";
|
|
22
|
+
webkitEntries: "readonly";
|
|
23
|
+
popoverTargetElement: "writable";
|
|
24
|
+
validity: "readonly";
|
|
25
|
+
validationMessage: "readonly";
|
|
26
|
+
willValidate: "readonly";
|
|
27
|
+
};
|
|
28
|
+
static nativeMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "showPicker" | "stepDown" | "stepUp")[];
|
|
29
|
+
static nativeAttributes: {
|
|
30
|
+
value: never[];
|
|
31
|
+
readonly: never[];
|
|
32
|
+
disabled: never[];
|
|
33
|
+
size: never[];
|
|
34
|
+
accept: "accept"[];
|
|
35
|
+
alt: "alt"[];
|
|
36
|
+
autocomplete: "autocomplete"[];
|
|
37
|
+
autofocus: "autofocus"[];
|
|
38
|
+
capture: "capture"[];
|
|
39
|
+
checked: "defaultChecked"[];
|
|
40
|
+
dirname: "dirName"[];
|
|
41
|
+
form: never[];
|
|
42
|
+
formaction: "formAction"[];
|
|
43
|
+
formenctype: "formEnctype"[];
|
|
44
|
+
formmethod: "formMethod"[];
|
|
45
|
+
formnovalidate: "formNoValidate"[];
|
|
46
|
+
formtarget: "formTarget"[];
|
|
47
|
+
height: "height"[];
|
|
48
|
+
inputmode: "inputMode"[];
|
|
49
|
+
enterkeyhint: "enterKeyHint"[];
|
|
50
|
+
list: never[];
|
|
51
|
+
max: "max"[];
|
|
52
|
+
maxlength: "maxLength"[];
|
|
53
|
+
min: "min"[];
|
|
54
|
+
minlength: "minLength"[];
|
|
55
|
+
multiple: "multiple"[];
|
|
56
|
+
name: "name"[];
|
|
57
|
+
pattern: "pattern"[];
|
|
58
|
+
placeholder: "placeholder"[];
|
|
59
|
+
popovertarget: never[];
|
|
60
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
61
|
+
required: "required"[];
|
|
62
|
+
src: "src"[];
|
|
63
|
+
step: "step"[];
|
|
64
|
+
title: "title"[];
|
|
65
|
+
type: "type"[];
|
|
66
|
+
usemap: "useMap"[];
|
|
67
|
+
webkitdirectory: "webkitdirectory"[];
|
|
68
|
+
width: "width"[];
|
|
69
|
+
};
|
|
70
|
+
template(): string;
|
|
71
|
+
constructor();
|
|
72
|
+
connectedCallback(): void;
|
|
73
|
+
disconnectedCallback(): void;
|
|
74
|
+
private static readonly forwardedAttributes;
|
|
75
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
76
|
+
stateChangeCallback(oldValue: InputState, newValue: InputState): void;
|
|
77
|
+
formData(): FormData;
|
|
78
|
+
formResetCallback(): void;
|
|
79
|
+
formStateRestoreCallback(state: string): void;
|
|
80
|
+
setupInputs(): void;
|
|
81
|
+
private syncCellAttributes;
|
|
82
|
+
private get isCollapsed();
|
|
83
|
+
private createSingleInput;
|
|
84
|
+
private restoreLabelAssociation;
|
|
85
|
+
private syncGroupAria;
|
|
86
|
+
private createCell;
|
|
87
|
+
private cellIndexOf;
|
|
88
|
+
private onContainerInput;
|
|
89
|
+
private onContainerKeydown;
|
|
90
|
+
private onContainerPaste;
|
|
91
|
+
private onCellInput;
|
|
92
|
+
private onCellKeydown;
|
|
93
|
+
private onCellPaste;
|
|
94
|
+
private distributeFrom;
|
|
95
|
+
private getValue;
|
|
96
|
+
private setValue;
|
|
97
|
+
private syncFormValue;
|
|
98
|
+
get $cells(): HTMLInputElement[];
|
|
99
|
+
get $single(): HTMLInputElement | null;
|
|
100
|
+
get $inputs(): HTMLInputElement[];
|
|
101
|
+
get $el(): HTMLInputElement;
|
|
102
|
+
get $container(): HTMLElement | null;
|
|
103
|
+
/** @attr {string} value - The aggregate code value. */
|
|
104
|
+
get value(): string;
|
|
105
|
+
set value(value: string);
|
|
106
|
+
/** @attr {number} size - The number of code cells. */
|
|
107
|
+
get size(): number;
|
|
108
|
+
set size(value: number);
|
|
109
|
+
/** @attr {boolean} readonly - Whether the native control is read-only. */
|
|
110
|
+
get readOnly(): boolean;
|
|
111
|
+
set readOnly(value: boolean);
|
|
112
|
+
/** @attr {boolean} disabled - Whether the native control is disabled. */
|
|
113
|
+
get disabled(): boolean;
|
|
114
|
+
set disabled(value: boolean);
|
|
115
|
+
/** @attr {string} accept - The accepted file types. */
|
|
116
|
+
accept: string;
|
|
117
|
+
/** @attr {string} alt - The alternative text. */
|
|
118
|
+
alt: string;
|
|
119
|
+
/** @attr {AutoFill} autocomplete - The native autofill hint. */
|
|
120
|
+
autocomplete: AutoFill;
|
|
121
|
+
/** @attr {boolean} autofocus - Whether the native element requests autofocus. */
|
|
122
|
+
autofocus: boolean;
|
|
123
|
+
/** @attr {string} capture - The preferred capture device for file selection. */
|
|
124
|
+
capture: string;
|
|
125
|
+
/** @attr {boolean} checked - The initial checked state; checked is live state. */
|
|
126
|
+
defaultChecked: boolean;
|
|
127
|
+
/** @attr {string} dirname - The field name used to submit the text direction. */
|
|
128
|
+
dirName: string;
|
|
129
|
+
/** @attr {string} formaction - The submission URL override. */
|
|
130
|
+
formAction: string;
|
|
131
|
+
/** @attr {string} formenctype - The submission encoding override. */
|
|
132
|
+
formEnctype: string;
|
|
133
|
+
/** @attr {string} formmethod - The submission method override. */
|
|
134
|
+
formMethod: string;
|
|
135
|
+
/** @attr {boolean} formnovalidate - Whether submission bypasses validation. */
|
|
136
|
+
formNoValidate: boolean;
|
|
137
|
+
/** @attr {string} formtarget - The submission target override. */
|
|
138
|
+
formTarget: string;
|
|
139
|
+
/** @attr {number} height - The native height in pixels. */
|
|
140
|
+
height: number;
|
|
141
|
+
/** @attr {string} inputmode - The virtual keyboard input hint. */
|
|
142
|
+
inputMode: string;
|
|
143
|
+
/** @attr {string} enterkeyhint - The virtual keyboard enter-key hint. */
|
|
144
|
+
enterKeyHint: string;
|
|
145
|
+
/** @attr {string} max - The maximum allowed value. */
|
|
146
|
+
max: string;
|
|
147
|
+
/** @attr {number} maxlength - The maximum text length. */
|
|
148
|
+
maxLength: number;
|
|
149
|
+
/** @attr {string} min - The minimum allowed value. */
|
|
150
|
+
min: string;
|
|
151
|
+
/** @attr {number} minlength - The minimum text length. */
|
|
152
|
+
minLength: number;
|
|
153
|
+
/** @attr {boolean} multiple - Whether multiple values are allowed. */
|
|
154
|
+
multiple: boolean;
|
|
155
|
+
/** @attr {string} name - The native element name. */
|
|
156
|
+
name: string;
|
|
157
|
+
/** @attr {string} pattern - The native validation pattern. */
|
|
158
|
+
pattern: string;
|
|
159
|
+
/** @attr {string} placeholder - The placeholder text. */
|
|
160
|
+
placeholder: string;
|
|
161
|
+
/** @attr {string} popovertargetaction - The action for the target popover. */
|
|
162
|
+
popoverTargetAction: string;
|
|
163
|
+
/** @attr {boolean} required - Whether a value is required. */
|
|
164
|
+
required: boolean;
|
|
165
|
+
/** @attr {string} src - The resource URL. */
|
|
166
|
+
src: string;
|
|
167
|
+
/** @attr {string} step - The allowed value increment. */
|
|
168
|
+
step: string;
|
|
169
|
+
/** @attr {string} title - The native element tooltip. */
|
|
170
|
+
title: string;
|
|
171
|
+
/** @attr {string} type - The native element type. */
|
|
172
|
+
type: string;
|
|
173
|
+
/** @attr {string} usemap - The associated image-map reference. */
|
|
174
|
+
useMap: string;
|
|
175
|
+
/** @attr {boolean} webkitdirectory - Whether directory selection is enabled, where supported. */
|
|
176
|
+
webkitdirectory: boolean;
|
|
177
|
+
/** @attr {number} width - The native width in pixels. */
|
|
178
|
+
width: number;
|
|
179
|
+
/** Live checked state; assigning it does not reflect the checked attribute. */
|
|
180
|
+
checked: boolean;
|
|
181
|
+
/** Live indeterminate state; assigning it does not reflect an attribute. */
|
|
182
|
+
indeterminate: boolean;
|
|
183
|
+
files: FileList | null;
|
|
184
|
+
selectionStart: number | null;
|
|
185
|
+
selectionEnd: number | null;
|
|
186
|
+
selectionDirection: SelectionDirection | null;
|
|
187
|
+
valueAsDate: Date | null;
|
|
188
|
+
valueAsNumber: number;
|
|
189
|
+
readonly validity: ValidityState;
|
|
190
|
+
readonly validationMessage: string;
|
|
191
|
+
readonly willValidate: boolean;
|
|
192
|
+
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
193
|
+
readonly form: HTMLFormElement | null;
|
|
194
|
+
readonly list: HTMLDataListElement | null;
|
|
195
|
+
popoverTargetElement: Element | null;
|
|
196
|
+
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
197
|
+
readonly checkValidity: HTMLInputElement['checkValidity'];
|
|
198
|
+
readonly reportValidity: HTMLInputElement['reportValidity'];
|
|
199
|
+
readonly setCustomValidity: HTMLInputElement['setCustomValidity'];
|
|
200
|
+
readonly select: HTMLInputElement['select'];
|
|
201
|
+
readonly setRangeText: HTMLInputElement['setRangeText'];
|
|
202
|
+
readonly setSelectionRange: HTMLInputElement['setSelectionRange'];
|
|
203
|
+
readonly showPicker: HTMLInputElement['showPicker'];
|
|
204
|
+
readonly stepDown: HTMLInputElement['stepDown'];
|
|
205
|
+
readonly stepUp: HTMLInputElement['stepUp'];
|
|
206
|
+
}
|
package/dist/Input.d.ts
CHANGED
|
@@ -1,13 +1,179 @@
|
|
|
1
1
|
import { AbstractInputElement } from './AbstractInput.ts';
|
|
2
|
+
/**
|
|
3
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
4
|
+
* @attr {string} list - The ID of the associated datalist; the list property is the native datalist reference.
|
|
5
|
+
* @attr {string} popovertarget - The ID of the target popover.
|
|
6
|
+
*/
|
|
2
7
|
export declare class Input extends AbstractInputElement<HTMLInputElement> {
|
|
3
8
|
static nativeName: string;
|
|
4
|
-
|
|
9
|
+
static nativeProperties: {
|
|
10
|
+
checked: "writable";
|
|
11
|
+
indeterminate: "writable";
|
|
12
|
+
files: "writable";
|
|
13
|
+
selectionStart: "writable";
|
|
14
|
+
selectionEnd: "writable";
|
|
15
|
+
selectionDirection: "writable";
|
|
16
|
+
valueAsDate: "writable";
|
|
17
|
+
valueAsNumber: "writable";
|
|
18
|
+
form: "readonly";
|
|
19
|
+
list: "readonly";
|
|
20
|
+
labels: "readonly";
|
|
21
|
+
webkitEntries: "readonly";
|
|
22
|
+
popoverTargetElement: "writable";
|
|
23
|
+
validity: "readonly";
|
|
24
|
+
validationMessage: "readonly";
|
|
25
|
+
willValidate: "readonly";
|
|
26
|
+
};
|
|
27
|
+
static nativeMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "showPicker" | "stepDown" | "stepUp")[];
|
|
28
|
+
static nativeAttributes: {
|
|
29
|
+
accept: "accept"[];
|
|
30
|
+
alt: "alt"[];
|
|
31
|
+
autocomplete: "autocomplete"[];
|
|
32
|
+
autofocus: "autofocus"[];
|
|
33
|
+
capture: "capture"[];
|
|
34
|
+
checked: "defaultChecked"[];
|
|
35
|
+
dirname: "dirName"[];
|
|
36
|
+
disabled: "disabled"[];
|
|
37
|
+
form: never[];
|
|
38
|
+
formaction: "formAction"[];
|
|
39
|
+
formenctype: "formEnctype"[];
|
|
40
|
+
formmethod: "formMethod"[];
|
|
41
|
+
formnovalidate: "formNoValidate"[];
|
|
42
|
+
formtarget: "formTarget"[];
|
|
43
|
+
height: "height"[];
|
|
44
|
+
inputmode: "inputMode"[];
|
|
45
|
+
enterkeyhint: "enterKeyHint"[];
|
|
46
|
+
list: never[];
|
|
47
|
+
max: "max"[];
|
|
48
|
+
maxlength: "maxLength"[];
|
|
49
|
+
min: "min"[];
|
|
50
|
+
minlength: "minLength"[];
|
|
51
|
+
multiple: "multiple"[];
|
|
52
|
+
name: "name"[];
|
|
53
|
+
pattern: "pattern"[];
|
|
54
|
+
placeholder: "placeholder"[];
|
|
55
|
+
popovertarget: never[];
|
|
56
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
57
|
+
readonly: "readOnly"[];
|
|
58
|
+
required: "required"[];
|
|
59
|
+
size: "size"[];
|
|
60
|
+
src: "src"[];
|
|
61
|
+
step: "step"[];
|
|
62
|
+
title: "title"[];
|
|
63
|
+
type: "type"[];
|
|
64
|
+
usemap: "useMap"[];
|
|
65
|
+
value: ("value" | "defaultValue")[];
|
|
66
|
+
webkitdirectory: "webkitdirectory"[];
|
|
67
|
+
width: "width"[];
|
|
68
|
+
};
|
|
69
|
+
observer: MutationObserver | null;
|
|
5
70
|
constructor();
|
|
6
71
|
connectedCallback(): void;
|
|
7
|
-
syncDataList()
|
|
72
|
+
syncDataList: () => void;
|
|
8
73
|
disconnectedCallback(): void;
|
|
9
74
|
template(): string;
|
|
10
|
-
get $lightSuggestions(): HTMLDataListElement;
|
|
11
|
-
get $shadowSuggestions(): HTMLDataListElement;
|
|
12
|
-
get $container(): HTMLDivElement;
|
|
75
|
+
get $lightSuggestions(): HTMLDataListElement | null;
|
|
76
|
+
get $shadowSuggestions(): HTMLDataListElement | null;
|
|
77
|
+
get $container(): HTMLDivElement | null;
|
|
78
|
+
/** @attr {string} accept - The accepted file types. */
|
|
79
|
+
accept: string;
|
|
80
|
+
/** @attr {string} alt - The alternative text. */
|
|
81
|
+
alt: string;
|
|
82
|
+
/** @attr {AutoFill} autocomplete - The native autofill hint. */
|
|
83
|
+
autocomplete: AutoFill;
|
|
84
|
+
/** @attr {boolean} autofocus - Whether the native element requests autofocus. */
|
|
85
|
+
autofocus: boolean;
|
|
86
|
+
/** @attr {string} capture - The preferred capture device for file selection. */
|
|
87
|
+
capture: string;
|
|
88
|
+
/** @attr {boolean} checked - The initial checked state; checked is live state. */
|
|
89
|
+
defaultChecked: boolean;
|
|
90
|
+
/** @attr {string} dirname - The field name used to submit the text direction. */
|
|
91
|
+
dirName: string;
|
|
92
|
+
/** @attr {boolean} disabled - Whether the native control is disabled. */
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
/** @attr {string} formaction - The submission URL override. */
|
|
95
|
+
formAction: string;
|
|
96
|
+
/** @attr {string} formenctype - The submission encoding override. */
|
|
97
|
+
formEnctype: string;
|
|
98
|
+
/** @attr {string} formmethod - The submission method override. */
|
|
99
|
+
formMethod: string;
|
|
100
|
+
/** @attr {boolean} formnovalidate - Whether submission bypasses validation. */
|
|
101
|
+
formNoValidate: boolean;
|
|
102
|
+
/** @attr {string} formtarget - The submission target override. */
|
|
103
|
+
formTarget: string;
|
|
104
|
+
/** @attr {number} height - The native height in pixels. */
|
|
105
|
+
height: number;
|
|
106
|
+
/** @attr {string} inputmode - The virtual keyboard input hint. */
|
|
107
|
+
inputMode: string;
|
|
108
|
+
/** @attr {string} enterkeyhint - The virtual keyboard enter-key hint. */
|
|
109
|
+
enterKeyHint: string;
|
|
110
|
+
/** @attr {string} max - The maximum allowed value. */
|
|
111
|
+
max: string;
|
|
112
|
+
/** @attr {number} maxlength - The maximum text length. */
|
|
113
|
+
maxLength: number;
|
|
114
|
+
/** @attr {string} min - The minimum allowed value. */
|
|
115
|
+
min: string;
|
|
116
|
+
/** @attr {number} minlength - The minimum text length. */
|
|
117
|
+
minLength: number;
|
|
118
|
+
/** @attr {boolean} multiple - Whether multiple values are allowed. */
|
|
119
|
+
multiple: boolean;
|
|
120
|
+
/** @attr {string} name - The native element name. */
|
|
121
|
+
name: string;
|
|
122
|
+
/** @attr {string} pattern - The native validation pattern. */
|
|
123
|
+
pattern: string;
|
|
124
|
+
/** @attr {string} placeholder - The placeholder text. */
|
|
125
|
+
placeholder: string;
|
|
126
|
+
/** @attr {string} popovertargetaction - The action for the target popover. */
|
|
127
|
+
popoverTargetAction: string;
|
|
128
|
+
/** @attr {boolean} readonly - Whether the native control is read-only. */
|
|
129
|
+
readOnly: boolean;
|
|
130
|
+
/** @attr {boolean} required - Whether a value is required. */
|
|
131
|
+
required: boolean;
|
|
132
|
+
/** @attr {number} size - The native control size. */
|
|
133
|
+
size: number;
|
|
134
|
+
/** @attr {string} src - The resource URL. */
|
|
135
|
+
src: string;
|
|
136
|
+
/** @attr {string} step - The allowed value increment. */
|
|
137
|
+
step: string;
|
|
138
|
+
/** @attr {string} title - The native element tooltip. */
|
|
139
|
+
title: string;
|
|
140
|
+
/** @attr {string} type - The native element type. */
|
|
141
|
+
type: string;
|
|
142
|
+
/** @attr {string} usemap - The associated image-map reference. */
|
|
143
|
+
useMap: string;
|
|
144
|
+
/** @attr {string} value - The initial native value; use value for live state. */
|
|
145
|
+
defaultValue: string;
|
|
146
|
+
/** The live native value, separate from the initial value attribute. */
|
|
147
|
+
value: string;
|
|
148
|
+
/** @attr {boolean} webkitdirectory - Whether directory selection is enabled, where supported. */
|
|
149
|
+
webkitdirectory: boolean;
|
|
150
|
+
/** @attr {number} width - The native width in pixels. */
|
|
151
|
+
width: number;
|
|
152
|
+
/** Live checked state; assigning it does not reflect the checked attribute. */
|
|
153
|
+
checked: boolean;
|
|
154
|
+
/** Live indeterminate state; assigning it does not reflect an attribute. */
|
|
155
|
+
indeterminate: boolean;
|
|
156
|
+
files: FileList | null;
|
|
157
|
+
selectionStart: number | null;
|
|
158
|
+
selectionEnd: number | null;
|
|
159
|
+
selectionDirection: SelectionDirection | null;
|
|
160
|
+
valueAsDate: Date | null;
|
|
161
|
+
valueAsNumber: number;
|
|
162
|
+
readonly validity: ValidityState;
|
|
163
|
+
readonly validationMessage: string;
|
|
164
|
+
readonly willValidate: boolean;
|
|
165
|
+
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
166
|
+
readonly form: HTMLFormElement | null;
|
|
167
|
+
readonly list: HTMLDataListElement | null;
|
|
168
|
+
popoverTargetElement: Element | null;
|
|
169
|
+
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
170
|
+
readonly checkValidity: HTMLInputElement['checkValidity'];
|
|
171
|
+
readonly reportValidity: HTMLInputElement['reportValidity'];
|
|
172
|
+
readonly setCustomValidity: HTMLInputElement['setCustomValidity'];
|
|
173
|
+
readonly select: HTMLInputElement['select'];
|
|
174
|
+
readonly setRangeText: HTMLInputElement['setRangeText'];
|
|
175
|
+
readonly setSelectionRange: HTMLInputElement['setSelectionRange'];
|
|
176
|
+
readonly showPicker: HTMLInputElement['showPicker'];
|
|
177
|
+
readonly stepDown: HTMLInputElement['stepDown'];
|
|
178
|
+
readonly stepUp: HTMLInputElement['stepUp'];
|
|
13
179
|
}
|
package/dist/Select.d.ts
CHANGED
|
@@ -1,10 +1,73 @@
|
|
|
1
1
|
import { AbstractInputElement } from './AbstractInput';
|
|
2
|
+
/**
|
|
3
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
4
|
+
*/
|
|
2
5
|
export declare class Select extends AbstractInputElement<HTMLSelectElement> {
|
|
3
6
|
#private;
|
|
4
7
|
static nativeName: string;
|
|
5
|
-
|
|
8
|
+
static nativeProperties: {
|
|
9
|
+
value: "writable";
|
|
10
|
+
selectedIndex: "writable";
|
|
11
|
+
length: "writable";
|
|
12
|
+
options: "readonly";
|
|
13
|
+
selectedOptions: "readonly";
|
|
14
|
+
type: "readonly";
|
|
15
|
+
form: "readonly";
|
|
16
|
+
labels: "readonly";
|
|
17
|
+
validity: "readonly";
|
|
18
|
+
validationMessage: "readonly";
|
|
19
|
+
willValidate: "readonly";
|
|
20
|
+
};
|
|
21
|
+
static nativeMethods: ("checkValidity" | "reportValidity" | "setCustomValidity" | "showPicker" | "add" | "item" | "namedItem")[];
|
|
22
|
+
static nativeAttributes: {
|
|
23
|
+
autocomplete: "autocomplete"[];
|
|
24
|
+
autofocus: "autofocus"[];
|
|
25
|
+
disabled: "disabled"[];
|
|
26
|
+
form: never[];
|
|
27
|
+
multiple: "multiple"[];
|
|
28
|
+
name: "name"[];
|
|
29
|
+
required: "required"[];
|
|
30
|
+
size: "size"[];
|
|
31
|
+
title: "title"[];
|
|
32
|
+
};
|
|
33
|
+
observer: MutationObserver | null;
|
|
6
34
|
template(): string;
|
|
7
35
|
constructor();
|
|
8
36
|
connectedCallback(): void;
|
|
9
37
|
disconnectedCallback(): void;
|
|
38
|
+
/** @attr {AutoFill} autocomplete - The native autofill hint. */
|
|
39
|
+
autocomplete: AutoFill;
|
|
40
|
+
/** @attr {boolean} autofocus - Whether the native element requests autofocus. */
|
|
41
|
+
autofocus: boolean;
|
|
42
|
+
/** @attr {boolean} disabled - Whether the native control is disabled. */
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
/** @attr {boolean} multiple - Whether multiple values are allowed. */
|
|
45
|
+
multiple: boolean;
|
|
46
|
+
/** @attr {string} name - The native element name. */
|
|
47
|
+
name: string;
|
|
48
|
+
/** @attr {boolean} required - Whether a value is required. */
|
|
49
|
+
required: boolean;
|
|
50
|
+
/** @attr {number} size - The native control size. */
|
|
51
|
+
size: number;
|
|
52
|
+
/** @attr {string} title - The native element tooltip. */
|
|
53
|
+
title: string;
|
|
54
|
+
/** The live native value, separate from the initial value attribute. */
|
|
55
|
+
value: string;
|
|
56
|
+
selectedIndex: number;
|
|
57
|
+
length: number;
|
|
58
|
+
readonly options: HTMLOptionsCollection;
|
|
59
|
+
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
|
|
60
|
+
readonly validity: ValidityState;
|
|
61
|
+
readonly validationMessage: string;
|
|
62
|
+
readonly willValidate: boolean;
|
|
63
|
+
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
64
|
+
readonly form: HTMLFormElement | null;
|
|
65
|
+
readonly type: 'select-one' | 'select-multiple';
|
|
66
|
+
readonly checkValidity: HTMLSelectElement['checkValidity'];
|
|
67
|
+
readonly reportValidity: HTMLSelectElement['reportValidity'];
|
|
68
|
+
readonly setCustomValidity: HTMLSelectElement['setCustomValidity'];
|
|
69
|
+
readonly add: HTMLSelectElement['add'];
|
|
70
|
+
readonly item: HTMLSelectElement['item'];
|
|
71
|
+
readonly namedItem: HTMLSelectElement['namedItem'];
|
|
72
|
+
readonly showPicker: HTMLSelectElement['showPicker'];
|
|
10
73
|
}
|
package/dist/TextArea.d.ts
CHANGED
|
@@ -1,6 +1,95 @@
|
|
|
1
1
|
import { AbstractInputElement } from './AbstractInput';
|
|
2
|
+
/**
|
|
3
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
4
|
+
*/
|
|
2
5
|
export declare class TextArea extends AbstractInputElement<HTMLTextAreaElement> {
|
|
3
6
|
static nativeName: string;
|
|
7
|
+
static nativeProperties: {
|
|
8
|
+
value: "writable";
|
|
9
|
+
defaultValue: "writable";
|
|
10
|
+
selectionStart: "writable";
|
|
11
|
+
selectionEnd: "writable";
|
|
12
|
+
selectionDirection: "writable";
|
|
13
|
+
textLength: "readonly";
|
|
14
|
+
type: "readonly";
|
|
15
|
+
form: "readonly";
|
|
16
|
+
labels: "readonly";
|
|
17
|
+
validity: "readonly";
|
|
18
|
+
validationMessage: "readonly";
|
|
19
|
+
willValidate: "readonly";
|
|
20
|
+
};
|
|
21
|
+
static nativeMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange")[];
|
|
22
|
+
static nativeAttributes: {
|
|
23
|
+
autocomplete: "autocomplete"[];
|
|
24
|
+
autofocus: "autofocus"[];
|
|
25
|
+
cols: "cols"[];
|
|
26
|
+
dirname: "dirName"[];
|
|
27
|
+
disabled: "disabled"[];
|
|
28
|
+
form: never[];
|
|
29
|
+
inputmode: "inputMode"[];
|
|
30
|
+
enterkeyhint: "enterKeyHint"[];
|
|
31
|
+
maxlength: "maxLength"[];
|
|
32
|
+
minlength: "minLength"[];
|
|
33
|
+
name: "name"[];
|
|
34
|
+
placeholder: "placeholder"[];
|
|
35
|
+
readonly: "readOnly"[];
|
|
36
|
+
required: "required"[];
|
|
37
|
+
rows: "rows"[];
|
|
38
|
+
title: "title"[];
|
|
39
|
+
wrap: "wrap"[];
|
|
40
|
+
};
|
|
4
41
|
constructor();
|
|
5
42
|
template(): string;
|
|
43
|
+
/** @attr {AutoFill} autocomplete - The native autofill hint. */
|
|
44
|
+
autocomplete: AutoFill;
|
|
45
|
+
/** @attr {boolean} autofocus - Whether the native element requests autofocus. */
|
|
46
|
+
autofocus: boolean;
|
|
47
|
+
/** @attr {number} cols - The visible number of text columns. */
|
|
48
|
+
cols: number;
|
|
49
|
+
/** @attr {string} dirname - The field name used to submit the text direction. */
|
|
50
|
+
dirName: string;
|
|
51
|
+
/** @attr {boolean} disabled - Whether the native control is disabled. */
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
/** @attr {string} inputmode - The virtual keyboard input hint. */
|
|
54
|
+
inputMode: string;
|
|
55
|
+
/** @attr {string} enterkeyhint - The virtual keyboard enter-key hint. */
|
|
56
|
+
enterKeyHint: string;
|
|
57
|
+
/** @attr {number} maxlength - The maximum text length. */
|
|
58
|
+
maxLength: number;
|
|
59
|
+
/** @attr {number} minlength - The minimum text length. */
|
|
60
|
+
minLength: number;
|
|
61
|
+
/** @attr {string} name - The native element name. */
|
|
62
|
+
name: string;
|
|
63
|
+
/** @attr {string} placeholder - The placeholder text. */
|
|
64
|
+
placeholder: string;
|
|
65
|
+
/** @attr {boolean} readonly - Whether the native control is read-only. */
|
|
66
|
+
readOnly: boolean;
|
|
67
|
+
/** @attr {boolean} required - Whether a value is required. */
|
|
68
|
+
required: boolean;
|
|
69
|
+
/** @attr {number} rows - The visible number of text rows. */
|
|
70
|
+
rows: number;
|
|
71
|
+
/** @attr {string} title - The native element tooltip. */
|
|
72
|
+
title: string;
|
|
73
|
+
/** @attr {string} wrap - The native text wrapping behavior. */
|
|
74
|
+
wrap: string;
|
|
75
|
+
/** The live native value, separate from the initial value attribute. */
|
|
76
|
+
value: string;
|
|
77
|
+
/** The native default value, separate from the live value. */
|
|
78
|
+
defaultValue: string;
|
|
79
|
+
selectionStart: number;
|
|
80
|
+
selectionEnd: number;
|
|
81
|
+
selectionDirection: SelectionDirection;
|
|
82
|
+
readonly textLength: number;
|
|
83
|
+
readonly validity: ValidityState;
|
|
84
|
+
readonly validationMessage: string;
|
|
85
|
+
readonly willValidate: boolean;
|
|
86
|
+
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
87
|
+
readonly form: HTMLFormElement | null;
|
|
88
|
+
readonly type: string;
|
|
89
|
+
readonly checkValidity: HTMLTextAreaElement['checkValidity'];
|
|
90
|
+
readonly reportValidity: HTMLTextAreaElement['reportValidity'];
|
|
91
|
+
readonly setCustomValidity: HTMLTextAreaElement['setCustomValidity'];
|
|
92
|
+
readonly select: HTMLTextAreaElement['select'];
|
|
93
|
+
readonly setRangeText: HTMLTextAreaElement['setRangeText'];
|
|
94
|
+
readonly setSelectionRange: HTMLTextAreaElement['setSelectionRange'];
|
|
6
95
|
}
|