@proximus/lavender-autocomplete 2.0.0-alpha.203 → 2.0.0-alpha.204
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/Autocomplete.d.ts +16 -16
- package/dist/AutocompleteHeader.d.ts +5 -5
- package/dist/AutocompleteOption.d.ts +7 -7
- package/dist/custom-elements.json +30 -98
- package/dist/index.es.js +303 -266
- package/dist/vscode.html-custom-data.json +11 -44
- package/dist/web-types.json +14 -78
- package/package.json +1 -1
package/dist/Autocomplete.d.ts
CHANGED
|
@@ -3,26 +3,26 @@ import '@proximus/lavender-input';
|
|
|
3
3
|
import { type Dropdown } from '@proximus/lavender-dropdown';
|
|
4
4
|
import { type Input } from '@proximus/lavender-input';
|
|
5
5
|
import { WithExtraAttributes } from '@proximus/lavender-common';
|
|
6
|
-
/**
|
|
7
|
-
* @summary An autocomplete input component with dropdown suggestions.
|
|
8
|
-
* @attr {number} size - Visible width of the input in characters.
|
|
9
|
-
* @attr {string} state - Validation state forwarded to the input. One of `error` or `success`.
|
|
10
|
-
* @attr {boolean} extended - Makes the autocomplete take the full width of its container.
|
|
11
|
-
* @attr {boolean} extended--mobile - Full width on mobile breakpoint only.
|
|
12
|
-
* @attr {boolean} extended--tablet - Full width on tablet breakpoint only.
|
|
13
|
-
* @attr {boolean} extended--laptop - Full width on laptop breakpoint only.
|
|
14
|
-
* @attr {boolean} extended--desktop - Full width on desktop breakpoint only.
|
|
15
|
-
* @attr {string} name - The name used when submitting form data.
|
|
16
|
-
* @slot label - Slot for the input label.
|
|
17
|
-
* @slot helper - Slot for helper text shown next to the label.
|
|
18
|
-
* @slot status-text - Slot for the validation/status message (use `role="alert"` for errors, `role="status"` for success).
|
|
19
|
-
* @slot dropdown-content - Slot for dropdown content items such as `px-autocomplete-header` and `px-autocomplete-option`.
|
|
20
|
-
*/
|
|
21
6
|
export declare class Autocomplete extends WithExtraAttributes {
|
|
22
7
|
#private;
|
|
8
|
+
/**
|
|
9
|
+
* @summary An autocomplete input component with dropdown suggestions.
|
|
10
|
+
* @attr {number} size - Visible width of the input in characters.
|
|
11
|
+
* @attr {string} state - Validation state forwarded to the input. One of `error` or `success`.
|
|
12
|
+
* @attr {boolean} extended - Makes the autocomplete take the full width of its container.
|
|
13
|
+
* @attr {boolean} extended--mobile - Full width on mobile breakpoint only.
|
|
14
|
+
* @attr {boolean} extended--tablet - Full width on tablet breakpoint only.
|
|
15
|
+
* @attr {boolean} extended--laptop - Full width on laptop breakpoint only.
|
|
16
|
+
* @attr {boolean} extended--desktop - Full width on desktop breakpoint only.
|
|
17
|
+
* @attr {string} name - The name used when submitting form data.
|
|
18
|
+
* @slot label - Slot for the input label.
|
|
19
|
+
* @slot helper - Slot for helper text shown next to the label.
|
|
20
|
+
* @slot status-text - Slot for the validation/status message (use `role="alert"` for errors, `role="status"` for success).
|
|
21
|
+
* @slot dropdown-content - Slot for dropdown content items such as `px-autocomplete-header` and `px-autocomplete-option`.
|
|
22
|
+
*/
|
|
23
|
+
protected static readonly template: HTMLTemplateElement;
|
|
23
24
|
static formAssociated: boolean;
|
|
24
25
|
private internals;
|
|
25
|
-
template: () => string;
|
|
26
26
|
constructor();
|
|
27
27
|
static get observedAttributes(): string[];
|
|
28
28
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -2,13 +2,13 @@ import '@proximus/lavender-icon';
|
|
|
2
2
|
import '@proximus/lavender-container';
|
|
3
3
|
import '@proximus/lavender-layout';
|
|
4
4
|
import '@proximus/lavender-span';
|
|
5
|
-
/**
|
|
6
|
-
* @summary A header label displayed inside the autocomplete dropdown.
|
|
7
|
-
* @slot - Default slot for the header text content.
|
|
8
|
-
*/
|
|
9
5
|
export declare class AutocompleteHeader extends HTMLElement {
|
|
10
6
|
#private;
|
|
11
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @summary A header label displayed inside the autocomplete dropdown.
|
|
9
|
+
* @slot - Default slot for the header text content.
|
|
10
|
+
*/
|
|
11
|
+
protected static readonly template: HTMLTemplateElement;
|
|
12
12
|
constructor();
|
|
13
13
|
connectedCallback(): void;
|
|
14
14
|
get $icon(): HTMLElement;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '@proximus/lavender-layout';
|
|
2
2
|
import '@proximus/lavender-span';
|
|
3
|
-
/**
|
|
4
|
-
* @summary A selectable option button displayed inside the autocomplete dropdown.
|
|
5
|
-
* @attr {boolean} selected - Whether the option is currently selected.
|
|
6
|
-
* @attr {string} type - The type of the internal button. Defaults to 'button'.
|
|
7
|
-
* @slot - Default slot for the option text content.
|
|
8
|
-
*/
|
|
9
3
|
export declare class AutocompleteOption extends HTMLElement {
|
|
10
4
|
#private;
|
|
11
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @summary A selectable option button displayed inside the autocomplete dropdown.
|
|
7
|
+
* @attr {boolean} selected - Whether the option is currently selected.
|
|
8
|
+
* @attr {string} type - The type of the internal button. Defaults to 'button'.
|
|
9
|
+
* @slot - Default slot for the option text content.
|
|
10
|
+
*/
|
|
11
|
+
protected static readonly template: HTMLTemplateElement;
|
|
12
12
|
constructor();
|
|
13
13
|
static get observedAttributes(): string[];
|
|
14
14
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -10,25 +10,16 @@
|
|
|
10
10
|
"kind": "class",
|
|
11
11
|
"description": "",
|
|
12
12
|
"name": "Autocomplete",
|
|
13
|
-
"
|
|
14
|
-
{
|
|
15
|
-
"description": "Slot for the input label.",
|
|
16
|
-
"name": "label"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"description": "Slot for helper text shown next to the label.",
|
|
20
|
-
"name": "helper"
|
|
21
|
-
},
|
|
13
|
+
"members": [
|
|
22
14
|
{
|
|
23
|
-
"
|
|
24
|
-
"name": "
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "template",
|
|
17
|
+
"privacy": "protected",
|
|
18
|
+
"static": true,
|
|
19
|
+
"readonly": true,
|
|
20
|
+
"summary": "An autocomplete input component with dropdown suggestions.",
|
|
21
|
+
"attribute": "size"
|
|
25
22
|
},
|
|
26
|
-
{
|
|
27
|
-
"description": "Slot for dropdown content items such as `px-autocomplete-header` and `px-autocomplete-option`.",
|
|
28
|
-
"name": "dropdown-content"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"members": [
|
|
32
23
|
{
|
|
33
24
|
"kind": "field",
|
|
34
25
|
"name": "formAssociated",
|
|
@@ -51,10 +42,6 @@
|
|
|
51
42
|
"name": "#controlId",
|
|
52
43
|
"privacy": "private"
|
|
53
44
|
},
|
|
54
|
-
{
|
|
55
|
-
"kind": "field",
|
|
56
|
-
"name": "template"
|
|
57
|
-
},
|
|
58
45
|
{
|
|
59
46
|
"kind": "field",
|
|
60
47
|
"name": "#onClick",
|
|
@@ -145,78 +132,42 @@
|
|
|
145
132
|
{
|
|
146
133
|
"kind": "field",
|
|
147
134
|
"name": "popoverHeight"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"kind": "field",
|
|
151
|
-
"name": "innerHTML"
|
|
152
135
|
}
|
|
153
136
|
],
|
|
154
137
|
"attributes": [
|
|
155
138
|
{
|
|
156
139
|
"name": "size",
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
140
|
+
"readonly": true,
|
|
141
|
+
"summary": "An autocomplete input component with dropdown suggestions.",
|
|
142
|
+
"fieldName": "template",
|
|
160
143
|
"description": "Visible width of the input in characters."
|
|
161
144
|
},
|
|
162
145
|
{
|
|
163
|
-
"name": "state"
|
|
164
|
-
"type": {
|
|
165
|
-
"text": "string"
|
|
166
|
-
},
|
|
167
|
-
"description": "Validation state forwarded to the input. One of `error` or `success`."
|
|
146
|
+
"name": "state"
|
|
168
147
|
},
|
|
169
148
|
{
|
|
170
|
-
"name": "extended"
|
|
171
|
-
"type": {
|
|
172
|
-
"text": "boolean"
|
|
173
|
-
},
|
|
174
|
-
"description": "Makes the autocomplete take the full width of its container."
|
|
149
|
+
"name": "extended"
|
|
175
150
|
},
|
|
176
151
|
{
|
|
177
|
-
"name": "extended--mobile"
|
|
178
|
-
"type": {
|
|
179
|
-
"text": "boolean"
|
|
180
|
-
},
|
|
181
|
-
"description": "Full width on mobile breakpoint only."
|
|
152
|
+
"name": "extended--mobile"
|
|
182
153
|
},
|
|
183
154
|
{
|
|
184
|
-
"name": "extended--tablet"
|
|
185
|
-
"type": {
|
|
186
|
-
"text": "boolean"
|
|
187
|
-
},
|
|
188
|
-
"description": "Full width on tablet breakpoint only."
|
|
155
|
+
"name": "extended--tablet"
|
|
189
156
|
},
|
|
190
157
|
{
|
|
191
|
-
"name": "extended--laptop"
|
|
192
|
-
"type": {
|
|
193
|
-
"text": "boolean"
|
|
194
|
-
},
|
|
195
|
-
"description": "Full width on laptop breakpoint only."
|
|
158
|
+
"name": "extended--laptop"
|
|
196
159
|
},
|
|
197
160
|
{
|
|
198
|
-
"name": "extended--desktop"
|
|
199
|
-
"type": {
|
|
200
|
-
"text": "boolean"
|
|
201
|
-
},
|
|
202
|
-
"description": "Full width on desktop breakpoint only."
|
|
161
|
+
"name": "extended--desktop"
|
|
203
162
|
},
|
|
204
163
|
{
|
|
205
164
|
"name": "popover-height"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"type": {
|
|
209
|
-
"text": "string"
|
|
210
|
-
},
|
|
211
|
-
"description": "The name used when submitting form data.",
|
|
212
|
-
"name": "name"
|
|
213
165
|
}
|
|
214
166
|
],
|
|
215
167
|
"superclass": {
|
|
216
168
|
"name": "WithExtraAttributes",
|
|
217
169
|
"package": "@proximus/lavender-common"
|
|
218
170
|
},
|
|
219
|
-
"summary": "An autocomplete input component with dropdown suggestions.",
|
|
220
171
|
"tagName": "px-autocomplete",
|
|
221
172
|
"customElement": true
|
|
222
173
|
}
|
|
@@ -248,17 +199,14 @@
|
|
|
248
199
|
"kind": "class",
|
|
249
200
|
"description": "",
|
|
250
201
|
"name": "AutocompleteHeader",
|
|
251
|
-
"slots": [
|
|
252
|
-
{
|
|
253
|
-
"description": "Default slot for the header text content.",
|
|
254
|
-
"name": ""
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
202
|
"members": [
|
|
258
203
|
{
|
|
259
204
|
"kind": "field",
|
|
260
205
|
"name": "template",
|
|
261
|
-
"privacy": "
|
|
206
|
+
"privacy": "protected",
|
|
207
|
+
"static": true,
|
|
208
|
+
"readonly": true,
|
|
209
|
+
"summary": "A header label displayed inside the autocomplete dropdown."
|
|
262
210
|
},
|
|
263
211
|
{
|
|
264
212
|
"kind": "method",
|
|
@@ -275,10 +223,6 @@
|
|
|
275
223
|
"name": "$text",
|
|
276
224
|
"readonly": true
|
|
277
225
|
},
|
|
278
|
-
{
|
|
279
|
-
"kind": "field",
|
|
280
|
-
"name": "innerHTML"
|
|
281
|
-
},
|
|
282
226
|
{
|
|
283
227
|
"kind": "field",
|
|
284
228
|
"name": "adoptedStyleSheets",
|
|
@@ -291,7 +235,6 @@
|
|
|
291
235
|
"superclass": {
|
|
292
236
|
"name": "HTMLElement"
|
|
293
237
|
},
|
|
294
|
-
"summary": "A header label displayed inside the autocomplete dropdown.",
|
|
295
238
|
"tagName": "px-autocomplete-header",
|
|
296
239
|
"customElement": true
|
|
297
240
|
}
|
|
@@ -323,17 +266,15 @@
|
|
|
323
266
|
"kind": "class",
|
|
324
267
|
"description": "",
|
|
325
268
|
"name": "AutocompleteOption",
|
|
326
|
-
"slots": [
|
|
327
|
-
{
|
|
328
|
-
"description": "Default slot for the option text content.",
|
|
329
|
-
"name": ""
|
|
330
|
-
}
|
|
331
|
-
],
|
|
332
269
|
"members": [
|
|
333
270
|
{
|
|
334
271
|
"kind": "field",
|
|
335
272
|
"name": "template",
|
|
336
|
-
"privacy": "
|
|
273
|
+
"privacy": "protected",
|
|
274
|
+
"static": true,
|
|
275
|
+
"readonly": true,
|
|
276
|
+
"summary": "A selectable option button displayed inside the autocomplete dropdown.",
|
|
277
|
+
"attribute": "selected"
|
|
337
278
|
},
|
|
338
279
|
{
|
|
339
280
|
"kind": "method",
|
|
@@ -366,10 +307,6 @@
|
|
|
366
307
|
"name": "$button",
|
|
367
308
|
"readonly": true
|
|
368
309
|
},
|
|
369
|
-
{
|
|
370
|
-
"kind": "field",
|
|
371
|
-
"name": "innerHTML"
|
|
372
|
-
},
|
|
373
310
|
{
|
|
374
311
|
"kind": "field",
|
|
375
312
|
"name": "adoptedStyleSheets",
|
|
@@ -382,23 +319,18 @@
|
|
|
382
319
|
"attributes": [
|
|
383
320
|
{
|
|
384
321
|
"name": "selected",
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
322
|
+
"readonly": true,
|
|
323
|
+
"summary": "A selectable option button displayed inside the autocomplete dropdown.",
|
|
324
|
+
"fieldName": "template",
|
|
388
325
|
"description": "Whether the option is currently selected."
|
|
389
326
|
},
|
|
390
327
|
{
|
|
391
|
-
"name": "type"
|
|
392
|
-
"type": {
|
|
393
|
-
"text": "string"
|
|
394
|
-
},
|
|
395
|
-
"description": "The type of the internal button. Defaults to 'button'."
|
|
328
|
+
"name": "type"
|
|
396
329
|
}
|
|
397
330
|
],
|
|
398
331
|
"superclass": {
|
|
399
332
|
"name": "HTMLElement"
|
|
400
333
|
},
|
|
401
|
-
"summary": "A selectable option button displayed inside the autocomplete dropdown.",
|
|
402
334
|
"tagName": "px-autocomplete-option",
|
|
403
335
|
"customElement": true
|
|
404
336
|
}
|