@opensystemslab/map 0.5.1 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import { LitElement } from "lit";
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
2
2
|
declare type Address = {
|
3
3
|
LPI: any;
|
4
4
|
};
|
5
5
|
declare type ArrowStyleEnum = "default" | "light";
|
6
|
+
declare type LabelStyleEnum = "responsive" | "static";
|
6
7
|
export declare class AddressAutocomplete extends LitElement {
|
7
8
|
static styles: import("lit").CSSResult;
|
8
9
|
id: string;
|
@@ -11,6 +12,7 @@ export declare class AddressAutocomplete extends LitElement {
|
|
11
12
|
initialAddress: string;
|
12
13
|
osPlacesApiKey: string;
|
13
14
|
arrowStyle: ArrowStyleEnum;
|
15
|
+
labelStyle: LabelStyleEnum;
|
14
16
|
private _totalAddresses;
|
15
17
|
private _addressesInPostcode;
|
16
18
|
private _options;
|
@@ -21,7 +23,21 @@ export declare class AddressAutocomplete extends LitElement {
|
|
21
23
|
getLightDropdownArrow(): string;
|
22
24
|
firstUpdated(): void;
|
23
25
|
_fetchData(offset?: number, prevResults?: Address[]): Promise<void>;
|
24
|
-
|
26
|
+
_getLabelClasses(): string;
|
27
|
+
/**
|
28
|
+
* Render an errorMessage container
|
29
|
+
* Must always be visible to ensure that role="status" works for screenreaders
|
30
|
+
* @param errorMessage
|
31
|
+
* @returns TemplateResult
|
32
|
+
*/
|
33
|
+
_getErrorMessageContainer(errorMessage: string | undefined): TemplateResult;
|
34
|
+
/**
|
35
|
+
* If not in state of error, return the autocomplete
|
36
|
+
* @param errorMessage
|
37
|
+
* @returns TemplateResult | null
|
38
|
+
*/
|
39
|
+
_getAutocomplete(errorMessage: string | undefined): TemplateResult | null;
|
40
|
+
render(): TemplateResult<1>;
|
25
41
|
/**
|
26
42
|
* dispatches an event for clients to subscribe to
|
27
43
|
* @param eventName
|