@clxmedia/types 1.0.55 → 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';
|
|
@@ -252,6 +264,7 @@ export type CLXSingleCompoundFormField = CLXFormField & {
|
|
|
252
264
|
export type CLXFormQuestionResponseOptions = {
|
|
253
265
|
field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
|
|
254
266
|
has_parent?: boolean;
|
|
267
|
+
allow_reset?: boolean;
|
|
255
268
|
tags?: string[];
|
|
256
269
|
};
|
|
257
270
|
export type CLXFormQuestion = {
|
|
@@ -373,11 +386,7 @@ export type FormStats = {
|
|
|
373
386
|
required: FormStatCount;
|
|
374
387
|
};
|
|
375
388
|
export type CLXFormLayout = {
|
|
376
|
-
form:
|
|
377
|
-
slug: string;
|
|
378
|
-
name: string;
|
|
379
|
-
description?: string;
|
|
380
|
-
};
|
|
389
|
+
form: CLXForm;
|
|
381
390
|
steps: CLXFormStep[];
|
|
382
391
|
stats?: FormStats;
|
|
383
392
|
};
|