@clxmedia/types 1.12.2 → 1.13.1
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/core/clxforms/index.d.ts +22 -10
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ export type CLXFormSettingsDisplay = {
|
|
|
30
30
|
hideLocationHeader?: boolean;
|
|
31
31
|
hideFormTitle?: boolean;
|
|
32
32
|
hideProcessBar?: boolean;
|
|
33
|
+
disableSubmitButton?: boolean;
|
|
33
34
|
};
|
|
34
35
|
export type CLXFormSubmitConfig = {
|
|
35
36
|
actions: CLXFormSubmitAction[];
|
|
@@ -341,61 +342,72 @@ export type CLXFormPortableResponse = {
|
|
|
341
342
|
export type CLXFormPortableResponses = {
|
|
342
343
|
[questionSlug: string]: CLXFormPortableResponse;
|
|
343
344
|
};
|
|
344
|
-
export type CLXRuleComparison = "stringEquals" | "stringExists" | "stringContains" | "stringStartsWith" | "stringEndsWith" | "stringInList" | "stringNotInList" | "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone" | "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith" | "dateEquals" | "dateBefore" | "dateAfter" | "booleanEquals" | "fileExists" | "numberEquals" | "numberGreaterThan" | "numberLessThan";
|
|
345
|
+
export type CLXRuleComparison = "isAnswered" | "stringEquals" | "stringExists" | "stringContains" | "stringStartsWith" | "stringEndsWith" | "stringInList" | "stringNotInList" | "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone" | "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith" | "dateEquals" | "dateBefore" | "dateAfter" | "booleanEquals" | "fileExists" | "numberEquals" | "numberGreaterThan" | "numberLessThan";
|
|
345
346
|
export type CLXFormRuleDefinition = {
|
|
346
347
|
subject: string;
|
|
347
348
|
target: CLXFormResponseValue;
|
|
348
349
|
comparison: CLXRuleComparison;
|
|
350
|
+
negate?: boolean;
|
|
349
351
|
};
|
|
350
352
|
export type CLXFormRuleInstanceBase = {
|
|
351
353
|
subject: CLXFormResponseValue;
|
|
352
354
|
target: CLXFormResponseValue;
|
|
353
355
|
comparisonType: CLXRuleComparison;
|
|
356
|
+
negate?: boolean;
|
|
354
357
|
};
|
|
355
358
|
export type CLXFormRuleStringComparisonInstance = CLXFormRuleInstanceBase & {
|
|
356
359
|
subject: CLXFormResponseStringValue;
|
|
357
360
|
target: CLXFormResponseStringValue;
|
|
358
|
-
comparisonType: "stringEquals" | "stringContains" | "stringStartsWith" | "stringEndsWith";
|
|
361
|
+
comparisonType: "isAnswered" | "stringEquals" | "stringContains" | "stringStartsWith" | "stringEndsWith";
|
|
362
|
+
negate?: boolean;
|
|
359
363
|
};
|
|
360
364
|
export type CLXFormRuleStringExistsComparisonInstance = CLXFormRuleInstanceBase & {
|
|
361
365
|
subject: CLXFormResponseStringValue;
|
|
362
366
|
target: CLXFormResponseBooleanValue;
|
|
363
|
-
comparisonType: "stringExists";
|
|
367
|
+
comparisonType: "stringExists" | "isAnswered";
|
|
368
|
+
negate?: boolean;
|
|
364
369
|
};
|
|
365
370
|
export type CLXFormRuleStringListToStringListInstance = CLXFormRuleInstanceBase & {
|
|
366
371
|
subject: CLXFormResponseStringArrayValue;
|
|
367
372
|
target: CLXFormResponseStringArrayValue;
|
|
368
|
-
comparisonType: "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone";
|
|
373
|
+
comparisonType: "isAnswered" | "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone";
|
|
374
|
+
negate?: boolean;
|
|
369
375
|
};
|
|
370
376
|
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
371
377
|
subject: CLXFormResponseStringValue;
|
|
372
378
|
target: CLXFormResponseStringArrayValue;
|
|
373
|
-
comparisonType: "stringInList" | "stringNotInList";
|
|
379
|
+
comparisonType: "stringInList" | "stringNotInList" | "isAnswered";
|
|
380
|
+
negate?: boolean;
|
|
374
381
|
};
|
|
375
382
|
export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
|
|
376
383
|
subject: CLXFormResponseFileValue;
|
|
377
384
|
target: CLXFormResponseBooleanValue;
|
|
378
|
-
comparisonType: "fileExists";
|
|
385
|
+
comparisonType: "fileExists" | "isAnswered";
|
|
386
|
+
negate?: boolean;
|
|
379
387
|
};
|
|
380
388
|
export type CLXFormRuleDateComparisonInstance = CLXFormRuleInstanceBase & {
|
|
381
389
|
subject: CLXFormResponseDateValue;
|
|
382
390
|
target: CLXFormResponseDateValue;
|
|
383
|
-
comparisonType: "dateEquals" | "dateBefore" | "dateAfter";
|
|
391
|
+
comparisonType: "dateEquals" | "dateBefore" | "dateAfter" | "isAnswered";
|
|
392
|
+
negate?: boolean;
|
|
384
393
|
};
|
|
385
394
|
export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
|
|
386
395
|
subject: CLXFormResponseStringArrayValue;
|
|
387
396
|
target: CLXFormResponseStringValue;
|
|
388
|
-
comparisonType: "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith";
|
|
397
|
+
comparisonType: "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith" | "isAnswered";
|
|
398
|
+
negate?: boolean;
|
|
389
399
|
};
|
|
390
400
|
export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
|
|
391
401
|
subject: CLXFormResponseBooleanValue;
|
|
392
402
|
target: CLXFormResponseBooleanValue;
|
|
393
|
-
comparisonType: "booleanEquals";
|
|
403
|
+
comparisonType: "booleanEquals" | "isAnswered";
|
|
404
|
+
negate?: boolean;
|
|
394
405
|
};
|
|
395
406
|
export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
396
407
|
subject: CLXFormResponseNumberValue;
|
|
397
408
|
target: CLXFormResponseNumberValue;
|
|
398
|
-
comparisonType: "numberEquals" | "numberGreaterThan" | "numberLessThan";
|
|
409
|
+
comparisonType: "numberEquals" | "numberGreaterThan" | "numberLessThan" | "isAnswered";
|
|
410
|
+
negate?: boolean;
|
|
399
411
|
};
|
|
400
412
|
export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringExistsComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListToStringListInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
401
413
|
/**
|