@proximus/lavender-switch 2.0.0-alpha.228 → 2.0.0-alpha.229
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/Switch.d.ts +163 -1
- package/dist/custom-elements.json +808 -14
- package/dist/index.es.js +20 -11
- package/dist/vscode.html-custom-data.json +188 -1
- package/dist/web-types.json +293 -3
- package/package.json +1 -1
package/dist/Switch.d.ts
CHANGED
|
@@ -3,10 +3,74 @@ export declare enum InputState {
|
|
|
3
3
|
ERROR = "error",
|
|
4
4
|
SUCCESS = "success"
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* @attr {string} form - The ID of the associated form; the form property is the native form reference.
|
|
8
|
+
* @attr {string} list - The ID of the associated datalist; the list property is the native datalist reference.
|
|
9
|
+
* @attr {string} popovertarget - The ID of the target popover.
|
|
10
|
+
*/
|
|
6
11
|
export declare class Switch extends PxElement<HTMLInputElement> {
|
|
7
12
|
protected static readonly template: HTMLTemplateElement;
|
|
8
13
|
static nativeName: string;
|
|
9
|
-
static
|
|
14
|
+
static nativeProperties: Omit<{
|
|
15
|
+
checked: "writable";
|
|
16
|
+
indeterminate: "writable";
|
|
17
|
+
files: "writable";
|
|
18
|
+
selectionStart: "writable";
|
|
19
|
+
selectionEnd: "writable";
|
|
20
|
+
selectionDirection: "writable";
|
|
21
|
+
valueAsDate: "writable";
|
|
22
|
+
valueAsNumber: "writable";
|
|
23
|
+
form: "readonly";
|
|
24
|
+
list: "readonly";
|
|
25
|
+
labels: "readonly";
|
|
26
|
+
webkitEntries: "readonly";
|
|
27
|
+
popoverTargetElement: "writable";
|
|
28
|
+
validity: "readonly";
|
|
29
|
+
validationMessage: "readonly";
|
|
30
|
+
willValidate: "readonly";
|
|
31
|
+
}, "checked">;
|
|
32
|
+
static nativeMethods: ("select" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "showPicker" | "stepDown" | "stepUp")[];
|
|
33
|
+
static nativeAttributes: {
|
|
34
|
+
disabled: never[];
|
|
35
|
+
accept: "accept"[];
|
|
36
|
+
alt: "alt"[];
|
|
37
|
+
autocomplete: "autocomplete"[];
|
|
38
|
+
autofocus: "autofocus"[];
|
|
39
|
+
capture: "capture"[];
|
|
40
|
+
checked: "defaultChecked"[];
|
|
41
|
+
dirname: "dirName"[];
|
|
42
|
+
form: never[];
|
|
43
|
+
formaction: "formAction"[];
|
|
44
|
+
formenctype: "formEnctype"[];
|
|
45
|
+
formmethod: "formMethod"[];
|
|
46
|
+
formnovalidate: "formNoValidate"[];
|
|
47
|
+
formtarget: "formTarget"[];
|
|
48
|
+
height: "height"[];
|
|
49
|
+
inputmode: "inputMode"[];
|
|
50
|
+
enterkeyhint: "enterKeyHint"[];
|
|
51
|
+
list: never[];
|
|
52
|
+
max: "max"[];
|
|
53
|
+
maxlength: "maxLength"[];
|
|
54
|
+
min: "min"[];
|
|
55
|
+
minlength: "minLength"[];
|
|
56
|
+
multiple: "multiple"[];
|
|
57
|
+
name: "name"[];
|
|
58
|
+
pattern: "pattern"[];
|
|
59
|
+
placeholder: "placeholder"[];
|
|
60
|
+
popovertarget: never[];
|
|
61
|
+
popovertargetaction: "popoverTargetAction"[];
|
|
62
|
+
readonly: "readOnly"[];
|
|
63
|
+
required: "required"[];
|
|
64
|
+
size: "size"[];
|
|
65
|
+
src: "src"[];
|
|
66
|
+
step: "step"[];
|
|
67
|
+
title: "title"[];
|
|
68
|
+
type: "type"[];
|
|
69
|
+
usemap: "useMap"[];
|
|
70
|
+
value: ("value" | "defaultValue")[];
|
|
71
|
+
webkitdirectory: "webkitdirectory"[];
|
|
72
|
+
width: "width"[];
|
|
73
|
+
};
|
|
10
74
|
protected internals: ElementInternals;
|
|
11
75
|
constructor();
|
|
12
76
|
static get observedAttributes(): string[];
|
|
@@ -20,8 +84,106 @@ export declare class Switch extends PxElement<HTMLInputElement> {
|
|
|
20
84
|
get $switch(): Element | null;
|
|
21
85
|
get inverted(): boolean;
|
|
22
86
|
set inverted(value: boolean);
|
|
87
|
+
/** @attr {boolean} checked - Whether the control is checked. */
|
|
23
88
|
get checked(): boolean;
|
|
24
89
|
set checked(value: boolean);
|
|
25
90
|
set disabled(value: boolean);
|
|
91
|
+
/** @attr {boolean} disabled - Whether the native control is disabled. */
|
|
26
92
|
get disabled(): boolean;
|
|
93
|
+
/** @attr {string} accept - The accepted file types. */
|
|
94
|
+
accept: string;
|
|
95
|
+
/** @attr {string} alt - The alternative text. */
|
|
96
|
+
alt: string;
|
|
97
|
+
/** @attr {AutoFill} autocomplete - The native autofill hint. */
|
|
98
|
+
autocomplete: AutoFill;
|
|
99
|
+
/** @attr {boolean} autofocus - Whether the native element requests autofocus. */
|
|
100
|
+
autofocus: boolean;
|
|
101
|
+
/** @attr {string} capture - The preferred capture device for file selection. */
|
|
102
|
+
capture: string;
|
|
103
|
+
defaultChecked: boolean;
|
|
104
|
+
/** @attr {string} dirname - The field name used to submit the text direction. */
|
|
105
|
+
dirName: string;
|
|
106
|
+
/** @attr {string} formaction - The submission URL override. */
|
|
107
|
+
formAction: string;
|
|
108
|
+
/** @attr {string} formenctype - The submission encoding override. */
|
|
109
|
+
formEnctype: string;
|
|
110
|
+
/** @attr {string} formmethod - The submission method override. */
|
|
111
|
+
formMethod: string;
|
|
112
|
+
/** @attr {boolean} formnovalidate - Whether submission bypasses validation. */
|
|
113
|
+
formNoValidate: boolean;
|
|
114
|
+
/** @attr {string} formtarget - The submission target override. */
|
|
115
|
+
formTarget: string;
|
|
116
|
+
/** @attr {number} height - The native height in pixels. */
|
|
117
|
+
height: number;
|
|
118
|
+
/** @attr {string} inputmode - The virtual keyboard input hint. */
|
|
119
|
+
inputMode: string;
|
|
120
|
+
/** @attr {string} enterkeyhint - The virtual keyboard enter-key hint. */
|
|
121
|
+
enterKeyHint: string;
|
|
122
|
+
/** @attr {string} max - The maximum allowed value. */
|
|
123
|
+
max: string;
|
|
124
|
+
/** @attr {number} maxlength - The maximum text length. */
|
|
125
|
+
maxLength: number;
|
|
126
|
+
/** @attr {string} min - The minimum allowed value. */
|
|
127
|
+
min: string;
|
|
128
|
+
/** @attr {number} minlength - The minimum text length. */
|
|
129
|
+
minLength: number;
|
|
130
|
+
/** @attr {boolean} multiple - Whether multiple values are allowed. */
|
|
131
|
+
multiple: boolean;
|
|
132
|
+
/** @attr {string} name - The native element name. */
|
|
133
|
+
name: string;
|
|
134
|
+
/** @attr {string} pattern - The native validation pattern. */
|
|
135
|
+
pattern: string;
|
|
136
|
+
/** @attr {string} placeholder - The placeholder text. */
|
|
137
|
+
placeholder: string;
|
|
138
|
+
/** @attr {string} popovertargetaction - The action for the target popover. */
|
|
139
|
+
popoverTargetAction: string;
|
|
140
|
+
/** @attr {boolean} readonly - Whether the native control is read-only. */
|
|
141
|
+
readOnly: boolean;
|
|
142
|
+
/** @attr {boolean} required - Whether a value is required. */
|
|
143
|
+
required: boolean;
|
|
144
|
+
/** @attr {number} size - The native control size. */
|
|
145
|
+
size: number;
|
|
146
|
+
/** @attr {string} src - The resource URL. */
|
|
147
|
+
src: string;
|
|
148
|
+
/** @attr {string} step - The allowed value increment. */
|
|
149
|
+
step: string;
|
|
150
|
+
/** @attr {string} title - The native element tooltip. */
|
|
151
|
+
title: string;
|
|
152
|
+
/** @attr {string} type - The native element type. */
|
|
153
|
+
type: string;
|
|
154
|
+
/** @attr {string} usemap - The associated image-map reference. */
|
|
155
|
+
useMap: string;
|
|
156
|
+
/** @attr {string} value - The initial native value; use value for live state. */
|
|
157
|
+
defaultValue: string;
|
|
158
|
+
/** The live native value, separate from the initial value attribute. */
|
|
159
|
+
value: string;
|
|
160
|
+
/** @attr {boolean} webkitdirectory - Whether directory selection is enabled, where supported. */
|
|
161
|
+
webkitdirectory: boolean;
|
|
162
|
+
/** @attr {number} width - The native width in pixels. */
|
|
163
|
+
width: number;
|
|
164
|
+
/** Live indeterminate state; assigning it does not reflect an attribute. */
|
|
165
|
+
indeterminate: boolean;
|
|
166
|
+
files: FileList | null;
|
|
167
|
+
selectionStart: number | null;
|
|
168
|
+
selectionEnd: number | null;
|
|
169
|
+
selectionDirection: SelectionDirection | null;
|
|
170
|
+
valueAsDate: Date | null;
|
|
171
|
+
valueAsNumber: number;
|
|
172
|
+
readonly validity: ValidityState;
|
|
173
|
+
readonly validationMessage: string;
|
|
174
|
+
readonly willValidate: boolean;
|
|
175
|
+
readonly labels: NodeListOf<HTMLLabelElement> | null;
|
|
176
|
+
readonly form: HTMLFormElement | null;
|
|
177
|
+
readonly list: HTMLDataListElement | null;
|
|
178
|
+
popoverTargetElement: Element | null;
|
|
179
|
+
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
180
|
+
readonly checkValidity: HTMLInputElement['checkValidity'];
|
|
181
|
+
readonly reportValidity: HTMLInputElement['reportValidity'];
|
|
182
|
+
readonly setCustomValidity: HTMLInputElement['setCustomValidity'];
|
|
183
|
+
readonly select: HTMLInputElement['select'];
|
|
184
|
+
readonly setRangeText: HTMLInputElement['setRangeText'];
|
|
185
|
+
readonly setSelectionRange: HTMLInputElement['setSelectionRange'];
|
|
186
|
+
readonly showPicker: HTMLInputElement['showPicker'];
|
|
187
|
+
readonly stepDown: HTMLInputElement['stepDown'];
|
|
188
|
+
readonly stepUp: HTMLInputElement['stepUp'];
|
|
27
189
|
}
|