@clxmedia/types 1.0.56 → 1.0.57
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.
|
@@ -14,11 +14,23 @@ export type CLXFormQuestionLocator = {
|
|
|
14
14
|
sectionPosition: number;
|
|
15
15
|
questionSlug?: string;
|
|
16
16
|
};
|
|
17
|
+
export type CLXFormSettings = {
|
|
18
|
+
allowShare?: boolean;
|
|
19
|
+
allowReset?: boolean;
|
|
20
|
+
onSubmit?: 'lock' | 'reset';
|
|
21
|
+
notifyEmailsOnSubmit?: string[];
|
|
22
|
+
sectionFormat?: 'tabs' | 'accordion';
|
|
23
|
+
hideNavButtons?: boolean;
|
|
24
|
+
hideLocationHeader?: boolean;
|
|
25
|
+
hideFormTitle?: boolean;
|
|
26
|
+
hideProcessBar?: boolean;
|
|
27
|
+
};
|
|
17
28
|
export type CLXForm = {
|
|
18
29
|
id: number;
|
|
19
30
|
slug: string;
|
|
20
31
|
name: string;
|
|
21
32
|
description?: string;
|
|
33
|
+
settings?: CLXFormSettings;
|
|
22
34
|
};
|
|
23
35
|
export type CLXFormResponseType = 'STRING' | 'NUMBER' | 'STRING_ARRAY' | 'CONTACT' | 'CONTACT_ARRAY' | 'BOOLEAN' | 'FILE' | 'DATE' | 'SCHEDULE' | 'COMPOUND' | 'MULTI_COMPOUND' | 'ANY';
|
|
24
36
|
export type CLXFormFieldType = 'text' | 'textarea' | 'boolean' | 'select' | 'multiselect' | 'file' | 'contact' | 'date' | 'schedule' | 'compound';
|
|
@@ -374,11 +386,7 @@ export type FormStats = {
|
|
|
374
386
|
required: FormStatCount;
|
|
375
387
|
};
|
|
376
388
|
export type CLXFormLayout = {
|
|
377
|
-
form:
|
|
378
|
-
slug: string;
|
|
379
|
-
name: string;
|
|
380
|
-
description?: string;
|
|
381
|
-
};
|
|
389
|
+
form: CLXForm;
|
|
382
390
|
steps: CLXFormStep[];
|
|
383
391
|
stats?: FormStats;
|
|
384
392
|
};
|