@proximus/lavender-autocomplete 1.4.10-alpha.7
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 +39 -0
- package/dist/AutocompleteHeader.d.ts +16 -0
- package/dist/AutocompleteOption.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +2268 -0
- package/package.json +23 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import '@proximus/lavender-dropdown';
|
|
2
|
+
import '@proximus/lavender-input';
|
|
3
|
+
import { type Dropdown } from '@proximus/lavender-dropdown';
|
|
4
|
+
import { type Input } from '@proximus/lavender-input';
|
|
5
|
+
/**
|
|
6
|
+
* @summary An autocomplete input component with dropdown suggestions.
|
|
7
|
+
* @attr {number} size - Visible width of the input in characters.
|
|
8
|
+
* @attr {string} state - Validation state forwarded to the input. One of `error` or `success`.
|
|
9
|
+
* @attr {boolean} extended - Makes the autocomplete take the full width of its container.
|
|
10
|
+
* @attr {boolean} extended--mobile - Full width on mobile breakpoint only.
|
|
11
|
+
* @attr {boolean} extended--tablet - Full width on tablet breakpoint only.
|
|
12
|
+
* @attr {boolean} extended--laptop - Full width on laptop breakpoint only.
|
|
13
|
+
* @attr {boolean} extended--desktop - Full width on desktop breakpoint only.
|
|
14
|
+
* @attr {string} name - The name used when submitting form data.
|
|
15
|
+
* @slot label - Slot for the input label.
|
|
16
|
+
* @slot helper - Slot for helper text shown next to the label.
|
|
17
|
+
* @slot status-text - Slot for the validation/status message (use `role="alert"` for errors, `role="status"` for success).
|
|
18
|
+
* @slot dropdown-content - Slot for dropdown content items such as `px-autocomplete-header` and `px-autocomplete-option`.
|
|
19
|
+
*/
|
|
20
|
+
export declare class Autocomplete extends HTMLElement {
|
|
21
|
+
#private;
|
|
22
|
+
static formAssociated: boolean;
|
|
23
|
+
private internals;
|
|
24
|
+
template: () => string;
|
|
25
|
+
constructor();
|
|
26
|
+
static get observedAttributes(): string[];
|
|
27
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
get value(): string;
|
|
31
|
+
set value(value: string);
|
|
32
|
+
get name(): string;
|
|
33
|
+
formResetCallback(): void;
|
|
34
|
+
formStateRestoreCallback(state: string): void;
|
|
35
|
+
get $dropDown(): Dropdown;
|
|
36
|
+
get $dropDownContent(): HTMLElement;
|
|
37
|
+
get $input(): Input & HTMLInputElement;
|
|
38
|
+
get $label(): HTMLElement;
|
|
39
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@proximus/lavender-icon';
|
|
2
|
+
import '@proximus/lavender-container';
|
|
3
|
+
import '@proximus/lavender-layout';
|
|
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
|
+
export declare class AutocompleteHeader extends HTMLElement {
|
|
10
|
+
#private;
|
|
11
|
+
private template;
|
|
12
|
+
constructor();
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
get $icon(): HTMLElement;
|
|
15
|
+
get $text(): HTMLElement;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '@proximus/lavender-layout';
|
|
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
|
+
export declare class AutocompleteOption extends HTMLElement {
|
|
10
|
+
#private;
|
|
11
|
+
private template;
|
|
12
|
+
constructor();
|
|
13
|
+
static get observedAttributes(): string[];
|
|
14
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
focus(options?: FocusOptions): void;
|
|
17
|
+
get selected(): boolean;
|
|
18
|
+
set selected(value: boolean);
|
|
19
|
+
get type(): string;
|
|
20
|
+
set type(value: string);
|
|
21
|
+
get $button(): HTMLButtonElement;
|
|
22
|
+
}
|
package/dist/index.d.ts
ADDED