@everymatrix/general-input 1.80.10 → 1.80.11
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/cjs/{checkbox-group-input_13.cjs.entry.js → checkbox-group-input_14.cjs.entry.js} +422 -19
- package/dist/cjs/general-input.cjs.js +1 -1
- package/dist/cjs/index-3b546c2c.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/general-input/general-input.js +64 -4
- package/dist/collection/components/postalcode-input/postalcode-input.css +221 -0
- package/dist/collection/components/postalcode-input/postalcode-input.js +673 -0
- package/dist/collection/components/radio-input/radio-input.js +2 -2
- package/dist/collection/components/select-input/select-input.js +3 -3
- package/dist/collection/components/tel-input/tel-input.js +2 -2
- package/dist/collection/components/text-input/text-input.css +17 -0
- package/dist/collection/components/text-input/text-input.js +79 -6
- package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +2 -2
- package/dist/collection/components/twofa-input/twofa-input.js +2 -2
- package/dist/collection/utils/locale.utils.js +3 -0
- package/dist/esm/{checkbox-group-input_13.entry.js → checkbox-group-input_14.entry.js} +422 -20
- package/dist/esm/general-input.js +1 -1
- package/dist/esm/index-ca174b7a.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/general-input/{checkbox-group-input_13.entry.js → checkbox-group-input_14.entry.js} +165 -165
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/types/components/general-input/general-input.d.ts +18 -2
- package/dist/types/components/postalcode-input/postalcode-input.d.ts +111 -0
- package/dist/types/components/text-input/text-input.d.ts +12 -0
- package/dist/types/components.d.ts +165 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./index-ca174b7a.js";export{s as setNonce}from"./index-ca174b7a.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["checkbox-group-
|
|
1
|
+
import{p as e,b as l}from"./index-ca174b7a.js";export{s as setNonce}from"./index-ca174b7a.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["checkbox-group-input_14",[[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],hidePasswordComplexity:[516,"hide-password-complexity"],noValidation:[516,"no-validation"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"],twofaDestination:[513,"twofa-destination"],twofaResendIntervalSeconds:[514,"twofa-resend-interval-seconds"],haspostalcodelookup:[516],postalcodelength:[514],addresses:[520]}],[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}],[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32],showCheckboxes:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[10,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],noValidation:[516,"no-validation"],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],hidePasswordComplexity:[516,"hide-password-complexity"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}],[1,"postalcode-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],postalcodelength:[520],addresses:[520],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],selectedCountryCode:[32],currentPostalCode:[32],openAddressDropdown:[32],showNoResultsMessage:[32],refreshTrigger:[32],isFetchingAddresses:[32]},[[10,"click","handleClickOutside"],[8,"countryCodeUpdated","handleCountryCodeUpdate"],[8,"addressFetchStarted","handleFetchStarted"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],disablePhonePrefix:[32],phoneValue:[32],phoneCodesOptions:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],haspostalcodelookup:[516],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],selectedCountryCode:[32]},[[10,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"],[8,"countryCodeUpdated","handleCountryCodeUpdate"],[16,"sendAddressValue","handleAddressSelection"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"twofa-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],destination:[513],resendIntervalSeconds:[514,"resend-interval-seconds"],clientStyling:[513,"client-styling"],limitStylingAppends:[32],isValid:[32],isResendButtonAvailable:[32],showTooltip:[32],errorMessage:[32],code:[32],resendIntervalSecondsLeft:[32]},[[10,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]]],e))));
|
|
@@ -77,10 +77,26 @@ export declare class GeneralInput {
|
|
|
77
77
|
* Emit event on click
|
|
78
78
|
*/
|
|
79
79
|
emitOnClick: boolean;
|
|
80
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Destination
|
|
82
|
+
**/
|
|
81
83
|
twofaDestination: string;
|
|
82
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Resend interval
|
|
86
|
+
**/
|
|
83
87
|
twofaResendIntervalSeconds: number;
|
|
88
|
+
/**
|
|
89
|
+
* Boolean. Enable the addresses dropdown based on postal code
|
|
90
|
+
*/
|
|
91
|
+
haspostalcodelookup: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The minimum length for postal code to trigger the postal lookup
|
|
94
|
+
*/
|
|
95
|
+
postalcodelength: number;
|
|
96
|
+
/**
|
|
97
|
+
* Addresses fetched based on the postal code
|
|
98
|
+
*/
|
|
99
|
+
addresses: any;
|
|
84
100
|
connectedCallback(): void;
|
|
85
101
|
handleClick: (event: MouseEvent) => void;
|
|
86
102
|
renderInput(): any;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ValidationSchema, InputStateEvent, InputValueEvent } from '../../utils/types';
|
|
3
|
+
export declare class PostalCodeInput {
|
|
4
|
+
sendAddressValue: EventEmitter<{
|
|
5
|
+
city: string;
|
|
6
|
+
address1: string;
|
|
7
|
+
address2: string;
|
|
8
|
+
}>;
|
|
9
|
+
sendValidityState: EventEmitter<InputStateEvent>;
|
|
10
|
+
sendInputValue: EventEmitter<InputValueEvent>;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the input.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of input to be shown to the user.
|
|
17
|
+
*/
|
|
18
|
+
displayName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Placeholder text to be shown.
|
|
21
|
+
*/
|
|
22
|
+
placeholder: string;
|
|
23
|
+
/**
|
|
24
|
+
* Object of validation rules for the input.
|
|
25
|
+
*/
|
|
26
|
+
validation: ValidationSchema;
|
|
27
|
+
/**
|
|
28
|
+
* Default value for the input.
|
|
29
|
+
*/
|
|
30
|
+
defaultValue: string;
|
|
31
|
+
/**
|
|
32
|
+
* Boolean. Determines if input should be readonly.
|
|
33
|
+
*/
|
|
34
|
+
autofilled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Tooltip text.
|
|
37
|
+
*/
|
|
38
|
+
tooltip: string;
|
|
39
|
+
/**
|
|
40
|
+
* Currently selected language.
|
|
41
|
+
*/
|
|
42
|
+
language: string;
|
|
43
|
+
/**
|
|
44
|
+
* State passed down from the parent element. Will trigger the input to send it's value through an event.
|
|
45
|
+
*/
|
|
46
|
+
emitValue: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Client custom styling via inline style
|
|
49
|
+
*/
|
|
50
|
+
clientStyling: string;
|
|
51
|
+
/**
|
|
52
|
+
* The minimum length for postal code to trigger the postal lookup
|
|
53
|
+
*/
|
|
54
|
+
postalcodelength: any;
|
|
55
|
+
/**
|
|
56
|
+
* Addresses fetched based on the postal code
|
|
57
|
+
*/
|
|
58
|
+
addresses: any;
|
|
59
|
+
isValid: boolean;
|
|
60
|
+
errorMessage: string;
|
|
61
|
+
private limitStylingAppends;
|
|
62
|
+
showTooltip: boolean;
|
|
63
|
+
selectedCountryCode: string;
|
|
64
|
+
currentPostalCode: string;
|
|
65
|
+
openAddressDropdown: boolean;
|
|
66
|
+
showNoResultsMessage: boolean;
|
|
67
|
+
refreshTrigger: number;
|
|
68
|
+
isFetchingAddresses: boolean;
|
|
69
|
+
private stylingContainer;
|
|
70
|
+
private value;
|
|
71
|
+
private validationPattern;
|
|
72
|
+
private inputReference;
|
|
73
|
+
private addressesDropdownRef;
|
|
74
|
+
private tooltipReference;
|
|
75
|
+
private tooltipIconReference;
|
|
76
|
+
private hasManualAddressBeenTriggered;
|
|
77
|
+
touched: boolean;
|
|
78
|
+
debounceTime: ReturnType<typeof setTimeout>;
|
|
79
|
+
maxPostalCodeLength: string;
|
|
80
|
+
handleStylingChange(newValue: string, oldValue: string): void;
|
|
81
|
+
validityChanged(): void;
|
|
82
|
+
emitValueHandler(newValue: boolean): void;
|
|
83
|
+
handleAddresses(newValue: {
|
|
84
|
+
street: string;
|
|
85
|
+
number: string;
|
|
86
|
+
city: string;
|
|
87
|
+
}[]): void;
|
|
88
|
+
validityStateHandler(inputStateEvent: InputStateEvent): void;
|
|
89
|
+
valueHandler(inputValueEvent: InputValueEvent): void;
|
|
90
|
+
handleClickOutside(event: MouseEvent): void;
|
|
91
|
+
handleCountryCodeUpdate(event: CustomEvent): void;
|
|
92
|
+
handleFetchStarted(): void;
|
|
93
|
+
connectedCallback(): void;
|
|
94
|
+
componentDidRender(): void;
|
|
95
|
+
componentDidLoad(): void;
|
|
96
|
+
disconnectedCallback(): void;
|
|
97
|
+
handleInput: (event: Event) => void;
|
|
98
|
+
handleBlur: (event: Event) => void;
|
|
99
|
+
handleFocus: () => void;
|
|
100
|
+
handlePostalCode: (e: any, data: any) => void;
|
|
101
|
+
enterAddressManually: () => void;
|
|
102
|
+
setValidity(): boolean;
|
|
103
|
+
setPattern(): string;
|
|
104
|
+
setErrorMessage(): string;
|
|
105
|
+
resetPostalCodeField(): void;
|
|
106
|
+
setClientStyling: () => void;
|
|
107
|
+
renderTooltip(): any;
|
|
108
|
+
determineInputValue(): string;
|
|
109
|
+
handleOutsideClick: (event: MouseEvent) => void;
|
|
110
|
+
render(): any;
|
|
111
|
+
}
|
|
@@ -49,10 +49,15 @@ export declare class TextInput {
|
|
|
49
49
|
* Client custom styling via inline style
|
|
50
50
|
*/
|
|
51
51
|
clientStyling: string;
|
|
52
|
+
/**
|
|
53
|
+
* Boolean. Enable the addresses dropdown based on postal code
|
|
54
|
+
*/
|
|
55
|
+
haspostalcodelookup: boolean;
|
|
52
56
|
isValid: boolean;
|
|
53
57
|
errorMessage: string;
|
|
54
58
|
private limitStylingAppends;
|
|
55
59
|
showTooltip: boolean;
|
|
60
|
+
selectedCountryCode: string;
|
|
56
61
|
private stylingContainer;
|
|
57
62
|
private value;
|
|
58
63
|
private validationPattern;
|
|
@@ -60,6 +65,7 @@ export declare class TextInput {
|
|
|
60
65
|
private duplicateInputValue;
|
|
61
66
|
private tooltipReference;
|
|
62
67
|
private tooltipIconReference;
|
|
68
|
+
postalcodelength: number;
|
|
63
69
|
touched: boolean;
|
|
64
70
|
debounceTime: ReturnType<typeof setTimeout>;
|
|
65
71
|
handleStylingChange(newValue: string, oldValue: string): void;
|
|
@@ -72,6 +78,12 @@ export declare class TextInput {
|
|
|
72
78
|
handleClickOutside(event: MouseEvent): void;
|
|
73
79
|
valueChangedHandler(event: CustomEvent<InputValueEvent>): void;
|
|
74
80
|
handleValidationChange(event: any): void;
|
|
81
|
+
handleCountryCodeUpdate(event: CustomEvent): void;
|
|
82
|
+
handleAddressSelection(event: CustomEvent<{
|
|
83
|
+
city: string;
|
|
84
|
+
address1: string;
|
|
85
|
+
address2: string;
|
|
86
|
+
}>): void;
|
|
75
87
|
connectedCallback(): void;
|
|
76
88
|
componentDidRender(): void;
|
|
77
89
|
componentDidLoad(): void;
|
|
@@ -189,6 +189,10 @@ export namespace Components {
|
|
|
189
189
|
* Special behaviour an input should have. Can be fetching for data.
|
|
190
190
|
*/
|
|
191
191
|
"action": string;
|
|
192
|
+
/**
|
|
193
|
+
* Addresses fetched based on the postal code
|
|
194
|
+
*/
|
|
195
|
+
"addresses": any;
|
|
192
196
|
/**
|
|
193
197
|
* Boolean. Determines if input should be readonly.
|
|
194
198
|
*/
|
|
@@ -217,6 +221,10 @@ export namespace Components {
|
|
|
217
221
|
* State passed down from the parent element. Will trigger the child specialised input to send it's value through an event.
|
|
218
222
|
*/
|
|
219
223
|
"emitValue": boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Boolean. Enable the addresses dropdown based on postal code
|
|
226
|
+
*/
|
|
227
|
+
"haspostalcodelookup": boolean;
|
|
220
228
|
/**
|
|
221
229
|
* Boolean that triggers certain validation rules, for duplicated inputs.
|
|
222
230
|
*/
|
|
@@ -245,6 +253,10 @@ export namespace Components {
|
|
|
245
253
|
* Placeholder text to be shown.
|
|
246
254
|
*/
|
|
247
255
|
"placeholder": string;
|
|
256
|
+
/**
|
|
257
|
+
* The minimum length for postal code to trigger the postal lookup
|
|
258
|
+
*/
|
|
259
|
+
"postalcodelength": number;
|
|
248
260
|
/**
|
|
249
261
|
* Tooltip text.
|
|
250
262
|
*/
|
|
@@ -254,11 +266,11 @@ export namespace Components {
|
|
|
254
266
|
*/
|
|
255
267
|
"translationUrl": string;
|
|
256
268
|
/**
|
|
257
|
-
*
|
|
269
|
+
* Destination
|
|
258
270
|
*/
|
|
259
271
|
"twofaDestination": string;
|
|
260
272
|
/**
|
|
261
|
-
*
|
|
273
|
+
* Resend interval
|
|
262
274
|
*/
|
|
263
275
|
"twofaResendIntervalSeconds": number;
|
|
264
276
|
/**
|
|
@@ -366,6 +378,56 @@ export namespace Components {
|
|
|
366
378
|
*/
|
|
367
379
|
"validation": ValidationSchema;
|
|
368
380
|
}
|
|
381
|
+
interface PostalcodeInput {
|
|
382
|
+
/**
|
|
383
|
+
* Addresses fetched based on the postal code
|
|
384
|
+
*/
|
|
385
|
+
"addresses": any;
|
|
386
|
+
/**
|
|
387
|
+
* Boolean. Determines if input should be readonly.
|
|
388
|
+
*/
|
|
389
|
+
"autofilled": boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Client custom styling via inline style
|
|
392
|
+
*/
|
|
393
|
+
"clientStyling": string;
|
|
394
|
+
/**
|
|
395
|
+
* Default value for the input.
|
|
396
|
+
*/
|
|
397
|
+
"defaultValue": string;
|
|
398
|
+
/**
|
|
399
|
+
* Name of input to be shown to the user.
|
|
400
|
+
*/
|
|
401
|
+
"displayName": string;
|
|
402
|
+
/**
|
|
403
|
+
* State passed down from the parent element. Will trigger the input to send it's value through an event.
|
|
404
|
+
*/
|
|
405
|
+
"emitValue": boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Currently selected language.
|
|
408
|
+
*/
|
|
409
|
+
"language": string;
|
|
410
|
+
/**
|
|
411
|
+
* Name of the input.
|
|
412
|
+
*/
|
|
413
|
+
"name": string;
|
|
414
|
+
/**
|
|
415
|
+
* Placeholder text to be shown.
|
|
416
|
+
*/
|
|
417
|
+
"placeholder": string;
|
|
418
|
+
/**
|
|
419
|
+
* The minimum length for postal code to trigger the postal lookup
|
|
420
|
+
*/
|
|
421
|
+
"postalcodelength": any;
|
|
422
|
+
/**
|
|
423
|
+
* Tooltip text.
|
|
424
|
+
*/
|
|
425
|
+
"tooltip": string;
|
|
426
|
+
/**
|
|
427
|
+
* Object of validation rules for the input.
|
|
428
|
+
*/
|
|
429
|
+
"validation": ValidationSchema;
|
|
430
|
+
}
|
|
369
431
|
interface RadioInput {
|
|
370
432
|
/**
|
|
371
433
|
* Client custom styling via inline style
|
|
@@ -525,6 +587,10 @@ export namespace Components {
|
|
|
525
587
|
* State passed down from the parent element. Will trigger the input to send it's value through an event.
|
|
526
588
|
*/
|
|
527
589
|
"emitValue": boolean;
|
|
590
|
+
/**
|
|
591
|
+
* Boolean. Enable the addresses dropdown based on postal code
|
|
592
|
+
*/
|
|
593
|
+
"haspostalcodelookup": boolean;
|
|
528
594
|
/**
|
|
529
595
|
* Boolean that triggers certain validation rules, for duplicated inputs.
|
|
530
596
|
*/
|
|
@@ -659,6 +725,10 @@ export interface PasswordInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
659
725
|
detail: T;
|
|
660
726
|
target: HTMLPasswordInputElement;
|
|
661
727
|
}
|
|
728
|
+
export interface PostalcodeInputCustomEvent<T> extends CustomEvent<T> {
|
|
729
|
+
detail: T;
|
|
730
|
+
target: HTMLPostalcodeInputElement;
|
|
731
|
+
}
|
|
662
732
|
export interface RadioInputCustomEvent<T> extends CustomEvent<T> {
|
|
663
733
|
detail: T;
|
|
664
734
|
target: HTMLRadioInputElement;
|
|
@@ -799,6 +869,25 @@ declare global {
|
|
|
799
869
|
prototype: HTMLPasswordInputElement;
|
|
800
870
|
new (): HTMLPasswordInputElement;
|
|
801
871
|
};
|
|
872
|
+
interface HTMLPostalcodeInputElementEventMap {
|
|
873
|
+
"sendAddressValue": { city: string; address1: string; address2: string };
|
|
874
|
+
"sendValidityState": InputStateEvent;
|
|
875
|
+
"sendInputValue": InputValueEvent;
|
|
876
|
+
}
|
|
877
|
+
interface HTMLPostalcodeInputElement extends Components.PostalcodeInput, HTMLStencilElement {
|
|
878
|
+
addEventListener<K extends keyof HTMLPostalcodeInputElementEventMap>(type: K, listener: (this: HTMLPostalcodeInputElement, ev: PostalcodeInputCustomEvent<HTMLPostalcodeInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
879
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
880
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
881
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
882
|
+
removeEventListener<K extends keyof HTMLPostalcodeInputElementEventMap>(type: K, listener: (this: HTMLPostalcodeInputElement, ev: PostalcodeInputCustomEvent<HTMLPostalcodeInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
883
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
884
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
885
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
886
|
+
}
|
|
887
|
+
var HTMLPostalcodeInputElement: {
|
|
888
|
+
prototype: HTMLPostalcodeInputElement;
|
|
889
|
+
new (): HTMLPostalcodeInputElement;
|
|
890
|
+
};
|
|
802
891
|
interface HTMLRadioInputElementEventMap {
|
|
803
892
|
"sendInputValue": InputValueEvent;
|
|
804
893
|
"sendValidityState": InputStateEvent;
|
|
@@ -916,6 +1005,7 @@ declare global {
|
|
|
916
1005
|
"general-input": HTMLGeneralInputElement;
|
|
917
1006
|
"number-input": HTMLNumberInputElement;
|
|
918
1007
|
"password-input": HTMLPasswordInputElement;
|
|
1008
|
+
"postalcode-input": HTMLPostalcodeInputElement;
|
|
919
1009
|
"radio-input": HTMLRadioInputElement;
|
|
920
1010
|
"select-input": HTMLSelectInputElement;
|
|
921
1011
|
"tel-input": HTMLTelInputElement;
|
|
@@ -1114,6 +1204,10 @@ declare namespace LocalJSX {
|
|
|
1114
1204
|
* Special behaviour an input should have. Can be fetching for data.
|
|
1115
1205
|
*/
|
|
1116
1206
|
"action"?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Addresses fetched based on the postal code
|
|
1209
|
+
*/
|
|
1210
|
+
"addresses"?: any;
|
|
1117
1211
|
/**
|
|
1118
1212
|
* Boolean. Determines if input should be readonly.
|
|
1119
1213
|
*/
|
|
@@ -1142,6 +1236,10 @@ declare namespace LocalJSX {
|
|
|
1142
1236
|
* State passed down from the parent element. Will trigger the child specialised input to send it's value through an event.
|
|
1143
1237
|
*/
|
|
1144
1238
|
"emitValue"?: boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* Boolean. Enable the addresses dropdown based on postal code
|
|
1241
|
+
*/
|
|
1242
|
+
"haspostalcodelookup"?: boolean;
|
|
1145
1243
|
/**
|
|
1146
1244
|
* Boolean that triggers certain validation rules, for duplicated inputs.
|
|
1147
1245
|
*/
|
|
@@ -1170,6 +1268,10 @@ declare namespace LocalJSX {
|
|
|
1170
1268
|
* Placeholder text to be shown.
|
|
1171
1269
|
*/
|
|
1172
1270
|
"placeholder"?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* The minimum length for postal code to trigger the postal lookup
|
|
1273
|
+
*/
|
|
1274
|
+
"postalcodelength"?: number;
|
|
1173
1275
|
/**
|
|
1174
1276
|
* Tooltip text.
|
|
1175
1277
|
*/
|
|
@@ -1179,11 +1281,11 @@ declare namespace LocalJSX {
|
|
|
1179
1281
|
*/
|
|
1180
1282
|
"translationUrl"?: string;
|
|
1181
1283
|
/**
|
|
1182
|
-
*
|
|
1284
|
+
* Destination
|
|
1183
1285
|
*/
|
|
1184
1286
|
"twofaDestination"?: string;
|
|
1185
1287
|
/**
|
|
1186
|
-
*
|
|
1288
|
+
* Resend interval
|
|
1187
1289
|
*/
|
|
1188
1290
|
"twofaResendIntervalSeconds"?: number;
|
|
1189
1291
|
/**
|
|
@@ -1296,6 +1398,59 @@ declare namespace LocalJSX {
|
|
|
1296
1398
|
*/
|
|
1297
1399
|
"validation"?: ValidationSchema;
|
|
1298
1400
|
}
|
|
1401
|
+
interface PostalcodeInput {
|
|
1402
|
+
/**
|
|
1403
|
+
* Addresses fetched based on the postal code
|
|
1404
|
+
*/
|
|
1405
|
+
"addresses"?: any;
|
|
1406
|
+
/**
|
|
1407
|
+
* Boolean. Determines if input should be readonly.
|
|
1408
|
+
*/
|
|
1409
|
+
"autofilled"?: boolean;
|
|
1410
|
+
/**
|
|
1411
|
+
* Client custom styling via inline style
|
|
1412
|
+
*/
|
|
1413
|
+
"clientStyling"?: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* Default value for the input.
|
|
1416
|
+
*/
|
|
1417
|
+
"defaultValue"?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* Name of input to be shown to the user.
|
|
1420
|
+
*/
|
|
1421
|
+
"displayName"?: string;
|
|
1422
|
+
/**
|
|
1423
|
+
* State passed down from the parent element. Will trigger the input to send it's value through an event.
|
|
1424
|
+
*/
|
|
1425
|
+
"emitValue"?: boolean;
|
|
1426
|
+
/**
|
|
1427
|
+
* Currently selected language.
|
|
1428
|
+
*/
|
|
1429
|
+
"language"?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* Name of the input.
|
|
1432
|
+
*/
|
|
1433
|
+
"name"?: string;
|
|
1434
|
+
"onSendAddressValue"?: (event: PostalcodeInputCustomEvent<{ city: string; address1: string; address2: string }>) => void;
|
|
1435
|
+
"onSendInputValue"?: (event: PostalcodeInputCustomEvent<InputValueEvent>) => void;
|
|
1436
|
+
"onSendValidityState"?: (event: PostalcodeInputCustomEvent<InputStateEvent>) => void;
|
|
1437
|
+
/**
|
|
1438
|
+
* Placeholder text to be shown.
|
|
1439
|
+
*/
|
|
1440
|
+
"placeholder"?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* The minimum length for postal code to trigger the postal lookup
|
|
1443
|
+
*/
|
|
1444
|
+
"postalcodelength"?: any;
|
|
1445
|
+
/**
|
|
1446
|
+
* Tooltip text.
|
|
1447
|
+
*/
|
|
1448
|
+
"tooltip"?: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* Object of validation rules for the input.
|
|
1451
|
+
*/
|
|
1452
|
+
"validation"?: ValidationSchema;
|
|
1453
|
+
}
|
|
1299
1454
|
interface RadioInput {
|
|
1300
1455
|
/**
|
|
1301
1456
|
* Client custom styling via inline style
|
|
@@ -1461,6 +1616,10 @@ declare namespace LocalJSX {
|
|
|
1461
1616
|
* State passed down from the parent element. Will trigger the input to send it's value through an event.
|
|
1462
1617
|
*/
|
|
1463
1618
|
"emitValue"?: boolean;
|
|
1619
|
+
/**
|
|
1620
|
+
* Boolean. Enable the addresses dropdown based on postal code
|
|
1621
|
+
*/
|
|
1622
|
+
"haspostalcodelookup"?: boolean;
|
|
1464
1623
|
/**
|
|
1465
1624
|
* Boolean that triggers certain validation rules, for duplicated inputs.
|
|
1466
1625
|
*/
|
|
@@ -1585,6 +1744,7 @@ declare namespace LocalJSX {
|
|
|
1585
1744
|
"general-input": GeneralInput;
|
|
1586
1745
|
"number-input": NumberInput;
|
|
1587
1746
|
"password-input": PasswordInput;
|
|
1747
|
+
"postalcode-input": PostalcodeInput;
|
|
1588
1748
|
"radio-input": RadioInput;
|
|
1589
1749
|
"select-input": SelectInput;
|
|
1590
1750
|
"tel-input": TelInput;
|
|
@@ -1604,6 +1764,7 @@ declare module "@stencil/core" {
|
|
|
1604
1764
|
"general-input": LocalJSX.GeneralInput & JSXBase.HTMLAttributes<HTMLGeneralInputElement>;
|
|
1605
1765
|
"number-input": LocalJSX.NumberInput & JSXBase.HTMLAttributes<HTMLNumberInputElement>;
|
|
1606
1766
|
"password-input": LocalJSX.PasswordInput & JSXBase.HTMLAttributes<HTMLPasswordInputElement>;
|
|
1767
|
+
"postalcode-input": LocalJSX.PostalcodeInput & JSXBase.HTMLAttributes<HTMLPostalcodeInputElement>;
|
|
1607
1768
|
"radio-input": LocalJSX.RadioInput & JSXBase.HTMLAttributes<HTMLRadioInputElement>;
|
|
1608
1769
|
"select-input": LocalJSX.SelectInput & JSXBase.HTMLAttributes<HTMLSelectInputElement>;
|
|
1609
1770
|
"tel-input": LocalJSX.TelInput & JSXBase.HTMLAttributes<HTMLTelInputElement>;
|