@proximus/lavender-checkbox 1.4.19-beta.2 → 1.4.20-alpha.10
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/Checkbox.d.ts +165 -1
- package/dist/custom-elements.json +813 -19
- package/dist/index.es.js +24 -13
- package/dist/vscode.html-custom-data.json +183 -2
- package/dist/web-types.json +294 -5
- package/package.json +1 -1
package/dist/Checkbox.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { PxElement } from '@proximus/lavender-common';
|
|
2
2
|
export declare const checkboxVariantValues: string[];
|
|
3
3
|
export declare const checkboxStateValues: string[];
|
|
4
|
+
/**
|
|
5
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
6
|
+
* @attr {string} list - The ID of the associated datalist; the list property is the native datalist reference.
|
|
7
|
+
* @attr {string} popovertarget - The ID of the target popover.
|
|
8
|
+
*/
|
|
4
9
|
export declare class Checkbox extends PxElement<HTMLInputElement> {
|
|
5
10
|
/**
|
|
6
11
|
* @summary A checkbox component.
|
|
@@ -12,7 +17,66 @@ export declare class Checkbox extends PxElement<HTMLInputElement> {
|
|
|
12
17
|
*/
|
|
13
18
|
protected static readonly template: HTMLTemplateElement;
|
|
14
19
|
static nativeName: string;
|
|
15
|
-
static
|
|
20
|
+
static nativeProperties: {
|
|
21
|
+
checked: "writable";
|
|
22
|
+
indeterminate: "writable";
|
|
23
|
+
files: "writable";
|
|
24
|
+
selectionStart: "writable";
|
|
25
|
+
selectionEnd: "writable";
|
|
26
|
+
selectionDirection: "writable";
|
|
27
|
+
valueAsDate: "writable";
|
|
28
|
+
valueAsNumber: "writable";
|
|
29
|
+
form: "readonly";
|
|
30
|
+
list: "readonly";
|
|
31
|
+
labels: "readonly";
|
|
32
|
+
webkitEntries: "readonly";
|
|
33
|
+
popoverTargetElement: "writable";
|
|
34
|
+
validity: "readonly";
|
|
35
|
+
validationMessage: "readonly";
|
|
36
|
+
willValidate: "readonly";
|
|
37
|
+
};
|
|
38
|
+
static nativeMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "showPicker" | "stepDown" | "stepUp")[];
|
|
39
|
+
static nativeAttributes: Omit<{
|
|
40
|
+
accept: "accept"[];
|
|
41
|
+
alt: "alt"[];
|
|
42
|
+
autocomplete: "autocomplete"[];
|
|
43
|
+
autofocus: "autofocus"[];
|
|
44
|
+
capture: "capture"[];
|
|
45
|
+
checked: "defaultChecked"[];
|
|
46
|
+
dirname: "dirName"[];
|
|
47
|
+
disabled: "disabled"[];
|
|
48
|
+
form: never[];
|
|
49
|
+
formaction: "formAction"[];
|
|
50
|
+
formenctype: "formEnctype"[];
|
|
51
|
+
formmethod: "formMethod"[];
|
|
52
|
+
formnovalidate: "formNoValidate"[];
|
|
53
|
+
formtarget: "formTarget"[];
|
|
54
|
+
height: "height"[];
|
|
55
|
+
inputmode: "inputMode"[];
|
|
56
|
+
enterkeyhint: "enterKeyHint"[];
|
|
57
|
+
list: never[];
|
|
58
|
+
max: "max"[];
|
|
59
|
+
maxlength: "maxLength"[];
|
|
60
|
+
min: "min"[];
|
|
61
|
+
minlength: "minLength"[];
|
|
62
|
+
multiple: "multiple"[];
|
|
63
|
+
name: "name"[];
|
|
64
|
+
pattern: "pattern"[];
|
|
65
|
+
placeholder: "placeholder"[];
|
|
66
|
+
popovertarget: never[];
|
|
67
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
68
|
+
readonly: "readOnly"[];
|
|
69
|
+
required: "required"[];
|
|
70
|
+
size: "size"[];
|
|
71
|
+
src: "src"[];
|
|
72
|
+
step: "step"[];
|
|
73
|
+
title: "title"[];
|
|
74
|
+
type: "type"[];
|
|
75
|
+
usemap: "useMap"[];
|
|
76
|
+
value: ("value" | "defaultValue")[];
|
|
77
|
+
webkitdirectory: "webkitdirectory"[];
|
|
78
|
+
width: "width"[];
|
|
79
|
+
}, "size">;
|
|
16
80
|
protected internals: ElementInternals;
|
|
17
81
|
constructor();
|
|
18
82
|
static get observedAttributes(): string[];
|
|
@@ -37,6 +101,106 @@ export declare class Checkbox extends PxElement<HTMLInputElement> {
|
|
|
37
101
|
set state(value: string | null);
|
|
38
102
|
get inverted(): boolean;
|
|
39
103
|
set inverted(value: boolean);
|
|
104
|
+
/** @attr {string | null} size - The Lavender control size token. */
|
|
40
105
|
get size(): string | null;
|
|
41
106
|
set size(value: string | null);
|
|
107
|
+
/** @attr {string} accept - The accepted file types. */
|
|
108
|
+
accept: string;
|
|
109
|
+
/** @attr {string} alt - The alternative text. */
|
|
110
|
+
alt: string;
|
|
111
|
+
/** @attr {AutoFill} autocomplete - The native autofill hint. */
|
|
112
|
+
autocomplete: AutoFill;
|
|
113
|
+
/** @attr {boolean} autofocus - Whether the native element requests autofocus. */
|
|
114
|
+
autofocus: boolean;
|
|
115
|
+
/** @attr {string} capture - The preferred capture device for file selection. */
|
|
116
|
+
capture: string;
|
|
117
|
+
/** @attr {boolean} checked - The initial checked state; checked is live state. */
|
|
118
|
+
defaultChecked: boolean;
|
|
119
|
+
/** @attr {string} dirname - The field name used to submit the text direction. */
|
|
120
|
+
dirName: string;
|
|
121
|
+
/** @attr {boolean} disabled - Whether the native control is disabled. */
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
/** @attr {string} formaction - The submission URL override. */
|
|
124
|
+
formAction: string;
|
|
125
|
+
/** @attr {string} formenctype - The submission encoding override. */
|
|
126
|
+
formEnctype: string;
|
|
127
|
+
/** @attr {string} formmethod - The submission method override. */
|
|
128
|
+
formMethod: string;
|
|
129
|
+
/** @attr {boolean} formnovalidate - Whether submission bypasses validation. */
|
|
130
|
+
formNoValidate: boolean;
|
|
131
|
+
/** @attr {string} formtarget - The submission target override. */
|
|
132
|
+
formTarget: string;
|
|
133
|
+
/** @attr {number} height - The native height in pixels. */
|
|
134
|
+
height: number;
|
|
135
|
+
/** @attr {string} inputmode - The virtual keyboard input hint. */
|
|
136
|
+
inputMode: string;
|
|
137
|
+
/** @attr {string} enterkeyhint - The virtual keyboard enter-key hint. */
|
|
138
|
+
enterKeyHint: string;
|
|
139
|
+
/** @attr {string} max - The maximum allowed value. */
|
|
140
|
+
max: string;
|
|
141
|
+
/** @attr {number} maxlength - The maximum text length. */
|
|
142
|
+
maxLength: number;
|
|
143
|
+
/** @attr {string} min - The minimum allowed value. */
|
|
144
|
+
min: string;
|
|
145
|
+
/** @attr {number} minlength - The minimum text length. */
|
|
146
|
+
minLength: number;
|
|
147
|
+
/** @attr {boolean} multiple - Whether multiple values are allowed. */
|
|
148
|
+
multiple: boolean;
|
|
149
|
+
/** @attr {string} name - The native element name. */
|
|
150
|
+
name: string;
|
|
151
|
+
/** @attr {string} pattern - The native validation pattern. */
|
|
152
|
+
pattern: string;
|
|
153
|
+
/** @attr {string} placeholder - The placeholder text. */
|
|
154
|
+
placeholder: string;
|
|
155
|
+
/** @attr {string} popovertargetaction - The action for the target popover. */
|
|
156
|
+
popoverTargetAction: string;
|
|
157
|
+
/** @attr {boolean} readonly - Whether the native control is read-only. */
|
|
158
|
+
readOnly: boolean;
|
|
159
|
+
/** @attr {boolean} required - Whether a value is required. */
|
|
160
|
+
required: boolean;
|
|
161
|
+
/** @attr {string} src - The resource URL. */
|
|
162
|
+
src: string;
|
|
163
|
+
/** @attr {string} step - The allowed value increment. */
|
|
164
|
+
step: string;
|
|
165
|
+
/** @attr {string} title - The native element tooltip. */
|
|
166
|
+
title: string;
|
|
167
|
+
/** @attr {string} type - The native element type. */
|
|
168
|
+
type: string;
|
|
169
|
+
/** @attr {string} usemap - The associated image-map reference. */
|
|
170
|
+
useMap: string;
|
|
171
|
+
/** @attr {string} value - The initial native value; use value for live state. */
|
|
172
|
+
defaultValue: string;
|
|
173
|
+
/** The live native value, separate from the initial value attribute. */
|
|
174
|
+
value: 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'];
|
|
42
206
|
}
|