@saasquatch/mint-components 1.14.6-9 → 1.14.7-0
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/{ShadowViewAddon-d1dda2b0.js → ShadowViewAddon-3c344355.js} +116 -49
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_42.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +117 -24
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +155 -0
- package/dist/cjs/{sqm-lead-input-field-view-6344cd93.js → sqm-lead-input-field-view-89308aab.js} +7 -7
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +6 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +17 -10
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +103 -0
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +5 -2
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +3 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +1 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +62 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +238 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +10 -10
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +57 -5
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +55 -51
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +65 -35
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +7 -7
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +28 -5
- package/dist/collection/components/sqm-lead-form/useCheckboxField.js +23 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +15 -10
- package/dist/esm/{ShadowViewAddon-81771102.js → ShadowViewAddon-64194d20.js} +117 -51
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_42.entry.js → sqm-big-stat_43.entry.js} +118 -26
- package/dist/esm/sqm-lead-checkbox-field.entry.js +151 -0
- package/dist/esm/{sqm-lead-input-field-view-f1dd4b77.js → sqm-lead-input-field-view-4ede5d7f.js} +7 -7
- package/dist/esm/sqm-lead-input-field.entry.js +6 -2
- package/dist/esm/sqm-stencilbook.entry.js +12 -5
- package/dist/esm-es5/ShadowViewAddon-64194d20.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-01dd541f.system.js +1 -0
- package/dist/mint-components/p-0d94d81a.system.js +1 -0
- package/dist/mint-components/p-10a8ecae.system.entry.js +1 -0
- package/dist/mint-components/p-12bba567.entry.js +1 -0
- package/dist/mint-components/p-214c7807.entry.js +1 -0
- package/dist/mint-components/{p-460974bf.js → p-30a11ec0.js} +24 -24
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-589962db.system.entry.js +1 -0
- package/dist/mint-components/p-6ba44ca9.js +1 -0
- package/dist/mint-components/{p-b2ff8561.entry.js → p-851eaf57.entry.js} +21 -21
- package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
- package/dist/mint-components/p-eaf1a8a6.system.entry.js +1 -0
- package/dist/mint-components/{p-ba585a4b.entry.js → p-f60d1ae9.entry.js} +2 -2
- package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +55 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +19 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +3 -1
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +11 -4
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +2 -1
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +19 -10
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +1 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +4 -2
- package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +11 -0
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/useReferralIframe.d.ts +1 -1
- package/dist/types/components.d.ts +143 -19
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-lead-dropdown-field-view-03a3e03f.js +0 -69
- package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +0 -81
- package/dist/esm/sqm-lead-dropdown-field-view-4c85fe20.js +0 -67
- package/dist/esm/sqm-lead-dropdown-field.entry.js +0 -77
- package/dist/esm-es5/ShadowViewAddon-81771102.js +0 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +0 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +0 -1
- package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +0 -1
- package/dist/esm-es5/sqm-lead-input-field-view-f1dd4b77.js +0 -1
- package/dist/mint-components/p-15f1ff1d.system.js +0 -1
- package/dist/mint-components/p-26da31c6.js +0 -1
- package/dist/mint-components/p-4056c0ea.system.entry.js +0 -1
- package/dist/mint-components/p-4d5b02af.js +0 -1
- package/dist/mint-components/p-59970cb1.system.entry.js +0 -1
- package/dist/mint-components/p-6b093d8c.entry.js +0 -1
- package/dist/mint-components/p-7094012d.system.entry.js +0 -1
- package/dist/mint-components/p-87384d9e.system.js +0 -1
- package/dist/mint-components/p-ad128614.system.js +0 -1
- package/dist/mint-components/p-c5a55554.entry.js +0 -1
- package/dist/mint-components/p-de5356d9.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
parameters: {
|
|
4
|
+
scenario: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: {
|
|
9
|
+
(): any;
|
|
10
|
+
parameters: {
|
|
11
|
+
hookStory: Function;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const DefaultChecked: {
|
|
15
|
+
(): any;
|
|
16
|
+
parameters: {
|
|
17
|
+
hookStory: Function;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const CustomLabel: {
|
|
21
|
+
(): any;
|
|
22
|
+
parameters: {
|
|
23
|
+
hookStory: Function;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const Error: {
|
|
27
|
+
(): any;
|
|
28
|
+
parameters: {
|
|
29
|
+
hookStory: Function;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const CustomError: {
|
|
33
|
+
(): any;
|
|
34
|
+
parameters: {
|
|
35
|
+
hookStory: Function;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const TermsAndConditions: {
|
|
39
|
+
(): any;
|
|
40
|
+
parameters: {
|
|
41
|
+
hookStory: Function;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const TermsAndConditionsCustomLabel: {
|
|
45
|
+
(): any;
|
|
46
|
+
parameters: {
|
|
47
|
+
hookStory: Function;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const TermsAndConditionsLongCustomLabel: {
|
|
51
|
+
(): any;
|
|
52
|
+
parameters: {
|
|
53
|
+
hookStory: Function;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -3,6 +3,7 @@ declare const _default: {
|
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: () => any;
|
|
6
|
+
export declare const Multiple: () => any;
|
|
6
7
|
export declare const WithError: () => any;
|
|
7
8
|
export declare const Disabled: () => any;
|
|
8
9
|
export declare const Loading: () => any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LeadFormState } from "./useLeadFormState";
|
|
2
|
+
export interface LeadCheckboxFieldViewProps {
|
|
3
|
+
states: {
|
|
4
|
+
leadFormState?: LeadFormState;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
};
|
|
7
|
+
content: {
|
|
8
|
+
checkboxName: string;
|
|
9
|
+
checkboxLabel: string;
|
|
10
|
+
checkboxLabelLink?: string;
|
|
11
|
+
checkboxLabelLinkText?: string;
|
|
12
|
+
checkboxOptional?: boolean;
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
};
|
|
15
|
+
callbacks: {
|
|
16
|
+
setChecked: Function;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function LeadCheckboxFieldView(props: LeadCheckboxFieldViewProps): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DemoData } from "../../global/demo";
|
|
2
|
+
import { LeadCheckboxFieldViewProps } from "./sqm-lead-checkbox-field-view";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Lead Form Checkbox Field
|
|
5
|
+
* @validParents ["sqm-lead-form"]
|
|
6
|
+
*/
|
|
7
|
+
export declare class LeadCheckboxField {
|
|
8
|
+
ignored: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
11
|
+
* @uiName Checkbox name attribute
|
|
12
|
+
* @required
|
|
13
|
+
*/
|
|
14
|
+
checkboxName: string;
|
|
15
|
+
/**
|
|
16
|
+
* @uiName Checkbox label
|
|
17
|
+
* @uiWidget textArea
|
|
18
|
+
*/
|
|
19
|
+
checkboxLabel: string;
|
|
20
|
+
/**
|
|
21
|
+
* Used with link text if the checkbox label contains {labelLink}
|
|
22
|
+
*
|
|
23
|
+
* @uiName Checkbox label link
|
|
24
|
+
*/
|
|
25
|
+
checkboxLabelLink?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @uiName Checkbox label link lext
|
|
28
|
+
*/
|
|
29
|
+
checkboxLabelLinkText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @uiName Unchecked error message
|
|
32
|
+
*/
|
|
33
|
+
errorMessage?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @uiName Optional
|
|
36
|
+
*/
|
|
37
|
+
checkboxOptional?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @undocumented
|
|
40
|
+
* @uiType object
|
|
41
|
+
*/
|
|
42
|
+
demoData?: DemoData<LeadCheckboxFieldViewProps>;
|
|
43
|
+
constructor();
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
render(): any;
|
|
46
|
+
}
|
|
@@ -7,7 +7,9 @@ export interface DropdownFieldViewProps {
|
|
|
7
7
|
content: {
|
|
8
8
|
dropdownName: string;
|
|
9
9
|
dropdownLabel: string;
|
|
10
|
-
dropdownOptional
|
|
10
|
+
dropdownOptional: boolean;
|
|
11
|
+
optionalLabel: string;
|
|
12
|
+
multiple: boolean;
|
|
11
13
|
requiredFieldErrorMessage?: string;
|
|
12
14
|
selectOptions?: VNode | VNode[];
|
|
13
15
|
};
|
|
@@ -3,9 +3,7 @@ import { DropdownFieldViewProps } from "./sqm-lead-dropdown-field-view";
|
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Lead Form Dropdown Field
|
|
5
5
|
* @validParents ["sqm-lead-form"]
|
|
6
|
-
* @slots [{"name":"", "title":"
|
|
7
|
-
* @exampleGroup Microsite Components
|
|
8
|
-
* @example Lead Form Dropdown Field - <sqm-lead-dropdown-field dropdown-label="Select an option" required-field-error-message="Please select an option"><sl-menu-item value="option-1">Option 1</sl-menu-item><sl-menu-item value="option-2">Option 2</sl-menu-item><sl-menu-item value="option-3">Option 3</sl-menu-item></sqm-lead-dropdown-field>
|
|
6
|
+
* @slots [{"name":"", "title":"Dropdown Option"}]
|
|
9
7
|
*/
|
|
10
8
|
export declare class LeadDropdownField {
|
|
11
9
|
ignored: boolean;
|
|
@@ -26,11 +24,20 @@ export declare class LeadDropdownField {
|
|
|
26
24
|
* @uiWidget textArea
|
|
27
25
|
*/
|
|
28
26
|
requiredFieldErrorMessage: string;
|
|
27
|
+
/**
|
|
28
|
+
* @uiName Optional label
|
|
29
|
+
*/
|
|
30
|
+
optionalLabel: string;
|
|
29
31
|
/**
|
|
30
32
|
* @uiName Optional
|
|
31
33
|
* @default
|
|
32
34
|
*/
|
|
33
|
-
dropdownOptional
|
|
35
|
+
dropdownOptional: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @uiName Multiple selection
|
|
38
|
+
* @default
|
|
39
|
+
*/
|
|
40
|
+
multiple: boolean;
|
|
34
41
|
/**
|
|
35
42
|
* @undocumented
|
|
36
43
|
* @uiType object
|
|
@@ -11,6 +11,7 @@ export interface LeadFormViewProps {
|
|
|
11
11
|
callbacks: {
|
|
12
12
|
submit: Function;
|
|
13
13
|
inputFunction: Function;
|
|
14
|
+
resetForm: Function;
|
|
14
15
|
};
|
|
15
16
|
content: {
|
|
16
17
|
formData?: VNode;
|
|
@@ -20,7 +21,7 @@ export interface LeadFormViewProps {
|
|
|
20
21
|
submitLabel?: string;
|
|
21
22
|
resubmitFormLabel?: string;
|
|
22
23
|
pageLabel?: string;
|
|
23
|
-
|
|
24
|
+
supportLinkText?: string;
|
|
24
25
|
submitSuccessHeader?: string;
|
|
25
26
|
submitSuccessDescription?: string;
|
|
26
27
|
submitErrorHeader?: string;
|
|
@@ -2,7 +2,7 @@ import { DemoData } from "../../global/demo";
|
|
|
2
2
|
import { LeadFormViewProps } from "./sqm-lead-form-view";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Lead Form
|
|
5
|
-
* @slots [{"name":"formData","title":"Additional Fields"}
|
|
5
|
+
* @slots [{"name":"formData","title":"Additional Fields"}]
|
|
6
6
|
*/
|
|
7
7
|
export declare class LeadForm {
|
|
8
8
|
ignored: boolean;
|
|
@@ -30,43 +30,52 @@ export declare class LeadForm {
|
|
|
30
30
|
* @uiName Header text
|
|
31
31
|
*/
|
|
32
32
|
pageLabel: string;
|
|
33
|
+
/**
|
|
34
|
+
* Key of the form to connect to. Create and manage forms in the /advocate dashboard under Data > Forms.
|
|
35
|
+
* @uiName Form key
|
|
36
|
+
*/
|
|
33
37
|
formKey: string;
|
|
34
38
|
/**
|
|
35
|
-
* Optional support link for error messages.
|
|
39
|
+
* Optional support link text for error messages.
|
|
40
|
+
* @uiName Support link text
|
|
36
41
|
*/
|
|
37
|
-
|
|
42
|
+
supportLinkText: string;
|
|
38
43
|
/**
|
|
39
|
-
* Header text shown on successful submission.
|
|
44
|
+
* Header text shown on successful lead submission.
|
|
45
|
+
* @uiName Submit success header
|
|
40
46
|
*/
|
|
41
47
|
submitSuccessHeader: string;
|
|
42
48
|
/**
|
|
43
|
-
* Description text shown on successful submission.
|
|
49
|
+
* Description text shown on successful lead submission.
|
|
50
|
+
* @uiName Submit success description
|
|
44
51
|
*/
|
|
45
52
|
submitSuccessDescription: string;
|
|
46
53
|
/**
|
|
47
|
-
*
|
|
54
|
+
* Header text shown if an error occurs.
|
|
55
|
+
* @uiName Submit error header
|
|
48
56
|
*/
|
|
49
57
|
submitErrorHeader: string;
|
|
50
58
|
/**
|
|
51
|
-
* Description text shown
|
|
59
|
+
* Description text shown if an error occurs.
|
|
60
|
+
* @uiName Submit error description
|
|
52
61
|
*/
|
|
53
62
|
submitErrorDescription: string;
|
|
54
63
|
/**
|
|
55
|
-
* The message to be displayed
|
|
64
|
+
* The message to be displayed if a required field is not filled.
|
|
56
65
|
*
|
|
57
66
|
* @uiName Required field message
|
|
58
67
|
* @uiWidget textArea
|
|
59
68
|
*/
|
|
60
69
|
requiredFieldErrorMessage: string;
|
|
61
70
|
/**
|
|
62
|
-
* The message to be displayed
|
|
71
|
+
* The message to be displayed if a the form submission fails unexpectedly.
|
|
63
72
|
*
|
|
64
73
|
* @uiName Network error message
|
|
65
74
|
* @uiWidget textArea
|
|
66
75
|
*/
|
|
67
76
|
networkErrorMessage: string;
|
|
68
77
|
/**
|
|
69
|
-
* The message to be displayed
|
|
78
|
+
* The message to be displayed if the email used is invalid.
|
|
70
79
|
*
|
|
71
80
|
* @uiName Invalid email message
|
|
72
81
|
* @uiWidget textArea
|
|
@@ -3,8 +3,6 @@ import { LeadInputFieldViewProps } from "./sqm-lead-input-field-view";
|
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Lead Form Input Field
|
|
5
5
|
* @validParents ["sqm-lead-form"]
|
|
6
|
-
* @exampleGroup Microsite Components
|
|
7
|
-
* @example Lead Form Input Field - <sqm-input-field input-label="Field Label" field-type="text" error-message="Cannot be empty"></sqm-input-field>
|
|
8
6
|
*/
|
|
9
7
|
export declare class LeadInputField {
|
|
10
8
|
ignored: boolean;
|
|
@@ -19,6 +17,10 @@ export declare class LeadInputField {
|
|
|
19
17
|
* @uiName Input label
|
|
20
18
|
*/
|
|
21
19
|
fieldLabel: string;
|
|
20
|
+
/**
|
|
21
|
+
* @uiName Optional label
|
|
22
|
+
*/
|
|
23
|
+
optionalLabel: string;
|
|
22
24
|
/**
|
|
23
25
|
* @uiName Input type
|
|
24
26
|
* @uiType string
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LeadFormState } from "./useLeadFormState";
|
|
2
|
+
import { LeadCheckboxField } from "./sqm-lead-checkbox-field";
|
|
3
|
+
export declare function useLeadCheckboxField(props: LeadCheckboxField): {
|
|
4
|
+
states: {
|
|
5
|
+
leadFormState: LeadFormState;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
};
|
|
8
|
+
callbacks: {
|
|
9
|
+
setChecked: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SqmReferralIframe } from "./sqm-referral-iframe";
|
|
2
2
|
import { ReferralIframeViewProps } from "./sqm-referral-iframe-view";
|
|
3
|
-
export declare function useReferralIframe(props
|
|
3
|
+
export declare function useReferralIframe(props: SqmReferralIframe): ReferralIframeViewProps;
|
|
@@ -22,6 +22,7 @@ import { UseIndirectTaxFormResult } from "./components/tax-and-cash/sqm-indirect
|
|
|
22
22
|
import { InputFieldViewProps } from "./components/sqm-input-field/sqm-input-field-view";
|
|
23
23
|
import { EmailRegistrationViewProps } from "./components/views/email-registration-view";
|
|
24
24
|
import { GenericTableViewProps } from "./tables/GenericTableView";
|
|
25
|
+
import { LeadCheckboxFieldViewProps } from "./components/sqm-lead-form/sqm-lead-checkbox-field-view";
|
|
25
26
|
import { DropdownFieldViewProps as DropdownFieldViewProps1 } from "./components/sqm-lead-form/sqm-lead-dropdown-field-view";
|
|
26
27
|
import { LeadFormViewProps } from "./components/sqm-lead-form/sqm-lead-form-view";
|
|
27
28
|
import { LeadInputFieldViewProps } from "./components/sqm-lead-form/sqm-lead-input-field-view";
|
|
@@ -1480,6 +1481,41 @@ export namespace Components {
|
|
|
1480
1481
|
"renderCell": (data: Invoice) => Promise<any>;
|
|
1481
1482
|
"renderLabel": () => Promise<any>;
|
|
1482
1483
|
}
|
|
1484
|
+
interface SqmLeadCheckboxField {
|
|
1485
|
+
/**
|
|
1486
|
+
* @uiName Checkbox label
|
|
1487
|
+
* @uiWidget textArea
|
|
1488
|
+
*/
|
|
1489
|
+
"checkboxLabel": string;
|
|
1490
|
+
/**
|
|
1491
|
+
* Used with link text if the checkbox label contains {labelLink}
|
|
1492
|
+
* @uiName Checkbox label link
|
|
1493
|
+
*/
|
|
1494
|
+
"checkboxLabelLink"?: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* @uiName Checkbox label link lext
|
|
1497
|
+
*/
|
|
1498
|
+
"checkboxLabelLinkText"?: string;
|
|
1499
|
+
/**
|
|
1500
|
+
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
1501
|
+
* @uiName Checkbox name attribute
|
|
1502
|
+
* @required
|
|
1503
|
+
*/
|
|
1504
|
+
"checkboxName": string;
|
|
1505
|
+
/**
|
|
1506
|
+
* @uiName Optional
|
|
1507
|
+
*/
|
|
1508
|
+
"checkboxOptional"?: boolean;
|
|
1509
|
+
/**
|
|
1510
|
+
* @undocumented
|
|
1511
|
+
* @uiType object
|
|
1512
|
+
*/
|
|
1513
|
+
"demoData"?: DemoData<LeadCheckboxFieldViewProps>;
|
|
1514
|
+
/**
|
|
1515
|
+
* @uiName Unchecked error message
|
|
1516
|
+
*/
|
|
1517
|
+
"errorMessage"?: string;
|
|
1518
|
+
}
|
|
1483
1519
|
interface SqmLeadDropdownField {
|
|
1484
1520
|
/**
|
|
1485
1521
|
* @undocumented
|
|
@@ -1500,7 +1536,16 @@ export namespace Components {
|
|
|
1500
1536
|
* @uiName Optional
|
|
1501
1537
|
* @default
|
|
1502
1538
|
*/
|
|
1503
|
-
"dropdownOptional"
|
|
1539
|
+
"dropdownOptional": boolean;
|
|
1540
|
+
/**
|
|
1541
|
+
* @uiName Multiple selection
|
|
1542
|
+
* @default
|
|
1543
|
+
*/
|
|
1544
|
+
"multiple": boolean;
|
|
1545
|
+
/**
|
|
1546
|
+
* @uiName Optional label
|
|
1547
|
+
*/
|
|
1548
|
+
"optionalLabel": string;
|
|
1504
1549
|
/**
|
|
1505
1550
|
* The message to be displayed when a required field is not filled.
|
|
1506
1551
|
* @uiName Required field message
|
|
@@ -1522,9 +1567,13 @@ export namespace Components {
|
|
|
1522
1567
|
* @uiName First Name field label
|
|
1523
1568
|
*/
|
|
1524
1569
|
"firstNameLabel": string;
|
|
1570
|
+
/**
|
|
1571
|
+
* Key of the form to connect to. Create and manage forms in the /advocate dashboard under Data > Forms.
|
|
1572
|
+
* @uiName Form key
|
|
1573
|
+
*/
|
|
1525
1574
|
"formKey": string;
|
|
1526
1575
|
/**
|
|
1527
|
-
* The message to be displayed
|
|
1576
|
+
* The message to be displayed if the email used is invalid.
|
|
1528
1577
|
* @uiName Invalid email message
|
|
1529
1578
|
* @uiWidget textArea
|
|
1530
1579
|
*/
|
|
@@ -1534,7 +1583,7 @@ export namespace Components {
|
|
|
1534
1583
|
*/
|
|
1535
1584
|
"lastNameLabel": string;
|
|
1536
1585
|
/**
|
|
1537
|
-
* The message to be displayed
|
|
1586
|
+
* The message to be displayed if a the form submission fails unexpectedly.
|
|
1538
1587
|
* @uiName Network error message
|
|
1539
1588
|
* @uiWidget textArea
|
|
1540
1589
|
*/
|
|
@@ -1544,7 +1593,7 @@ export namespace Components {
|
|
|
1544
1593
|
*/
|
|
1545
1594
|
"pageLabel": string;
|
|
1546
1595
|
/**
|
|
1547
|
-
* The message to be displayed
|
|
1596
|
+
* The message to be displayed if a required field is not filled.
|
|
1548
1597
|
* @uiName Required field message
|
|
1549
1598
|
* @uiWidget textArea
|
|
1550
1599
|
*/
|
|
@@ -1554,11 +1603,13 @@ export namespace Components {
|
|
|
1554
1603
|
*/
|
|
1555
1604
|
"resubmitFormLabel": string;
|
|
1556
1605
|
/**
|
|
1557
|
-
* Description text shown
|
|
1606
|
+
* Description text shown if an error occurs.
|
|
1607
|
+
* @uiName Submit error description
|
|
1558
1608
|
*/
|
|
1559
1609
|
"submitErrorDescription": string;
|
|
1560
1610
|
/**
|
|
1561
|
-
* Header text shown
|
|
1611
|
+
* Header text shown if an error occurs.
|
|
1612
|
+
* @uiName Submit error header
|
|
1562
1613
|
*/
|
|
1563
1614
|
"submitErrorHeader": string;
|
|
1564
1615
|
/**
|
|
@@ -1566,17 +1617,20 @@ export namespace Components {
|
|
|
1566
1617
|
*/
|
|
1567
1618
|
"submitLabel": string;
|
|
1568
1619
|
/**
|
|
1569
|
-
* Description text shown on successful submission.
|
|
1620
|
+
* Description text shown on successful lead submission.
|
|
1621
|
+
* @uiName Submit success description
|
|
1570
1622
|
*/
|
|
1571
1623
|
"submitSuccessDescription": string;
|
|
1572
1624
|
/**
|
|
1573
|
-
* Header text shown on successful submission.
|
|
1625
|
+
* Header text shown on successful lead submission.
|
|
1626
|
+
* @uiName Submit success header
|
|
1574
1627
|
*/
|
|
1575
1628
|
"submitSuccessHeader": string;
|
|
1576
1629
|
/**
|
|
1577
|
-
* Optional support link for error messages.
|
|
1630
|
+
* Optional support link text for error messages.
|
|
1631
|
+
* @uiName Support link text
|
|
1578
1632
|
*/
|
|
1579
|
-
"
|
|
1633
|
+
"supportLinkText": string;
|
|
1580
1634
|
}
|
|
1581
1635
|
interface SqmLeadInputField {
|
|
1582
1636
|
/**
|
|
@@ -1606,6 +1660,10 @@ export namespace Components {
|
|
|
1606
1660
|
* @uiEnumNames ["Text", "Date", "Phone Number"]
|
|
1607
1661
|
*/
|
|
1608
1662
|
"fieldType": "text" | "date" | "tel";
|
|
1663
|
+
/**
|
|
1664
|
+
* @uiName Optional label
|
|
1665
|
+
*/
|
|
1666
|
+
"optionalLabel": string;
|
|
1609
1667
|
/**
|
|
1610
1668
|
* The message to be displayed when a required field is not filled.
|
|
1611
1669
|
* @uiName Required field message
|
|
@@ -6359,6 +6417,12 @@ declare global {
|
|
|
6359
6417
|
prototype: HTMLSqmInvoiceTableDownloadColumnElement;
|
|
6360
6418
|
new (): HTMLSqmInvoiceTableDownloadColumnElement;
|
|
6361
6419
|
};
|
|
6420
|
+
interface HTMLSqmLeadCheckboxFieldElement extends Components.SqmLeadCheckboxField, HTMLStencilElement {
|
|
6421
|
+
}
|
|
6422
|
+
var HTMLSqmLeadCheckboxFieldElement: {
|
|
6423
|
+
prototype: HTMLSqmLeadCheckboxFieldElement;
|
|
6424
|
+
new (): HTMLSqmLeadCheckboxFieldElement;
|
|
6425
|
+
};
|
|
6362
6426
|
interface HTMLSqmLeadDropdownFieldElement extends Components.SqmLeadDropdownField, HTMLStencilElement {
|
|
6363
6427
|
}
|
|
6364
6428
|
var HTMLSqmLeadDropdownFieldElement: {
|
|
@@ -6941,6 +7005,7 @@ declare global {
|
|
|
6941
7005
|
"sqm-invoice-table-date-column": HTMLSqmInvoiceTableDateColumnElement;
|
|
6942
7006
|
"sqm-invoice-table-download-cell": HTMLSqmInvoiceTableDownloadCellElement;
|
|
6943
7007
|
"sqm-invoice-table-download-column": HTMLSqmInvoiceTableDownloadColumnElement;
|
|
7008
|
+
"sqm-lead-checkbox-field": HTMLSqmLeadCheckboxFieldElement;
|
|
6944
7009
|
"sqm-lead-dropdown-field": HTMLSqmLeadDropdownFieldElement;
|
|
6945
7010
|
"sqm-lead-form": HTMLSqmLeadFormElement;
|
|
6946
7011
|
"sqm-lead-input-field": HTMLSqmLeadInputFieldElement;
|
|
@@ -8450,6 +8515,41 @@ declare namespace LocalJSX {
|
|
|
8450
8515
|
}
|
|
8451
8516
|
interface SqmInvoiceTableDownloadColumn {
|
|
8452
8517
|
}
|
|
8518
|
+
interface SqmLeadCheckboxField {
|
|
8519
|
+
/**
|
|
8520
|
+
* @uiName Checkbox label
|
|
8521
|
+
* @uiWidget textArea
|
|
8522
|
+
*/
|
|
8523
|
+
"checkboxLabel"?: string;
|
|
8524
|
+
/**
|
|
8525
|
+
* Used with link text if the checkbox label contains {labelLink}
|
|
8526
|
+
* @uiName Checkbox label link
|
|
8527
|
+
*/
|
|
8528
|
+
"checkboxLabelLink"?: string;
|
|
8529
|
+
/**
|
|
8530
|
+
* @uiName Checkbox label link lext
|
|
8531
|
+
*/
|
|
8532
|
+
"checkboxLabelLinkText"?: string;
|
|
8533
|
+
/**
|
|
8534
|
+
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
8535
|
+
* @uiName Checkbox name attribute
|
|
8536
|
+
* @required
|
|
8537
|
+
*/
|
|
8538
|
+
"checkboxName"?: string;
|
|
8539
|
+
/**
|
|
8540
|
+
* @uiName Optional
|
|
8541
|
+
*/
|
|
8542
|
+
"checkboxOptional"?: boolean;
|
|
8543
|
+
/**
|
|
8544
|
+
* @undocumented
|
|
8545
|
+
* @uiType object
|
|
8546
|
+
*/
|
|
8547
|
+
"demoData"?: DemoData<LeadCheckboxFieldViewProps>;
|
|
8548
|
+
/**
|
|
8549
|
+
* @uiName Unchecked error message
|
|
8550
|
+
*/
|
|
8551
|
+
"errorMessage"?: string;
|
|
8552
|
+
}
|
|
8453
8553
|
interface SqmLeadDropdownField {
|
|
8454
8554
|
/**
|
|
8455
8555
|
* @undocumented
|
|
@@ -8471,6 +8571,15 @@ declare namespace LocalJSX {
|
|
|
8471
8571
|
* @default
|
|
8472
8572
|
*/
|
|
8473
8573
|
"dropdownOptional"?: boolean;
|
|
8574
|
+
/**
|
|
8575
|
+
* @uiName Multiple selection
|
|
8576
|
+
* @default
|
|
8577
|
+
*/
|
|
8578
|
+
"multiple"?: boolean;
|
|
8579
|
+
/**
|
|
8580
|
+
* @uiName Optional label
|
|
8581
|
+
*/
|
|
8582
|
+
"optionalLabel"?: string;
|
|
8474
8583
|
/**
|
|
8475
8584
|
* The message to be displayed when a required field is not filled.
|
|
8476
8585
|
* @uiName Required field message
|
|
@@ -8492,9 +8601,13 @@ declare namespace LocalJSX {
|
|
|
8492
8601
|
* @uiName First Name field label
|
|
8493
8602
|
*/
|
|
8494
8603
|
"firstNameLabel"?: string;
|
|
8604
|
+
/**
|
|
8605
|
+
* Key of the form to connect to. Create and manage forms in the /advocate dashboard under Data > Forms.
|
|
8606
|
+
* @uiName Form key
|
|
8607
|
+
*/
|
|
8495
8608
|
"formKey"?: string;
|
|
8496
8609
|
/**
|
|
8497
|
-
* The message to be displayed
|
|
8610
|
+
* The message to be displayed if the email used is invalid.
|
|
8498
8611
|
* @uiName Invalid email message
|
|
8499
8612
|
* @uiWidget textArea
|
|
8500
8613
|
*/
|
|
@@ -8504,7 +8617,7 @@ declare namespace LocalJSX {
|
|
|
8504
8617
|
*/
|
|
8505
8618
|
"lastNameLabel"?: string;
|
|
8506
8619
|
/**
|
|
8507
|
-
* The message to be displayed
|
|
8620
|
+
* The message to be displayed if a the form submission fails unexpectedly.
|
|
8508
8621
|
* @uiName Network error message
|
|
8509
8622
|
* @uiWidget textArea
|
|
8510
8623
|
*/
|
|
@@ -8514,7 +8627,7 @@ declare namespace LocalJSX {
|
|
|
8514
8627
|
*/
|
|
8515
8628
|
"pageLabel"?: string;
|
|
8516
8629
|
/**
|
|
8517
|
-
* The message to be displayed
|
|
8630
|
+
* The message to be displayed if a required field is not filled.
|
|
8518
8631
|
* @uiName Required field message
|
|
8519
8632
|
* @uiWidget textArea
|
|
8520
8633
|
*/
|
|
@@ -8524,11 +8637,13 @@ declare namespace LocalJSX {
|
|
|
8524
8637
|
*/
|
|
8525
8638
|
"resubmitFormLabel"?: string;
|
|
8526
8639
|
/**
|
|
8527
|
-
* Description text shown
|
|
8640
|
+
* Description text shown if an error occurs.
|
|
8641
|
+
* @uiName Submit error description
|
|
8528
8642
|
*/
|
|
8529
8643
|
"submitErrorDescription"?: string;
|
|
8530
8644
|
/**
|
|
8531
|
-
* Header text shown
|
|
8645
|
+
* Header text shown if an error occurs.
|
|
8646
|
+
* @uiName Submit error header
|
|
8532
8647
|
*/
|
|
8533
8648
|
"submitErrorHeader"?: string;
|
|
8534
8649
|
/**
|
|
@@ -8536,17 +8651,20 @@ declare namespace LocalJSX {
|
|
|
8536
8651
|
*/
|
|
8537
8652
|
"submitLabel"?: string;
|
|
8538
8653
|
/**
|
|
8539
|
-
* Description text shown on successful submission.
|
|
8654
|
+
* Description text shown on successful lead submission.
|
|
8655
|
+
* @uiName Submit success description
|
|
8540
8656
|
*/
|
|
8541
8657
|
"submitSuccessDescription"?: string;
|
|
8542
8658
|
/**
|
|
8543
|
-
* Header text shown on successful submission.
|
|
8659
|
+
* Header text shown on successful lead submission.
|
|
8660
|
+
* @uiName Submit success header
|
|
8544
8661
|
*/
|
|
8545
8662
|
"submitSuccessHeader"?: string;
|
|
8546
8663
|
/**
|
|
8547
|
-
* Optional support link for error messages.
|
|
8664
|
+
* Optional support link text for error messages.
|
|
8665
|
+
* @uiName Support link text
|
|
8548
8666
|
*/
|
|
8549
|
-
"
|
|
8667
|
+
"supportLinkText"?: string;
|
|
8550
8668
|
}
|
|
8551
8669
|
interface SqmLeadInputField {
|
|
8552
8670
|
/**
|
|
@@ -8576,6 +8694,10 @@ declare namespace LocalJSX {
|
|
|
8576
8694
|
* @uiEnumNames ["Text", "Date", "Phone Number"]
|
|
8577
8695
|
*/
|
|
8578
8696
|
"fieldType"?: "text" | "date" | "tel";
|
|
8697
|
+
/**
|
|
8698
|
+
* @uiName Optional label
|
|
8699
|
+
*/
|
|
8700
|
+
"optionalLabel"?: string;
|
|
8579
8701
|
/**
|
|
8580
8702
|
* The message to be displayed when a required field is not filled.
|
|
8581
8703
|
* @uiName Required field message
|
|
@@ -13128,6 +13250,7 @@ declare namespace LocalJSX {
|
|
|
13128
13250
|
"sqm-invoice-table-date-column": SqmInvoiceTableDateColumn;
|
|
13129
13251
|
"sqm-invoice-table-download-cell": SqmInvoiceTableDownloadCell;
|
|
13130
13252
|
"sqm-invoice-table-download-column": SqmInvoiceTableDownloadColumn;
|
|
13253
|
+
"sqm-lead-checkbox-field": SqmLeadCheckboxField;
|
|
13131
13254
|
"sqm-lead-dropdown-field": SqmLeadDropdownField;
|
|
13132
13255
|
"sqm-lead-form": SqmLeadForm;
|
|
13133
13256
|
"sqm-lead-input-field": SqmLeadInputField;
|
|
@@ -13260,6 +13383,7 @@ declare module "@stencil/core" {
|
|
|
13260
13383
|
"sqm-invoice-table-date-column": LocalJSX.SqmInvoiceTableDateColumn & JSXBase.HTMLAttributes<HTMLSqmInvoiceTableDateColumnElement>;
|
|
13261
13384
|
"sqm-invoice-table-download-cell": LocalJSX.SqmInvoiceTableDownloadCell & JSXBase.HTMLAttributes<HTMLSqmInvoiceTableDownloadCellElement>;
|
|
13262
13385
|
"sqm-invoice-table-download-column": LocalJSX.SqmInvoiceTableDownloadColumn & JSXBase.HTMLAttributes<HTMLSqmInvoiceTableDownloadColumnElement>;
|
|
13386
|
+
"sqm-lead-checkbox-field": LocalJSX.SqmLeadCheckboxField & JSXBase.HTMLAttributes<HTMLSqmLeadCheckboxFieldElement>;
|
|
13263
13387
|
"sqm-lead-dropdown-field": LocalJSX.SqmLeadDropdownField & JSXBase.HTMLAttributes<HTMLSqmLeadDropdownFieldElement>;
|
|
13264
13388
|
"sqm-lead-form": LocalJSX.SqmLeadForm & JSXBase.HTMLAttributes<HTMLSqmLeadFormElement>;
|
|
13265
13389
|
"sqm-lead-input-field": LocalJSX.SqmLeadInputField & JSXBase.HTMLAttributes<HTMLSqmLeadInputFieldElement>;
|
package/docs/docs.docx
CHANGED
|
Binary file
|