@kbss-cvut/s-forms 0.7.1-alpha-fb8d67b.0 → 0.7.1-alpha-aeba8be.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/constants/Constants.d.ts +103 -0
- package/dist/model/ValidatorFactory.d.ts +6 -6
- package/dist/s-forms.cjs +1 -1
- package/dist/s-forms.cjs.map +1 -1
- package/dist/s-forms.d.ts +2 -3
- package/dist/s-forms.js +1 -1
- package/dist/s-forms.js.map +1 -1
- package/dist/s-forms.modern.js +1 -1
- package/dist/s-forms.modern.js.map +1 -1
- package/dist/s-forms.umd.js +1 -1
- package/dist/s-forms.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/constants/Vocabulary.d.ts +0 -102
|
@@ -2,6 +2,109 @@ export default class Constants {
|
|
|
2
2
|
static COLUMN_COUNT: number;
|
|
3
3
|
static INPUT_LENGTH_THRESHOLD: number;
|
|
4
4
|
static DATETIME_NUMBER_FORMAT: string;
|
|
5
|
+
/**
|
|
6
|
+
* Contains mainly definition of constants used to parse the form declaration.
|
|
7
|
+
*/
|
|
8
|
+
static FORM: string;
|
|
9
|
+
static HAS_SUBQUESTION: string;
|
|
10
|
+
static HAS_ANSWER: string;
|
|
11
|
+
static HAS_OPTION: string;
|
|
12
|
+
static HAS_OPTIONS_QUERY: string;
|
|
13
|
+
static HAS_VALUE_TYPE: string;
|
|
14
|
+
static IS_DISABLED: string;
|
|
15
|
+
static INPUT_MASK: string;
|
|
16
|
+
static LAYOUT_CLASS: string;
|
|
17
|
+
static LAYOUT: {
|
|
18
|
+
FORM: string;
|
|
19
|
+
QUESTION_SECTION: string;
|
|
20
|
+
WIZARD_STEP: string;
|
|
21
|
+
DATE: string;
|
|
22
|
+
TIME: string;
|
|
23
|
+
DATETIME: string;
|
|
24
|
+
TEXT: string;
|
|
25
|
+
TEXTAREA: string;
|
|
26
|
+
CHECKBOX: string;
|
|
27
|
+
QUESTION_TYPEAHEAD: string;
|
|
28
|
+
MASKED_INPUT: string;
|
|
29
|
+
ANSWERABLE: string;
|
|
30
|
+
SPARQL: string;
|
|
31
|
+
TURTLE: string;
|
|
32
|
+
DISABLED: string;
|
|
33
|
+
HIDDEN: string;
|
|
34
|
+
COLLAPSED: string;
|
|
35
|
+
EMPHASISED: string;
|
|
36
|
+
EMPHASISE_ON_RELEVANT: string;
|
|
37
|
+
CATEGORY: string[];
|
|
38
|
+
};
|
|
39
|
+
static HAS_INITIAL_INPUT_LENGTH: string;
|
|
40
|
+
static VALUE_TYPE_CODE: string;
|
|
41
|
+
static VALUE_TYPE_TEXT: string;
|
|
42
|
+
static GENERATED_ROW_SIZE: number;
|
|
43
|
+
static HAS_QUESTION_ORIGIN: string;
|
|
44
|
+
static HAS_ANSWER_ORIGIN: string;
|
|
45
|
+
static HAS_DATA_VALUE: string;
|
|
46
|
+
static HAS_OBJECT_VALUE: string;
|
|
47
|
+
static HELP_DESCRIPTION: string;
|
|
48
|
+
static SOURCE: string;
|
|
49
|
+
static XSD: {
|
|
50
|
+
MAX_EXCLUSIVE: string;
|
|
51
|
+
MAX_INCLUSIVE: string;
|
|
52
|
+
MIN_EXCLUSIVE: string;
|
|
53
|
+
MIN_INCLUSIVE: string;
|
|
54
|
+
INT: string;
|
|
55
|
+
INTEGER: string;
|
|
56
|
+
NEGATIVE_INTEGER: string;
|
|
57
|
+
NON_NEGATIVE_INTEGER: string;
|
|
58
|
+
NON_POSITIVE_INTEGER: string;
|
|
59
|
+
POSITIVE_INTEGER: string;
|
|
60
|
+
BOOLEAN: string;
|
|
61
|
+
};
|
|
62
|
+
static STEP: string;
|
|
63
|
+
static PATTERN: string;
|
|
64
|
+
static ACCEPTS_ANSWER_VALUE: string;
|
|
65
|
+
static ACCEPTS: string;
|
|
66
|
+
static HAS_DATATYPE: string;
|
|
67
|
+
static HAS_LAYOUT_CLASS: string;
|
|
68
|
+
static HAS_POSSIBLE_VALUES_QUERY: string;
|
|
69
|
+
static HAS_REQUIRED_VALUE: string;
|
|
70
|
+
static HAS_TESTED_QUESTION: string;
|
|
71
|
+
static HAS_TESTED_FORM: string;
|
|
72
|
+
static HAS_UNIT: string;
|
|
73
|
+
static HAS_VALID_ANSWER: string;
|
|
74
|
+
static IS_RELEVANT_IF: string;
|
|
75
|
+
static ACCEPTS_VALIDATION_VALUE: string;
|
|
76
|
+
static HAS_VALIDATION_MESSAGE: string;
|
|
77
|
+
static NEGATIVE_CONDITION: string;
|
|
78
|
+
static REQUIRES_ANSWER: string;
|
|
79
|
+
static USED_ONLY_FOR_COMPLETENESS: string;
|
|
80
|
+
static REQUIRES_ANSWER_DESCRIPTION_IF: string;
|
|
81
|
+
static REQUIRES_ANSWER_IF: string;
|
|
82
|
+
static HAS_PRECEDING_QUESTION: string;
|
|
83
|
+
static HAS_PRECEDING_VALUE: string;
|
|
84
|
+
static HAS_MEDIA_CONTENT: string;
|
|
85
|
+
static CONDITION: string;
|
|
86
|
+
static OR_CONDITION: string;
|
|
87
|
+
static HAS_SUB_CONDITION: string;
|
|
88
|
+
static HAS_PATTERN: string;
|
|
89
|
+
static HAS_DECLARED_PREFIX: string;
|
|
90
|
+
static PREFIX: string;
|
|
91
|
+
static NAMESPACE: string;
|
|
92
|
+
static HAS_COMMENT: string;
|
|
93
|
+
static HAS_COMMENT_VALUE: string;
|
|
94
|
+
static HAS_AUTHOR: string;
|
|
95
|
+
static HAS_TIMESTAMP: string;
|
|
96
|
+
static TIME_FORMAT: string;
|
|
97
|
+
static DATE_FORMAT: string;
|
|
98
|
+
static DATETIME_FORMAT: string;
|
|
99
|
+
static NOT_ANSWERED_QUESTION: string;
|
|
100
|
+
static ANSWERED_QUESTION: string;
|
|
101
|
+
static HAS_VALIDATION_SEVERITY: string;
|
|
102
|
+
static RDFS_LABEL: any;
|
|
103
|
+
static RDFS_COMMENT: any;
|
|
104
|
+
static DEFAULT_HAS_CHILD: any;
|
|
105
|
+
static BROADER: string;
|
|
106
|
+
static HAS_NON_SELECTABLE_VALUE: string;
|
|
107
|
+
static PROVIDES_DEREFERENCEABLE_ANSWER_VALUES: string;
|
|
5
108
|
static ICONS: {
|
|
6
109
|
QUESTION_COMMENTS: string;
|
|
7
110
|
QUESTION_HELP: string;
|
|
@@ -3,7 +3,7 @@ export default class ValidatorFactory {
|
|
|
3
3
|
static _validateAnswer(question: any, intl: any, answerValue: any, validators: any): {};
|
|
4
4
|
static _patternValidator(question: any, intl: any): {
|
|
5
5
|
isValid: boolean;
|
|
6
|
-
validationSeverity:
|
|
6
|
+
validationSeverity: string;
|
|
7
7
|
message: any;
|
|
8
8
|
} | {
|
|
9
9
|
isValid: boolean;
|
|
@@ -12,7 +12,7 @@ export default class ValidatorFactory {
|
|
|
12
12
|
};
|
|
13
13
|
static _requiredValidator(question: any, intl: any): {
|
|
14
14
|
isValid: boolean;
|
|
15
|
-
validationSeverity:
|
|
15
|
+
validationSeverity: string;
|
|
16
16
|
message: string;
|
|
17
17
|
} | {
|
|
18
18
|
isValid: boolean;
|
|
@@ -21,7 +21,7 @@ export default class ValidatorFactory {
|
|
|
21
21
|
};
|
|
22
22
|
static _checkboxValidator(question: any, intl: any): {
|
|
23
23
|
isValid: boolean;
|
|
24
|
-
validationSeverity:
|
|
24
|
+
validationSeverity: string;
|
|
25
25
|
message: string;
|
|
26
26
|
} | {
|
|
27
27
|
isValid: boolean;
|
|
@@ -30,7 +30,7 @@ export default class ValidatorFactory {
|
|
|
30
30
|
};
|
|
31
31
|
static _completenessValidator(question: any, intl: any): {
|
|
32
32
|
isValid: boolean;
|
|
33
|
-
validationSeverity:
|
|
33
|
+
validationSeverity: string;
|
|
34
34
|
message: string;
|
|
35
35
|
} | {
|
|
36
36
|
isValid: boolean;
|
|
@@ -39,7 +39,7 @@ export default class ValidatorFactory {
|
|
|
39
39
|
};
|
|
40
40
|
static _intMinInclusiveValidator(question: any, intl: any): {
|
|
41
41
|
isValid: boolean;
|
|
42
|
-
validationSeverity:
|
|
42
|
+
validationSeverity: string;
|
|
43
43
|
message: string;
|
|
44
44
|
} | {
|
|
45
45
|
isValid: boolean;
|
|
@@ -48,7 +48,7 @@ export default class ValidatorFactory {
|
|
|
48
48
|
};
|
|
49
49
|
static _intMaxInclusiveValidator(question: any, intl: any): {
|
|
50
50
|
isValid: boolean;
|
|
51
|
-
validationSeverity:
|
|
51
|
+
validationSeverity: string;
|
|
52
52
|
message: string;
|
|
53
53
|
} | {
|
|
54
54
|
isValid: boolean;
|