@defra/forms-model 3.0.7 → 3.0.9
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/browser/components/component-types.js.map +1 -1
- package/dist/browser/components/conditional-component-types.js.map +1 -1
- package/dist/browser/components/index.js.map +1 -1
- package/dist/browser/conditions/condition-abstract.js.map +1 -1
- package/dist/browser/conditions/condition-field.js.map +1 -1
- package/dist/browser/conditions/condition-group-def.js.map +1 -1
- package/dist/browser/conditions/condition-group.js.map +1 -1
- package/dist/browser/conditions/condition-model.js.map +1 -1
- package/dist/browser/conditions/condition-operators.js.map +1 -1
- package/dist/browser/conditions/condition-ref.js.map +1 -1
- package/dist/browser/conditions/condition-value-abstract.js.map +1 -1
- package/dist/browser/conditions/condition-values.js.map +1 -1
- package/dist/browser/conditions/condition.js.map +1 -1
- package/dist/browser/conditions/index.js.map +1 -1
- package/dist/browser/conditions/inline-condition-model.js.map +1 -1
- package/dist/browser/conditions/inline-condition-operators.js.map +1 -1
- package/dist/browser/conditions/types.js.map +1 -1
- package/dist/browser/data-model/conditions-wrapper.js.map +1 -1
- package/dist/browser/data-model/index.js +4 -40
- package/dist/browser/data-model/index.js.map +1 -1
- package/dist/browser/data-model/input-wrapper.js.map +1 -1
- package/dist/browser/data-model/types.js.map +1 -1
- package/dist/browser/form/index.js.map +1 -1
- package/dist/browser/index.js +45 -70
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/migration/index.js.map +1 -1
- package/dist/browser/migration/migration.0-2.js.map +1 -1
- package/dist/browser/migration/migration.1-2.js.map +1 -1
- package/dist/browser/migration/whichMigrations.js.map +1 -1
- package/dist/browser/schema/index.js.map +1 -1
- package/dist/module/components/component-types.js.map +1 -1
- package/dist/module/components/conditional-component-types.js.map +1 -1
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/conditions/condition-abstract.js.map +1 -1
- package/dist/module/conditions/condition-field.js.map +1 -1
- package/dist/module/conditions/condition-group-def.js.map +1 -1
- package/dist/module/conditions/condition-group.js.map +1 -1
- package/dist/module/conditions/condition-model.js.map +1 -1
- package/dist/module/conditions/condition-operators.js.map +1 -1
- package/dist/module/conditions/condition-ref.js.map +1 -1
- package/dist/module/conditions/condition-value-abstract.js.map +1 -1
- package/dist/module/conditions/condition-values.js.map +1 -1
- package/dist/module/conditions/condition.js.map +1 -1
- package/dist/module/conditions/index.js.map +1 -1
- package/dist/module/conditions/inline-condition-model.js.map +1 -1
- package/dist/module/conditions/inline-condition-operators.js.map +1 -1
- package/dist/module/conditions/types.js.map +1 -1
- package/dist/module/data-model/conditions-wrapper.js.map +1 -1
- package/dist/module/data-model/index.js +0 -37
- package/dist/module/data-model/index.js.map +1 -1
- package/dist/module/data-model/input-wrapper.js.map +1 -1
- package/dist/module/data-model/types.js.map +1 -1
- package/dist/module/form/index.js.map +1 -1
- package/dist/module/index.js +50 -75
- package/dist/module/index.js.map +1 -1
- package/dist/module/migration/index.js.map +1 -1
- package/dist/module/migration/migration.0-2.js.map +1 -1
- package/dist/module/migration/migration.1-2.js.map +1 -1
- package/dist/module/migration/whichMigrations.js.map +1 -1
- package/dist/module/schema/index.js.map +1 -1
- package/dist/types/components/component-types.d.ts +3 -0
- package/dist/{module → types}/components/component-types.d.ts.map +1 -1
- package/dist/types/components/conditional-component-types.d.ts +3 -0
- package/dist/types/components/conditional-component-types.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/{browser → types}/conditions/condition-abstract.d.ts +1 -1
- package/dist/types/conditions/condition-abstract.d.ts.map +1 -0
- package/dist/{browser → types}/conditions/condition-field.d.ts +1 -1
- package/dist/types/conditions/condition-field.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition-group-def.d.ts +1 -1
- package/dist/types/conditions/condition-group-def.d.ts.map +1 -0
- package/dist/{browser → types}/conditions/condition-group.d.ts +2 -2
- package/dist/types/conditions/condition-group.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition-model.d.ts +5 -5
- package/dist/types/conditions/condition-model.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition-operators.d.ts +2 -2
- package/dist/types/conditions/condition-operators.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition-ref.d.ts +2 -2
- package/dist/types/conditions/condition-ref.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition-value-abstract.d.ts +1 -1
- package/dist/types/conditions/condition-value-abstract.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition-values.d.ts +3 -3
- package/dist/types/conditions/condition-values.d.ts.map +1 -0
- package/dist/{module → types}/conditions/condition.d.ts +4 -4
- package/dist/types/conditions/condition.d.ts.map +1 -0
- package/dist/types/conditions/index.d.ts +11 -0
- package/dist/types/conditions/index.d.ts.map +1 -0
- package/dist/{browser → types}/conditions/inline-condition-model.d.ts.map +1 -1
- package/dist/{module → types}/conditions/types.d.ts +3 -3
- package/dist/types/conditions/types.d.ts.map +1 -0
- package/dist/types/data-model/conditions-wrapper.d.ts +10 -0
- package/dist/types/data-model/conditions-wrapper.d.ts.map +1 -0
- package/dist/types/data-model/index.d.ts +4 -0
- package/dist/types/data-model/index.d.ts.map +1 -0
- package/dist/{browser → types}/data-model/input-wrapper.d.ts +2 -2
- package/dist/types/data-model/input-wrapper.d.ts.map +1 -0
- package/dist/{module → types}/data-model/types.d.ts +12 -3
- package/dist/types/data-model/types.d.ts.map +1 -0
- package/dist/types/form/index.d.ts +2 -0
- package/dist/{module → types}/form/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/migration/index.d.ts +2 -0
- package/dist/{browser → types}/migration/index.d.ts.map +1 -1
- package/dist/types/migration/migration.0-2.d.ts +3 -0
- package/dist/{browser → types}/migration/migration.0-2.d.ts.map +1 -1
- package/dist/types/migration/migration.1-2.d.ts +3 -0
- package/dist/{browser → types}/migration/migration.1-2.d.ts.map +1 -1
- package/dist/{browser → types}/migration/whichMigrations.d.ts +1 -1
- package/dist/{browser → types}/migration/whichMigrations.d.ts.map +1 -1
- package/dist/types/schema/index.d.ts +2 -0
- package/dist/{module → types}/schema/index.d.ts.map +1 -1
- package/package.json +3 -5
- package/src/components/component-types.ts +1 -1
- package/src/components/conditional-component-types.ts +1 -1
- package/src/components/index.ts +3 -4
- package/src/conditions/condition-abstract.ts +1 -1
- package/src/conditions/condition-field.ts +2 -1
- package/src/conditions/condition-group-def.ts +1 -1
- package/src/conditions/condition-group.ts +3 -3
- package/src/conditions/condition-model.ts +9 -9
- package/src/conditions/condition-operators.ts +3 -4
- package/src/conditions/condition-ref.ts +2 -2
- package/src/conditions/condition-value-abstract.ts +1 -1
- package/src/conditions/condition-values.ts +7 -3
- package/src/conditions/condition.ts +9 -6
- package/src/conditions/index.ts +10 -10
- package/src/conditions/inline-condition-model.ts +6 -3
- package/src/conditions/inline-condition-operators.ts +1 -1
- package/src/conditions/types.ts +3 -3
- package/src/data-model/conditions-wrapper.ts +5 -15
- package/src/data-model/index.ts +3 -4
- package/src/data-model/input-wrapper.ts +3 -3
- package/src/data-model/types.ts +16 -3
- package/src/form/index.ts +1 -1
- package/src/index.ts +11 -14
- package/src/migration/index.ts +1 -1
- package/src/migration/migration.0-2.ts +1 -1
- package/src/migration/migration.1-2.ts +2 -2
- package/src/migration/whichMigrations.ts +3 -3
- package/src/schema/index.ts +1 -1
- package/dist/browser/components/component-types.d.ts +0 -3
- package/dist/browser/components/component-types.d.ts.map +0 -1
- package/dist/browser/components/conditional-component-types.d.ts +0 -3
- package/dist/browser/components/conditional-component-types.d.ts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -5
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/conditions/condition-abstract.d.ts.map +0 -1
- package/dist/browser/conditions/condition-field.d.ts.map +0 -1
- package/dist/browser/conditions/condition-group-def.d.ts +0 -10
- package/dist/browser/conditions/condition-group-def.d.ts.map +0 -1
- package/dist/browser/conditions/condition-group.d.ts.map +0 -1
- package/dist/browser/conditions/condition-model.d.ts +0 -41
- package/dist/browser/conditions/condition-model.d.ts.map +0 -1
- package/dist/browser/conditions/condition-operators.d.ts +0 -248
- package/dist/browser/conditions/condition-operators.d.ts.map +0 -1
- package/dist/browser/conditions/condition-ref.d.ts +0 -12
- package/dist/browser/conditions/condition-ref.d.ts.map +0 -1
- package/dist/browser/conditions/condition-value-abstract.d.ts +0 -8
- package/dist/browser/conditions/condition-value-abstract.d.ts.map +0 -1
- package/dist/browser/conditions/condition-values.d.ts +0 -38
- package/dist/browser/conditions/condition-values.d.ts.map +0 -1
- package/dist/browser/conditions/condition.d.ts +0 -15
- package/dist/browser/conditions/condition.d.ts.map +0 -1
- package/dist/browser/conditions/index.d.ts +0 -11
- package/dist/browser/conditions/index.d.ts.map +0 -1
- package/dist/browser/conditions/types.d.ts +0 -34
- package/dist/browser/conditions/types.d.ts.map +0 -1
- package/dist/browser/data-model/conditions-wrapper.d.ts +0 -19
- package/dist/browser/data-model/conditions-wrapper.d.ts.map +0 -1
- package/dist/browser/data-model/index.d.ts +0 -5
- package/dist/browser/data-model/index.d.ts.map +0 -1
- package/dist/browser/data-model/input-wrapper.d.ts.map +0 -1
- package/dist/browser/data-model/types.d.ts +0 -149
- package/dist/browser/data-model/types.d.ts.map +0 -1
- package/dist/browser/form/index.d.ts +0 -2
- package/dist/browser/form/index.d.ts.map +0 -1
- package/dist/browser/index.d.ts +0 -11
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/migration/index.d.ts +0 -2
- package/dist/browser/migration/migration.0-2.d.ts +0 -3
- package/dist/browser/migration/migration.1-2.d.ts +0 -3
- package/dist/browser/schema/index.d.ts +0 -2
- package/dist/browser/schema/index.d.ts.map +0 -1
- package/dist/module/components/component-types.d.ts +0 -3
- package/dist/module/components/conditional-component-types.d.ts +0 -3
- package/dist/module/components/conditional-component-types.d.ts.map +0 -1
- package/dist/module/components/enums.d.ts +0 -27
- package/dist/module/components/enums.d.ts.map +0 -1
- package/dist/module/components/index.d.ts +0 -5
- package/dist/module/components/index.d.ts.map +0 -1
- package/dist/module/components/types.d.ts +0 -215
- package/dist/module/components/types.d.ts.map +0 -1
- package/dist/module/conditions/condition-abstract.d.ts +0 -16
- package/dist/module/conditions/condition-abstract.d.ts.map +0 -1
- package/dist/module/conditions/condition-field.d.ts +0 -13
- package/dist/module/conditions/condition-field.d.ts.map +0 -1
- package/dist/module/conditions/condition-group-def.d.ts.map +0 -1
- package/dist/module/conditions/condition-group.d.ts +0 -16
- package/dist/module/conditions/condition-group.d.ts.map +0 -1
- package/dist/module/conditions/condition-model.d.ts.map +0 -1
- package/dist/module/conditions/condition-operators.d.ts.map +0 -1
- package/dist/module/conditions/condition-ref.d.ts.map +0 -1
- package/dist/module/conditions/condition-value-abstract.d.ts.map +0 -1
- package/dist/module/conditions/condition-value-registration.d.ts +0 -10
- package/dist/module/conditions/condition-value-registration.d.ts.map +0 -1
- package/dist/module/conditions/condition-values.d.ts.map +0 -1
- package/dist/module/conditions/condition.d.ts.map +0 -1
- package/dist/module/conditions/enums.d.ts +0 -5
- package/dist/module/conditions/enums.d.ts.map +0 -1
- package/dist/module/conditions/helpers.d.ts +0 -3
- package/dist/module/conditions/helpers.d.ts.map +0 -1
- package/dist/module/conditions/index.d.ts +0 -11
- package/dist/module/conditions/index.d.ts.map +0 -1
- package/dist/module/conditions/inline-condition-model.d.ts +0 -86
- package/dist/module/conditions/inline-condition-model.d.ts.map +0 -1
- package/dist/module/conditions/inline-condition-operators.d.ts +0 -175
- package/dist/module/conditions/inline-condition-operators.d.ts.map +0 -1
- package/dist/module/conditions/inline-condition-values.d.ts +0 -93
- package/dist/module/conditions/inline-condition-values.d.ts.map +0 -1
- package/dist/module/conditions/types.d.ts.map +0 -1
- package/dist/module/data-model/conditions-wrapper.d.ts +0 -19
- package/dist/module/data-model/conditions-wrapper.d.ts.map +0 -1
- package/dist/module/data-model/enums.d.ts +0 -6
- package/dist/module/data-model/enums.d.ts.map +0 -1
- package/dist/module/data-model/index.d.ts +0 -5
- package/dist/module/data-model/index.d.ts.map +0 -1
- package/dist/module/data-model/input-wrapper.d.ts +0 -16
- package/dist/module/data-model/input-wrapper.d.ts.map +0 -1
- package/dist/module/data-model/types.d.ts.map +0 -1
- package/dist/module/form/form-configuration.d.ts +0 -8
- package/dist/module/form/form-configuration.d.ts.map +0 -1
- package/dist/module/form/index.d.ts +0 -2
- package/dist/module/index.d.ts +0 -11
- package/dist/module/index.d.ts.map +0 -1
- package/dist/module/migration/index.d.ts +0 -2
- package/dist/module/migration/index.d.ts.map +0 -1
- package/dist/module/migration/migration.0-2.d.ts +0 -3
- package/dist/module/migration/migration.0-2.d.ts.map +0 -1
- package/dist/module/migration/migration.1-2.d.ts +0 -3
- package/dist/module/migration/migration.1-2.d.ts.map +0 -1
- package/dist/module/migration/types.d.ts +0 -2
- package/dist/module/migration/types.d.ts.map +0 -1
- package/dist/module/migration/whichMigrations.d.ts +0 -7
- package/dist/module/migration/whichMigrations.d.ts.map +0 -1
- package/dist/module/schema/index.d.ts +0 -2
- package/dist/module/schema/schema.d.ts +0 -20
- package/dist/module/schema/schema.d.ts.map +0 -1
- package/dist/module/utils/helpers.d.ts +0 -9
- package/dist/module/utils/helpers.d.ts.map +0 -1
- package/dist/module/utils/logger.d.ts +0 -11
- package/dist/module/utils/logger.d.ts.map +0 -1
- /package/dist/{browser → types}/components/enums.d.ts +0 -0
- /package/dist/{browser → types}/components/enums.d.ts.map +0 -0
- /package/dist/{browser → types}/components/types.d.ts +0 -0
- /package/dist/{browser → types}/components/types.d.ts.map +0 -0
- /package/dist/{browser → types}/conditions/condition-value-registration.d.ts +0 -0
- /package/dist/{browser → types}/conditions/condition-value-registration.d.ts.map +0 -0
- /package/dist/{browser → types}/conditions/enums.d.ts +0 -0
- /package/dist/{browser → types}/conditions/enums.d.ts.map +0 -0
- /package/dist/{browser → types}/conditions/helpers.d.ts +0 -0
- /package/dist/{browser → types}/conditions/helpers.d.ts.map +0 -0
- /package/dist/{browser → types}/conditions/inline-condition-model.d.ts +0 -0
- /package/dist/{browser → types}/conditions/inline-condition-operators.d.ts +0 -0
- /package/dist/{browser → types}/conditions/inline-condition-operators.d.ts.map +0 -0
- /package/dist/{browser → types}/conditions/inline-condition-values.d.ts +0 -0
- /package/dist/{browser → types}/conditions/inline-condition-values.d.ts.map +0 -0
- /package/dist/{browser → types}/data-model/enums.d.ts +0 -0
- /package/dist/{browser → types}/data-model/enums.d.ts.map +0 -0
- /package/dist/{browser → types}/form/form-configuration.d.ts +0 -0
- /package/dist/{browser → types}/form/form-configuration.d.ts.map +0 -0
- /package/dist/{browser → types}/migration/types.d.ts +0 -0
- /package/dist/{browser → types}/migration/types.d.ts.map +0 -0
- /package/dist/{browser → types}/schema/schema.d.ts +0 -0
- /package/dist/{browser → types}/schema/schema.d.ts.map +0 -0
- /package/dist/{browser → types}/utils/helpers.d.ts +0 -0
- /package/dist/{browser → types}/utils/helpers.d.ts.map +0 -0
- /package/dist/{browser → types}/utils/logger.d.ts +0 -0
- /package/dist/{browser → types}/utils/logger.d.ts.map +0 -0
@@ -1,248 +0,0 @@
|
|
1
|
-
import { ComponentType, ComponentDef } from '../components';
|
2
|
-
import { ConditionValueAbstract } from './condition-value-abstract';
|
3
|
-
export declare const customOperators: {
|
4
|
-
CheckboxesField: {
|
5
|
-
contains: {
|
6
|
-
expression: (field: ComponentDef, value: any) => string;
|
7
|
-
};
|
8
|
-
'does not contain': {
|
9
|
-
expression: (field: ComponentDef, value: any) => string;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
NumberField: {
|
13
|
-
'is at least': {
|
14
|
-
expression: (field: ComponentDef, value: any) => string;
|
15
|
-
};
|
16
|
-
'is at most': {
|
17
|
-
expression: (field: ComponentDef, value: any) => string;
|
18
|
-
};
|
19
|
-
'is less than': {
|
20
|
-
expression: (field: ComponentDef, value: any) => string;
|
21
|
-
};
|
22
|
-
'is more than': {
|
23
|
-
expression: (field: ComponentDef, value: any) => string;
|
24
|
-
};
|
25
|
-
} & {
|
26
|
-
is: {
|
27
|
-
expression: (field: ComponentDef, value: any) => string;
|
28
|
-
};
|
29
|
-
'is not': {
|
30
|
-
expression: (field: ComponentDef, value: any) => string;
|
31
|
-
};
|
32
|
-
};
|
33
|
-
DateField: {
|
34
|
-
is: {
|
35
|
-
expression: (field: ComponentDef, value: any) => string;
|
36
|
-
};
|
37
|
-
'is not': {
|
38
|
-
expression: (field: ComponentDef, value: any) => string;
|
39
|
-
};
|
40
|
-
'is before': {
|
41
|
-
expression: (field: ComponentDef, value: any) => string;
|
42
|
-
};
|
43
|
-
'is after': {
|
44
|
-
expression: (field: ComponentDef, value: any) => string;
|
45
|
-
};
|
46
|
-
} & {
|
47
|
-
'is at least': {
|
48
|
-
units: any;
|
49
|
-
expression: (field: ComponentDef, value: any) => string;
|
50
|
-
};
|
51
|
-
'is at most': {
|
52
|
-
units: any;
|
53
|
-
expression: (field: ComponentDef, value: any) => string;
|
54
|
-
};
|
55
|
-
'is less than': {
|
56
|
-
units: any;
|
57
|
-
expression: (field: ComponentDef, value: any) => string;
|
58
|
-
};
|
59
|
-
'is more than': {
|
60
|
-
units: any;
|
61
|
-
expression: (field: ComponentDef, value: any) => string;
|
62
|
-
};
|
63
|
-
};
|
64
|
-
TimeField: {
|
65
|
-
is: {
|
66
|
-
expression: (field: ComponentDef, value: any) => string;
|
67
|
-
};
|
68
|
-
'is not': {
|
69
|
-
expression: (field: ComponentDef, value: any) => string;
|
70
|
-
};
|
71
|
-
'is before': {
|
72
|
-
expression: (field: ComponentDef, value: any) => string;
|
73
|
-
};
|
74
|
-
'is after': {
|
75
|
-
expression: (field: ComponentDef, value: any) => string;
|
76
|
-
};
|
77
|
-
} & {
|
78
|
-
'is at least': {
|
79
|
-
units: any;
|
80
|
-
expression: (field: ComponentDef, value: any) => string;
|
81
|
-
};
|
82
|
-
'is at most': {
|
83
|
-
units: any;
|
84
|
-
expression: (field: ComponentDef, value: any) => string;
|
85
|
-
};
|
86
|
-
'is less than': {
|
87
|
-
units: any;
|
88
|
-
expression: (field: ComponentDef, value: any) => string;
|
89
|
-
};
|
90
|
-
'is more than': {
|
91
|
-
units: any;
|
92
|
-
expression: (field: ComponentDef, value: any) => string;
|
93
|
-
};
|
94
|
-
};
|
95
|
-
DatePartsField: {
|
96
|
-
is: {
|
97
|
-
expression: (field: ComponentDef, value: any) => string;
|
98
|
-
};
|
99
|
-
'is not': {
|
100
|
-
expression: (field: ComponentDef, value: any) => string;
|
101
|
-
};
|
102
|
-
'is before': {
|
103
|
-
expression: (field: ComponentDef, value: any) => string;
|
104
|
-
};
|
105
|
-
'is after': {
|
106
|
-
expression: (field: ComponentDef, value: any) => string;
|
107
|
-
};
|
108
|
-
} & {
|
109
|
-
'is at least': {
|
110
|
-
units: any;
|
111
|
-
expression: (field: ComponentDef, value: any) => string;
|
112
|
-
};
|
113
|
-
'is at most': {
|
114
|
-
units: any;
|
115
|
-
expression: (field: ComponentDef, value: any) => string;
|
116
|
-
};
|
117
|
-
'is less than': {
|
118
|
-
units: any;
|
119
|
-
expression: (field: ComponentDef, value: any) => string;
|
120
|
-
};
|
121
|
-
'is more than': {
|
122
|
-
units: any;
|
123
|
-
expression: (field: ComponentDef, value: any) => string;
|
124
|
-
};
|
125
|
-
};
|
126
|
-
DateTimeField: {
|
127
|
-
is: {
|
128
|
-
expression: (field: ComponentDef, value: any) => string;
|
129
|
-
};
|
130
|
-
'is not': {
|
131
|
-
expression: (field: ComponentDef, value: any) => string;
|
132
|
-
};
|
133
|
-
'is before': {
|
134
|
-
expression: (field: ComponentDef, value: any) => string;
|
135
|
-
};
|
136
|
-
'is after': {
|
137
|
-
expression: (field: ComponentDef, value: any) => string;
|
138
|
-
};
|
139
|
-
} & {
|
140
|
-
'is at least': {
|
141
|
-
units: any;
|
142
|
-
expression: (field: ComponentDef, value: any) => string;
|
143
|
-
};
|
144
|
-
'is at most': {
|
145
|
-
units: any;
|
146
|
-
expression: (field: ComponentDef, value: any) => string;
|
147
|
-
};
|
148
|
-
'is less than': {
|
149
|
-
units: any;
|
150
|
-
expression: (field: ComponentDef, value: any) => string;
|
151
|
-
};
|
152
|
-
'is more than': {
|
153
|
-
units: any;
|
154
|
-
expression: (field: ComponentDef, value: any) => string;
|
155
|
-
};
|
156
|
-
};
|
157
|
-
DateTimePartsField: {
|
158
|
-
is: {
|
159
|
-
expression: (field: ComponentDef, value: any) => string;
|
160
|
-
};
|
161
|
-
'is not': {
|
162
|
-
expression: (field: ComponentDef, value: any) => string;
|
163
|
-
};
|
164
|
-
'is before': {
|
165
|
-
expression: (field: ComponentDef, value: any) => string;
|
166
|
-
};
|
167
|
-
'is after': {
|
168
|
-
expression: (field: ComponentDef, value: any) => string;
|
169
|
-
};
|
170
|
-
} & {
|
171
|
-
'is at least': {
|
172
|
-
units: any;
|
173
|
-
expression: (field: ComponentDef, value: any) => string;
|
174
|
-
};
|
175
|
-
'is at most': {
|
176
|
-
units: any;
|
177
|
-
expression: (field: ComponentDef, value: any) => string;
|
178
|
-
};
|
179
|
-
'is less than': {
|
180
|
-
units: any;
|
181
|
-
expression: (field: ComponentDef, value: any) => string;
|
182
|
-
};
|
183
|
-
'is more than': {
|
184
|
-
units: any;
|
185
|
-
expression: (field: ComponentDef, value: any) => string;
|
186
|
-
};
|
187
|
-
};
|
188
|
-
TextField: {
|
189
|
-
'is longer than': {
|
190
|
-
expression: (field: ComponentDef, value: any) => string;
|
191
|
-
};
|
192
|
-
'is shorter than': {
|
193
|
-
expression: (field: ComponentDef, value: any) => string;
|
194
|
-
};
|
195
|
-
'has length': {
|
196
|
-
expression: (field: ComponentDef, value: any) => string;
|
197
|
-
};
|
198
|
-
} & {
|
199
|
-
is: {
|
200
|
-
expression: (field: ComponentDef, value: any) => string;
|
201
|
-
};
|
202
|
-
'is not': {
|
203
|
-
expression: (field: ComponentDef, value: any) => string;
|
204
|
-
};
|
205
|
-
};
|
206
|
-
MultilineTextField: {
|
207
|
-
'is longer than': {
|
208
|
-
expression: (field: ComponentDef, value: any) => string;
|
209
|
-
};
|
210
|
-
'is shorter than': {
|
211
|
-
expression: (field: ComponentDef, value: any) => string;
|
212
|
-
};
|
213
|
-
'has length': {
|
214
|
-
expression: (field: ComponentDef, value: any) => string;
|
215
|
-
};
|
216
|
-
} & {
|
217
|
-
is: {
|
218
|
-
expression: (field: ComponentDef, value: any) => string;
|
219
|
-
};
|
220
|
-
'is not': {
|
221
|
-
expression: (field: ComponentDef, value: any) => string;
|
222
|
-
};
|
223
|
-
};
|
224
|
-
EmailAddressField: {
|
225
|
-
'is longer than': {
|
226
|
-
expression: (field: ComponentDef, value: any) => string;
|
227
|
-
};
|
228
|
-
'is shorter than': {
|
229
|
-
expression: (field: ComponentDef, value: any) => string;
|
230
|
-
};
|
231
|
-
'has length': {
|
232
|
-
expression: (field: ComponentDef, value: any) => string;
|
233
|
-
};
|
234
|
-
} & {
|
235
|
-
is: {
|
236
|
-
expression: (field: ComponentDef, value: any) => string;
|
237
|
-
};
|
238
|
-
'is not': {
|
239
|
-
expression: (field: ComponentDef, value: any) => string;
|
240
|
-
};
|
241
|
-
};
|
242
|
-
};
|
243
|
-
export declare function getOperatorNames(fieldType: any): string[];
|
244
|
-
export declare function getExpression(fieldType: ComponentType, fieldName: string, operator: string, value: ConditionValueAbstract): any;
|
245
|
-
export declare function getOperatorConfig(fieldType: ComponentType, operator: any): any;
|
246
|
-
export declare const absoluteDateOrTimeOperatorNames: string[];
|
247
|
-
export declare const relativeDateOrTimeOperatorNames: string[];
|
248
|
-
//# sourceMappingURL=condition-operators.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"condition-operators.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-operators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AA0CnE,eAAO,MAAM,eAAe;;;gCAiFJ,YAAY;;;gCAOZ,YAAY;;;;;gCArB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M,EAChB,KAAK,EAAE,sBAAsB,OAM9B;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,EAAE,QAAQ,KAAA,OAEnE;AAyCD,eAAO,MAAM,+BAA+B,UAE3C,CAAA;AACD,eAAO,MAAM,+BAA+B,UAE3C,CAAA"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { ConditionAbstract } from './condition-abstract';
|
2
|
-
import { Coordinator } from './enums';
|
3
|
-
export declare class ConditionRef extends ConditionAbstract {
|
4
|
-
conditionName: string;
|
5
|
-
conditionDisplayName: string;
|
6
|
-
constructor(conditionName: string, conditionDisplayName: string, coordinator: Coordinator | undefined);
|
7
|
-
asFirstCondition(): this;
|
8
|
-
conditionString(): string;
|
9
|
-
conditionExpression(): string;
|
10
|
-
clone(): ConditionRef;
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=condition-ref.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"condition-ref.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,qBAAa,YAAa,SAAQ,iBAAiB;IACjD,aAAa,EAAE,MAAM,CAAA;IACrB,oBAAoB,EAAE,MAAM,CAAA;gBAG1B,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,MAAM,EAC5B,WAAW,EAAE,WAAW,GAAG,SAAS;IAgBtC,gBAAgB;IAKhB,eAAe;IAIf,mBAAmB;IAInB,KAAK;CAON"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Registration } from './condition-value-registration';
|
2
|
-
export declare class ConditionValueAbstract {
|
3
|
-
type: string;
|
4
|
-
constructor(registration: Registration);
|
5
|
-
toPresentationString(): void;
|
6
|
-
toExpression(): void;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=condition-value-abstract.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"condition-value-abstract.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-value-abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAE7D,qBAAa,sBAAsB;IACjC,IAAI,EAAE,MAAM,CAAA;gBAEA,YAAY,EAAE,YAAY;IActC,oBAAoB;IAMpB,YAAY;CAKb"}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { ConditionValueAbstract } from './condition-value-abstract';
|
2
|
-
import { Registration } from './condition-value-registration';
|
3
|
-
import { DateTimeUnitValues, DateUnits, TimeUnits } from './types';
|
4
|
-
export declare class ConditionValue extends ConditionValueAbstract {
|
5
|
-
value: string;
|
6
|
-
display: string;
|
7
|
-
constructor(value: string, display?: string);
|
8
|
-
toPresentationString(): string;
|
9
|
-
toExpression(): string;
|
10
|
-
static from(obj: {
|
11
|
-
value: string;
|
12
|
-
display?: string;
|
13
|
-
}): ConditionValue;
|
14
|
-
clone(): ConditionValue;
|
15
|
-
}
|
16
|
-
export declare enum DateDirections {
|
17
|
-
FUTURE = "in the future",
|
18
|
-
PAST = "in the past"
|
19
|
-
}
|
20
|
-
export declare const dateUnits: DateUnits;
|
21
|
-
export declare const timeUnits: TimeUnits;
|
22
|
-
export declare const dateTimeUnits: DateUnits & TimeUnits;
|
23
|
-
export declare class RelativeTimeValue extends ConditionValueAbstract {
|
24
|
-
timePeriod: string;
|
25
|
-
timeUnit: DateTimeUnitValues;
|
26
|
-
direction: DateDirections;
|
27
|
-
timeOnly: boolean;
|
28
|
-
constructor(timePeriod: string, timeUnit: DateTimeUnitValues, direction: DateDirections, timeOnly?: boolean);
|
29
|
-
toPresentationString(): string;
|
30
|
-
toExpression(): string;
|
31
|
-
static from(obj: any): RelativeTimeValue;
|
32
|
-
clone(): RelativeTimeValue;
|
33
|
-
}
|
34
|
-
export declare const relativeTimeValueType: Registration;
|
35
|
-
type ConditionValueFrom = Pick<ConditionValue, 'type' | 'value' | 'display'> | Pick<RelativeTimeValue, 'type' | 'timePeriod' | 'timeUnit' | 'direction' | 'timeOnly'>;
|
36
|
-
export declare function conditionValueFrom(obj: ConditionValueFrom): any;
|
37
|
-
export {};
|
38
|
-
//# sourceMappingURL=condition-values.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"condition-values.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAElE,qBAAa,cAAe,SAAQ,sBAAsB;IACxD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;gBAEH,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAe3C,oBAAoB;IAIpB,YAAY;IAIZ,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAIpD,KAAK;CAGN;AAMD,oBAAY,cAAc;IACxB,MAAM,kBAAkB;IACxB,IAAI,gBAAgB;CACrB;AAED,eAAO,MAAM,SAAS,EAAE,SAIvB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,SAIvB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,GAAG,SAIvC,CAAA;AAED,qBAAa,iBAAkB,SAAQ,sBAAsB;IAC3D,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,SAAS,EAAE,cAAc,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;gBAGf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,kBAAkB,EAC5B,SAAS,EAAE,cAAc,EACzB,QAAQ,UAAQ;IA0BlB,oBAAoB;IAIpB,YAAY,IAAI,MAAM;IAUtB,MAAM,CAAC,IAAI,CAAC,GAAG,KAAA;IASf,KAAK;CAGN;AAED,eAAO,MAAM,qBAAqB,cAGjC,CAAA;AAED,KAAK,kBAAkB,GACnB,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,GAClD,IAAI,CACF,iBAAiB,EACjB,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAC9D,CAAA;AAEL,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,OAEzD"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ConditionField } from './condition-field';
|
2
|
-
import { ConditionAbstract } from './condition-abstract';
|
3
|
-
import { ConditionValue, RelativeTimeValue } from './condition-values';
|
4
|
-
import { Coordinator } from './enums';
|
5
|
-
export declare class Condition extends ConditionAbstract {
|
6
|
-
field: ConditionField;
|
7
|
-
operator: string;
|
8
|
-
value: ConditionValue | RelativeTimeValue;
|
9
|
-
constructor(field: ConditionField, operator: string, value: ConditionValue | RelativeTimeValue, coordinator?: Coordinator);
|
10
|
-
asFirstCondition(): this;
|
11
|
-
conditionString(): string;
|
12
|
-
conditionExpression(): any;
|
13
|
-
clone(): Condition;
|
14
|
-
}
|
15
|
-
//# sourceMappingURL=condition.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,qBAAa,SAAU,SAAQ,iBAAiB;IAC9C,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,cAAc,GAAG,iBAAiB,CAAA;gBAGvC,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,cAAc,GAAG,iBAAiB,EACzC,WAAW,CAAC,EAAE,WAAW;IAmB3B,gBAAgB;IAKhB,eAAe;IAMf,mBAAmB;IASnB,KAAK;CAQN"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
export { getExpression, getOperatorConfig, getOperatorNames, absoluteDateOrTimeOperatorNames, relativeDateOrTimeOperatorNames } from './condition-operators';
|
2
|
-
export { timeUnits, dateUnits, dateTimeUnits, ConditionValue, DateDirections, RelativeTimeValue, conditionValueFrom } from './condition-values';
|
3
|
-
export { ConditionField } from './condition-field';
|
4
|
-
export { Condition } from './condition';
|
5
|
-
export { ConditionRef } from './condition-ref';
|
6
|
-
export { ConditionGroup } from './condition-group';
|
7
|
-
export { ConditionsModel } from './condition-model';
|
8
|
-
export { ConditionGroupDef } from './condition-group-def';
|
9
|
-
export { toExpression, toPresentationString } from './helpers';
|
10
|
-
export { Coordinator } from './enums';
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/conditions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { Condition } from './condition';
|
2
|
-
import { ConditionRef } from './condition-ref';
|
3
|
-
import { ConditionGroup } from './condition-group';
|
4
|
-
export type ConditionsArray = (Condition | ConditionGroup | ConditionRef)[];
|
5
|
-
export type DateTimeUnitValues = 'years' | 'months' | 'days' | 'hours' | 'minutes' | 'seconds';
|
6
|
-
export type DateUnits = {
|
7
|
-
YEARS: {
|
8
|
-
display: 'year(s)';
|
9
|
-
value: 'years';
|
10
|
-
};
|
11
|
-
MONTHS: {
|
12
|
-
display: 'month(s)';
|
13
|
-
value: 'months';
|
14
|
-
};
|
15
|
-
DAYS: {
|
16
|
-
display: 'day(s)';
|
17
|
-
value: 'days';
|
18
|
-
};
|
19
|
-
};
|
20
|
-
export type TimeUnits = {
|
21
|
-
HOURS: {
|
22
|
-
display: 'hour(s)';
|
23
|
-
value: 'hours';
|
24
|
-
};
|
25
|
-
MINUTES: {
|
26
|
-
display: 'minute(s)';
|
27
|
-
value: 'minutes';
|
28
|
-
};
|
29
|
-
SECONDS: {
|
30
|
-
display: 'second(s)';
|
31
|
-
value: 'seconds';
|
32
|
-
};
|
33
|
-
};
|
34
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conditions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,eAAe,GAAG,CAAC,SAAS,GAAG,cAAc,GAAG,YAAY,CAAC,EAAE,CAAA;AAE3E,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,CAAA;AAEb,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE;QAAE,OAAO,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAA;IAC7C,MAAM,EAAE;QAAE,OAAO,EAAE,UAAU,CAAC;QAAC,KAAK,EAAE,QAAQ,CAAA;KAAE,CAAA;IAChD,IAAI,EAAE;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE;QAAE,OAAO,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAA;IAC7C,OAAO,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,CAAA;IACnD,OAAO,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,CAAA;CACpD,CAAA"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Condition } from '../conditions/condition';
|
2
|
-
export type ConditionWrapperValue = string | {
|
3
|
-
name: string;
|
4
|
-
conditions: Condition[];
|
5
|
-
};
|
6
|
-
export type ConditionRawData = {
|
7
|
-
name: string;
|
8
|
-
displayName: string;
|
9
|
-
value: ConditionWrapperValue;
|
10
|
-
};
|
11
|
-
export declare class ConditionsWrapper {
|
12
|
-
name: string;
|
13
|
-
displayName: string;
|
14
|
-
value: ConditionWrapperValue;
|
15
|
-
constructor(rawData: ConditionRawData);
|
16
|
-
get expression(): string;
|
17
|
-
clone(): ConditionsWrapper;
|
18
|
-
}
|
19
|
-
//# sourceMappingURL=conditions-wrapper.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"conditions-wrapper.d.ts","sourceRoot":"","sources":["../../../src/data-model/conditions-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAGnD,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB,CAAA;AAEL,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,qBAAqB,CAAA;CAC7B,CAAA;AAED,qBAAa,iBAAiB;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,qBAAqB,CAAA;gBAEhB,OAAO,EAAE,gBAAgB;IAOrC,IAAI,UAAU,WAQb;IAED,KAAK,IAAI,iBAAiB;CAG3B"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { InputWrapper } from './input-wrapper';
|
2
|
-
export { ConditionsWrapper, ConditionRawData } from './conditions-wrapper';
|
3
|
-
export { Page, Item, Section, List, ConfirmationPage } from './types';
|
4
|
-
export { OutputType } from './enums';
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data-model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input-wrapper.d.ts","sourceRoot":"","sources":["../../../src/data-model/input-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,qBAAa,YAAY;;IACvB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAY;IACpC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAY;IACrC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAY;IACpC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAEhC,IAAI,EAAE,IAAI,CAAA;gBAGR,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE;IAe/D,IAAI,WAAW,IAAI,MAAM,GAAG,SAAS,CAQpC;CACF"}
|
@@ -1,149 +0,0 @@
|
|
1
|
-
import { ConditionRawData } from '.';
|
2
|
-
import { ComponentDef } from '../components/types';
|
3
|
-
import { OutputType } from './enums';
|
4
|
-
type Toggleable<T> = boolean | T;
|
5
|
-
export interface Next {
|
6
|
-
path: string;
|
7
|
-
condition?: string;
|
8
|
-
}
|
9
|
-
export type Link = Next;
|
10
|
-
export interface Page {
|
11
|
-
title: string;
|
12
|
-
path: string;
|
13
|
-
controller: string;
|
14
|
-
components?: ComponentDef[];
|
15
|
-
section: string;
|
16
|
-
next?: {
|
17
|
-
path: string;
|
18
|
-
condition?: string;
|
19
|
-
}[];
|
20
|
-
}
|
21
|
-
export interface RepeatingFieldPage extends Page {
|
22
|
-
controller: 'RepeatingFieldPageController';
|
23
|
-
options: {
|
24
|
-
summaryDisplayMode?: {
|
25
|
-
samePage?: boolean;
|
26
|
-
separatePage?: boolean;
|
27
|
-
hideRowTitles?: boolean;
|
28
|
-
};
|
29
|
-
customText?: {
|
30
|
-
separatePageTitle?: string;
|
31
|
-
};
|
32
|
-
};
|
33
|
-
}
|
34
|
-
export interface Section {
|
35
|
-
name: string;
|
36
|
-
title: string;
|
37
|
-
hideTitle: boolean;
|
38
|
-
}
|
39
|
-
export interface Item {
|
40
|
-
text: string;
|
41
|
-
value: string | number | boolean;
|
42
|
-
description?: string;
|
43
|
-
condition?: string;
|
44
|
-
}
|
45
|
-
export interface List {
|
46
|
-
name: string;
|
47
|
-
title: string;
|
48
|
-
type: 'string' | 'number' | 'boolean';
|
49
|
-
items: Item[];
|
50
|
-
}
|
51
|
-
export interface Feedback {
|
52
|
-
feedbackForm?: boolean;
|
53
|
-
url?: string;
|
54
|
-
emailAddress?: string;
|
55
|
-
}
|
56
|
-
export type PhaseBanner = {
|
57
|
-
phase?: 'alpha' | 'beta';
|
58
|
-
feedbackUrl?: string;
|
59
|
-
};
|
60
|
-
export type MultipleApiKeys = {
|
61
|
-
test?: string;
|
62
|
-
production?: string;
|
63
|
-
};
|
64
|
-
export type EmailOutputConfiguration = {
|
65
|
-
emailAddress: string;
|
66
|
-
};
|
67
|
-
export type NotifyOutputConfiguration = {
|
68
|
-
apiKey: string;
|
69
|
-
templateId: string;
|
70
|
-
emailField: string;
|
71
|
-
personalisation: string[];
|
72
|
-
personalisationFieldCustomisation?: {
|
73
|
-
[personalisationName: string]: string[];
|
74
|
-
};
|
75
|
-
addReferencesToPersonalisation?: boolean;
|
76
|
-
emailReplyToIdConfiguration?: {
|
77
|
-
emailReplyToId: string;
|
78
|
-
condition?: string | undefined;
|
79
|
-
}[];
|
80
|
-
};
|
81
|
-
export type WebhookOutputConfiguration = {
|
82
|
-
url: string;
|
83
|
-
};
|
84
|
-
export type OutputConfiguration = EmailOutputConfiguration | NotifyOutputConfiguration | WebhookOutputConfiguration;
|
85
|
-
export type Output = {
|
86
|
-
name: string;
|
87
|
-
title: string;
|
88
|
-
type: OutputType;
|
89
|
-
outputConfiguration: OutputConfiguration;
|
90
|
-
};
|
91
|
-
export type ConfirmationPage = {
|
92
|
-
customText: {
|
93
|
-
title: string;
|
94
|
-
paymentSkipped: Toggleable<string>;
|
95
|
-
nextSteps: Toggleable<string>;
|
96
|
-
};
|
97
|
-
components: ComponentDef[];
|
98
|
-
};
|
99
|
-
export type PaymentSkippedWarningPage = {
|
100
|
-
customText: {
|
101
|
-
title: string;
|
102
|
-
caption: string;
|
103
|
-
body: string;
|
104
|
-
};
|
105
|
-
};
|
106
|
-
export type SpecialPages = {
|
107
|
-
confirmationPage?: ConfirmationPage;
|
108
|
-
paymentSkippedWarningPage?: PaymentSkippedWarningPage;
|
109
|
-
};
|
110
|
-
export declare function isMultipleApiKey(payApiKey: string | MultipleApiKeys | undefined): payApiKey is MultipleApiKeys;
|
111
|
-
export type Fee = {
|
112
|
-
description: string;
|
113
|
-
amount: number;
|
114
|
-
multiplier?: string;
|
115
|
-
condition?: string;
|
116
|
-
prefix?: string;
|
117
|
-
};
|
118
|
-
export type FeeOptions = {
|
119
|
-
paymentReferenceFormat?: string;
|
120
|
-
payReturnUrl?: string;
|
121
|
-
allowSubmissionWithoutPayment: boolean;
|
122
|
-
maxAttempts: number;
|
123
|
-
customPayErrorMessage?: string;
|
124
|
-
showPaymentSkippedWarningPage: boolean;
|
125
|
-
};
|
126
|
-
/**
|
127
|
-
* `FormDefinition` is a typescript representation of `Schema`
|
128
|
-
*/
|
129
|
-
export type FormDefinition = {
|
130
|
-
pages: Array<Page | RepeatingFieldPage>;
|
131
|
-
conditions: ConditionRawData[];
|
132
|
-
lists: List[];
|
133
|
-
sections: Section[];
|
134
|
-
startPage?: Page['path'] | undefined;
|
135
|
-
name?: string | undefined;
|
136
|
-
feedback?: Feedback;
|
137
|
-
phaseBanner?: PhaseBanner;
|
138
|
-
fees: Fee[];
|
139
|
-
skipSummary?: boolean | undefined;
|
140
|
-
outputs: Output[];
|
141
|
-
declaration?: string | undefined;
|
142
|
-
metadata?: Record<string, any>;
|
143
|
-
payApiKey?: string | MultipleApiKeys | undefined;
|
144
|
-
specialPages?: SpecialPages;
|
145
|
-
paymentReferenceFormat?: string;
|
146
|
-
feeOptions: FeeOptions;
|
147
|
-
};
|
148
|
-
export {};
|
149
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/data-model/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,KAAK,UAAU,CAAC,CAAC,IAAI,OAAO,GAAG,CAAC,CAAA;AAEhC,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AACD,MAAM,MAAM,IAAI,GAAG,IAAI,CAAA;AAEvB,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAA;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC9C;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI;IAC9C,UAAU,EAAE,8BAA8B,CAAA;IAC1C,OAAO,EAAE;QACP,kBAAkB,CAAC,EAAE;YACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;YAClB,YAAY,CAAC,EAAE,OAAO,CAAA;YACtB,aAAa,CAAC,EAAE,OAAO,CAAA;SACxB,CAAA;QACD,UAAU,CAAC,EAAE;Y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ceRoot":"","sources":["../../../src/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/dist/browser/index.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
export { Schema, componentSchema } from './schema';
|
2
|
-
export { ConditionRawData, ConditionsWrapper, OutputType } from './data-model';
|
3
|
-
export { Logger } from './utils/logger';
|
4
|
-
export { FormConfiguration } from './form';
|
5
|
-
export { ComponentTypeEnum, ComponentTypes, ConditionalComponentTypes } from './components';
|
6
|
-
export * from './conditions';
|
7
|
-
export * from './utils/helpers';
|
8
|
-
export * from './migration';
|
9
|
-
export type * from './components/types';
|
10
|
-
export type * from './data-model/types';
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,yBAAyB,EAC1B,MAAM,cAAc,CAAA;AACrB,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,oBAAoB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA"}
|