@defra/forms-model 3.0.10 → 3.0.12
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/module/components/component-types.js +1 -5
- package/dist/module/components/component-types.js.map +1 -1
- package/dist/module/components/conditional-component-types.js +1 -5
- package/dist/module/components/conditional-component-types.js.map +1 -1
- package/dist/module/components/enums.js +1 -5
- package/dist/module/components/enums.js.map +1 -1
- package/dist/module/components/index.js +3 -24
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/types.js +1 -1
- package/dist/module/conditions/condition-abstract.js +3 -8
- package/dist/module/conditions/condition-abstract.js.map +1 -1
- package/dist/module/conditions/condition-field.js +3 -8
- package/dist/module/conditions/condition-field.js.map +1 -1
- package/dist/module/conditions/condition-group-def.js +1 -6
- package/dist/module/conditions/condition-group-def.js.map +1 -1
- package/dist/module/conditions/condition-group.js +4 -9
- package/dist/module/conditions/condition-group.js.map +1 -1
- package/dist/module/conditions/condition-model.js +20 -25
- package/dist/module/conditions/condition-model.js.map +1 -1
- package/dist/module/conditions/condition-operators.js +15 -23
- package/dist/module/conditions/condition-operators.js.map +1 -1
- package/dist/module/conditions/condition-ref.js +2 -7
- package/dist/module/conditions/condition-ref.js.map +1 -1
- package/dist/module/conditions/condition-value-abstract.js +3 -8
- package/dist/module/conditions/condition-value-abstract.js.map +1 -1
- package/dist/module/conditions/condition-value-registration.js +1 -6
- package/dist/module/conditions/condition-value-registration.js.map +1 -1
- package/dist/module/conditions/condition-values.js +12 -20
- package/dist/module/conditions/condition-values.js.map +1 -1
- package/dist/module/conditions/condition.js +9 -14
- package/dist/module/conditions/condition.js.map +1 -1
- package/dist/module/conditions/enums.js +1 -5
- package/dist/module/conditions/enums.js.map +1 -1
- package/dist/module/conditions/helpers.js +2 -7
- package/dist/module/conditions/helpers.js.map +1 -1
- package/dist/module/conditions/index.js +10 -139
- package/dist/module/conditions/index.js.map +1 -1
- package/dist/module/conditions/inline-condition-model.js +15 -26
- package/dist/module/conditions/inline-condition-model.js.map +1 -1
- package/dist/module/conditions/inline-condition-operators.js +15 -23
- package/dist/module/conditions/inline-condition-operators.js.map +1 -1
- package/dist/module/conditions/inline-condition-values.js +9 -17
- package/dist/module/conditions/inline-condition-values.js.map +1 -1
- package/dist/module/conditions/types.js +1 -1
- package/dist/module/conditions/types.js.map +1 -1
- package/dist/module/data-model/conditions-wrapper.js +3 -8
- package/dist/module/data-model/conditions-wrapper.js.map +1 -1
- package/dist/module/data-model/enums.js +1 -5
- package/dist/module/data-model/enums.js.map +1 -1
- package/dist/module/data-model/index.js +3 -24
- package/dist/module/data-model/index.js.map +1 -1
- package/dist/module/data-model/input-wrapper.js +3 -8
- package/dist/module/data-model/input-wrapper.js.map +1 -1
- package/dist/module/data-model/types.js +1 -5
- package/dist/module/data-model/types.js.map +1 -1
- package/dist/module/form/form-configuration.js +1 -6
- package/dist/module/form/form-configuration.js.map +1 -1
- package/dist/module/form/index.js +1 -10
- package/dist/module/form/index.js.map +1 -1
- package/dist/module/index.js +8 -91
- package/dist/module/index.js.map +1 -1
- package/dist/module/migration/index.js +1 -10
- package/dist/module/migration/index.js.map +1 -1
- package/dist/module/migration/migration.0-2.js +1 -5
- package/dist/module/migration/migration.0-2.js.map +1 -1
- package/dist/module/migration/migration.1-2.js +3 -6
- package/dist/module/migration/migration.1-2.js.map +1 -1
- package/dist/module/migration/types.js +1 -1
- package/dist/module/migration/whichMigrations.js +5 -9
- package/dist/module/migration/whichMigrations.js.map +1 -1
- package/dist/module/schema/index.js +1 -16
- package/dist/module/schema/index.js.map +1 -1
- package/dist/module/schema/schema.js +163 -167
- package/dist/module/schema/schema.js.map +1 -1
- package/dist/module/utils/helpers.js +5 -13
- package/dist/module/utils/helpers.js.map +1 -1
- package/dist/module/utils/logger.js +1 -6
- package/dist/module/utils/logger.js.map +1 -1
- package/dist/types/components/component-types.d.ts +1 -1
- package/dist/types/components/component-types.d.ts.map +1 -1
- package/dist/types/components/conditional-component-types.d.ts +1 -1
- package/dist/types/components/conditional-component-types.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +3 -3
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/conditions/condition-abstract.d.ts +1 -1
- package/dist/types/conditions/condition-abstract.d.ts.map +1 -1
- package/dist/types/conditions/condition-field.d.ts +1 -1
- package/dist/types/conditions/condition-field.d.ts.map +1 -1
- package/dist/types/conditions/condition-group-def.d.ts +2 -2
- package/dist/types/conditions/condition-group-def.d.ts.map +1 -1
- package/dist/types/conditions/condition-group.d.ts +2 -2
- package/dist/types/conditions/condition-group.d.ts.map +1 -1
- package/dist/types/conditions/condition-model.d.ts +5 -5
- package/dist/types/conditions/condition-model.d.ts.map +1 -1
- package/dist/types/conditions/condition-operators.d.ts +2 -2
- package/dist/types/conditions/condition-operators.d.ts.map +1 -1
- package/dist/types/conditions/condition-ref.d.ts +2 -2
- package/dist/types/conditions/condition-ref.d.ts.map +1 -1
- package/dist/types/conditions/condition-value-abstract.d.ts +1 -1
- package/dist/types/conditions/condition-value-abstract.d.ts.map +1 -1
- package/dist/types/conditions/condition-values.d.ts +3 -3
- package/dist/types/conditions/condition-values.d.ts.map +1 -1
- package/dist/types/conditions/condition.d.ts +4 -4
- package/dist/types/conditions/condition.d.ts.map +1 -1
- package/dist/types/conditions/index.d.ts +10 -10
- package/dist/types/conditions/index.d.ts.map +1 -1
- package/dist/types/conditions/types.d.ts +3 -3
- package/dist/types/conditions/types.d.ts.map +1 -1
- package/dist/types/data-model/conditions-wrapper.d.ts +1 -1
- package/dist/types/data-model/conditions-wrapper.d.ts.map +1 -1
- package/dist/types/data-model/index.d.ts +3 -3
- package/dist/types/data-model/index.d.ts.map +1 -1
- package/dist/types/data-model/input-wrapper.d.ts +2 -2
- package/dist/types/data-model/input-wrapper.d.ts.map +1 -1
- package/dist/types/data-model/types.d.ts +3 -3
- package/dist/types/data-model/types.d.ts.map +1 -1
- package/dist/types/form/index.d.ts +1 -1
- package/dist/types/form/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +11 -11
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/migration/index.d.ts +1 -1
- package/dist/types/migration/index.d.ts.map +1 -1
- package/dist/types/migration/migration.0-2.d.ts +1 -1
- package/dist/types/migration/migration.0-2.d.ts.map +1 -1
- package/dist/types/migration/migration.1-2.d.ts +1 -1
- package/dist/types/migration/migration.1-2.d.ts.map +1 -1
- package/dist/types/migration/whichMigrations.d.ts +1 -1
- package/dist/types/migration/whichMigrations.d.ts.map +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/components/component-types.ts +1 -1
- package/src/components/conditional-component-types.ts +1 -1
- package/src/components/index.ts +3 -3
- package/src/conditions/condition-abstract.ts +1 -1
- package/src/conditions/condition-field.ts +2 -2
- 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 +6 -3
- package/src/conditions/condition-ref.ts +2 -2
- package/src/conditions/condition-value-abstract.ts +1 -1
- package/src/conditions/condition-values.ts +3 -3
- package/src/conditions/condition.ts +6 -6
- package/src/conditions/index.ts +10 -10
- package/src/conditions/inline-condition-model.ts +3 -3
- package/src/conditions/inline-condition-operators.ts +1 -1
- package/src/conditions/types.ts +3 -3
- package/src/data-model/conditions-wrapper.ts +2 -2
- package/src/data-model/index.ts +3 -3
- package/src/data-model/input-wrapper.ts +3 -3
- package/src/data-model/types.ts +3 -3
- package/src/form/index.ts +1 -1
- package/src/index.ts +11 -11
- 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.js +0 -220
- package/dist/browser/components/component-types.js.map +0 -1
- package/dist/browser/components/conditional-component-types.js +0 -28
- package/dist/browser/components/conditional-component-types.js.map +0 -1
- package/dist/browser/components/enums.js +0 -46
- package/dist/browser/components/enums.js.map +0 -1
- package/dist/browser/components/index.js +0 -36
- package/dist/browser/components/index.js.map +0 -1
- package/dist/browser/components/types.js +0 -16
- package/dist/browser/components/types.js.map +0 -1
- package/dist/browser/conditions/condition-abstract.js +0 -62
- package/dist/browser/conditions/condition-abstract.js.map +0 -1
- package/dist/browser/conditions/condition-field.js +0 -45
- package/dist/browser/conditions/condition-field.js.map +0 -1
- package/dist/browser/conditions/condition-group-def.js +0 -45
- package/dist/browser/conditions/condition-group-def.js.map +0 -1
- package/dist/browser/conditions/condition-group.js +0 -64
- package/dist/browser/conditions/condition-group.js.map +0 -1
- package/dist/browser/conditions/condition-model.js +0 -214
- package/dist/browser/conditions/condition-model.js.map +0 -1
- package/dist/browser/conditions/condition-operators.js +0 -132
- package/dist/browser/conditions/condition-operators.js.map +0 -1
- package/dist/browser/conditions/condition-ref.js +0 -51
- package/dist/browser/conditions/condition-ref.js.map +0 -1
- package/dist/browser/conditions/condition-value-abstract.js +0 -41
- package/dist/browser/conditions/condition-value-abstract.js.map +0 -1
- package/dist/browser/conditions/condition-value-registration.js +0 -37
- package/dist/browser/conditions/condition-value-registration.js.map +0 -1
- package/dist/browser/conditions/condition-values.js +0 -127
- package/dist/browser/conditions/condition-values.js.map +0 -1
- package/dist/browser/conditions/condition.js +0 -56
- package/dist/browser/conditions/condition.js.map +0 -1
- package/dist/browser/conditions/enums.js +0 -24
- package/dist/browser/conditions/enums.js.map +0 -1
- package/dist/browser/conditions/helpers.js +0 -26
- package/dist/browser/conditions/helpers.js.map +0 -1
- package/dist/browser/conditions/index.js +0 -144
- package/dist/browser/conditions/index.js.map +0 -1
- package/dist/browser/conditions/inline-condition-model.js +0 -418
- package/dist/browser/conditions/inline-condition-model.js.map +0 -1
- package/dist/browser/conditions/inline-condition-operators.js +0 -132
- package/dist/browser/conditions/inline-condition-operators.js.map +0 -1
- package/dist/browser/conditions/inline-condition-values.js +0 -159
- package/dist/browser/conditions/inline-condition-values.js.map +0 -1
- package/dist/browser/conditions/types.js +0 -16
- package/dist/browser/conditions/types.js.map +0 -1
- package/dist/browser/data-model/conditions-wrapper.js +0 -49
- package/dist/browser/data-model/conditions-wrapper.js.map +0 -1
- package/dist/browser/data-model/enums.js +0 -25
- package/dist/browser/data-model/enums.js.map +0 -1
- package/dist/browser/data-model/index.js +0 -36
- package/dist/browser/data-model/index.js.map +0 -1
- package/dist/browser/data-model/input-wrapper.js +0 -49
- package/dist/browser/data-model/input-wrapper.js.map +0 -1
- package/dist/browser/data-model/types.js +0 -27
- package/dist/browser/data-model/types.js.map +0 -1
- package/dist/browser/form/form-configuration.js +0 -38
- package/dist/browser/form/form-configuration.js.map +0 -1
- package/dist/browser/form/index.js +0 -24
- package/dist/browser/form/index.js.map +0 -1
- package/dist/browser/index.js +0 -98
- package/dist/browser/index.js.map +0 -1
- package/dist/browser/migration/index.js +0 -24
- package/dist/browser/migration/index.js.map +0 -1
- package/dist/browser/migration/migration.0-2.js +0 -65
- package/dist/browser/migration/migration.0-2.js.map +0 -1
- package/dist/browser/migration/migration.1-2.js +0 -108
- package/dist/browser/migration/migration.1-2.js.map +0 -1
- package/dist/browser/migration/types.js +0 -16
- package/dist/browser/migration/types.js.map +0 -1
- package/dist/browser/migration/whichMigrations.js +0 -38
- package/dist/browser/migration/whichMigrations.js.map +0 -1
- package/dist/browser/schema/index.js +0 -30
- package/dist/browser/schema/index.js.map +0 -1
- package/dist/browser/schema/schema.js +0 -255
- package/dist/browser/schema/schema.js.map +0 -1
- package/dist/browser/utils/helpers.js +0 -48
- package/dist/browser/utils/helpers.js.map +0 -1
- package/dist/browser/utils/logger.js +0 -46
- package/dist/browser/utils/logger.js.map +0 -1
@@ -1,159 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports);
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports);
|
11
|
-
global.inlineConditionValues = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
_exports.timeUnits = _exports.relativeTimeValueType = _exports.dateUnits = _exports.dateTimeUnits = _exports.dateDirections = _exports.RelativeTimeValue = _exports.ConditionValue = _exports.AbstractConditionValue = void 0;
|
18
|
-
_exports.valueFrom = valueFrom;
|
19
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
21
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
22
|
-
const conditionValueFactories = {};
|
23
|
-
class Registration {
|
24
|
-
constructor(type, factory) {
|
25
|
-
_defineProperty(this, "type", void 0);
|
26
|
-
conditionValueFactories[type] = factory;
|
27
|
-
this.type = type;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
class AbstractConditionValue {
|
31
|
-
constructor(registration) {
|
32
|
-
_defineProperty(this, "type", void 0);
|
33
|
-
if (new.target === AbstractConditionValue) {
|
34
|
-
throw new TypeError('Cannot construct ConditionValue instances directly');
|
35
|
-
}
|
36
|
-
if (!(registration instanceof Registration)) {
|
37
|
-
throw new TypeError('You must register your value type! Call registerValueType!');
|
38
|
-
}
|
39
|
-
this.type = registration.type;
|
40
|
-
}
|
41
|
-
toPresentationString() {}
|
42
|
-
toExpression() {}
|
43
|
-
}
|
44
|
-
_exports.AbstractConditionValue = AbstractConditionValue;
|
45
|
-
const valueType = registerValueType('Value', obj => ConditionValue.from(obj));
|
46
|
-
class ConditionValue extends AbstractConditionValue {
|
47
|
-
constructor(value, display) {
|
48
|
-
super(valueType);
|
49
|
-
_defineProperty(this, "value", void 0);
|
50
|
-
_defineProperty(this, "display", void 0);
|
51
|
-
if (!value || typeof value !== 'string') {
|
52
|
-
throw Error(`value ${value} is not valid`);
|
53
|
-
}
|
54
|
-
if (display && typeof display !== 'string') {
|
55
|
-
throw Error(`display ${display} is not valid`);
|
56
|
-
}
|
57
|
-
this.value = value;
|
58
|
-
this.display = display || value;
|
59
|
-
}
|
60
|
-
toPresentationString() {
|
61
|
-
return this.display;
|
62
|
-
}
|
63
|
-
toExpression() {
|
64
|
-
return this.value;
|
65
|
-
}
|
66
|
-
static from(obj) {
|
67
|
-
return new ConditionValue(obj.value, obj.display);
|
68
|
-
}
|
69
|
-
clone() {
|
70
|
-
return ConditionValue.from(this);
|
71
|
-
}
|
72
|
-
}
|
73
|
-
_exports.ConditionValue = ConditionValue;
|
74
|
-
const dateDirections = _exports.dateDirections = {
|
75
|
-
FUTURE: 'in the future',
|
76
|
-
PAST: 'in the past'
|
77
|
-
};
|
78
|
-
const dateUnits = _exports.dateUnits = {
|
79
|
-
YEARS: {
|
80
|
-
display: 'year(s)',
|
81
|
-
value: 'years'
|
82
|
-
},
|
83
|
-
MONTHS: {
|
84
|
-
display: 'month(s)',
|
85
|
-
value: 'months'
|
86
|
-
},
|
87
|
-
DAYS: {
|
88
|
-
display: 'day(s)',
|
89
|
-
value: 'days'
|
90
|
-
}
|
91
|
-
};
|
92
|
-
const timeUnits = _exports.timeUnits = {
|
93
|
-
HOURS: {
|
94
|
-
display: 'hour(s)',
|
95
|
-
value: 'hours'
|
96
|
-
},
|
97
|
-
MINUTES: {
|
98
|
-
display: 'minute(s)',
|
99
|
-
value: 'minutes'
|
100
|
-
},
|
101
|
-
SECONDS: {
|
102
|
-
display: 'second(s)',
|
103
|
-
value: 'seconds'
|
104
|
-
}
|
105
|
-
};
|
106
|
-
const dateTimeUnits = _exports.dateTimeUnits = Object.assign({}, dateUnits, timeUnits);
|
107
|
-
const relativeTimeValueType = _exports.relativeTimeValueType = registerValueType('RelativeTime', obj => RelativeTimeValue.from(obj));
|
108
|
-
class RelativeTimeValue extends AbstractConditionValue {
|
109
|
-
constructor(timePeriod, timeUnit, direction, timeOnly = false) {
|
110
|
-
super(relativeTimeValueType);
|
111
|
-
_defineProperty(this, "timePeriod", void 0);
|
112
|
-
_defineProperty(this, "timeUnit", void 0);
|
113
|
-
_defineProperty(this, "direction", void 0);
|
114
|
-
_defineProperty(this, "timeOnly", void 0);
|
115
|
-
if (typeof timePeriod !== 'string') {
|
116
|
-
throw Error(`time period ${timePeriod} is not valid`);
|
117
|
-
}
|
118
|
-
if (!Object.values(dateTimeUnits).map(it => it.value).includes(timeUnit)) {
|
119
|
-
throw Error(`time unit ${timeUnit} is not valid`);
|
120
|
-
}
|
121
|
-
if (!Object.values(dateDirections).includes(direction)) {
|
122
|
-
throw Error(`direction ${direction} is not valid`);
|
123
|
-
}
|
124
|
-
this.timePeriod = timePeriod;
|
125
|
-
this.timeUnit = timeUnit;
|
126
|
-
this.direction = direction;
|
127
|
-
this.timeOnly = timeOnly;
|
128
|
-
}
|
129
|
-
toPresentationString() {
|
130
|
-
return `${this.timePeriod} ${this.timeUnit} ${this.direction}`;
|
131
|
-
}
|
132
|
-
toExpression() {
|
133
|
-
const timePeriod = this.direction === dateDirections.PAST ? 0 - Number(this.timePeriod) : this.timePeriod;
|
134
|
-
return this.timeOnly ? `timeForComparison(${timePeriod}, '${this.timeUnit}')` : `dateForComparison(${timePeriod}, '${this.timeUnit}')`;
|
135
|
-
}
|
136
|
-
static from(obj) {
|
137
|
-
return new RelativeTimeValue(obj.timePeriod, obj.timeUnit, obj.direction, obj.timeOnly);
|
138
|
-
}
|
139
|
-
clone() {
|
140
|
-
return RelativeTimeValue.from(this);
|
141
|
-
}
|
142
|
-
}
|
143
|
-
|
144
|
-
/**
|
145
|
-
* All value types should call this, and should be located in this file.
|
146
|
-
* Furthermore the types should be registered without the classes needing to be instantiated.
|
147
|
-
*
|
148
|
-
* Otherwise we can't guarantee they've been registered for deserialization before
|
149
|
-
* valueFrom is called
|
150
|
-
*/
|
151
|
-
_exports.RelativeTimeValue = RelativeTimeValue;
|
152
|
-
function registerValueType(type, factory) {
|
153
|
-
return new Registration(type, factory);
|
154
|
-
}
|
155
|
-
function valueFrom(obj) {
|
156
|
-
return conditionValueFactories[obj.type](obj);
|
157
|
-
}
|
158
|
-
});
|
159
|
-
//# sourceMappingURL=inline-condition-values.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"inline-condition-values.js","names":["conditionValueFactories","Registration","constructor","type","factory","_defineProperty","AbstractConditionValue","registration","new","target","TypeError","toPresentationString","toExpression","_exports","valueType","registerValueType","obj","ConditionValue","from","value","display","Error","clone","dateDirections","FUTURE","PAST","dateUnits","YEARS","MONTHS","DAYS","timeUnits","HOURS","MINUTES","SECONDS","dateTimeUnits","Object","assign","relativeTimeValueType","RelativeTimeValue","timePeriod","timeUnit","direction","timeOnly","values","map","it","includes","Number","valueFrom"],"sources":["../../../src/conditions/inline-condition-values.ts"],"sourcesContent":["const conditionValueFactories = {}\n\nclass Registration {\n type\n\n constructor(type, factory) {\n conditionValueFactories[type] = factory\n this.type = type\n }\n}\n\nexport class AbstractConditionValue {\n type\n\n constructor(registration) {\n if (new.target === AbstractConditionValue) {\n throw new TypeError('Cannot construct ConditionValue instances directly')\n }\n if (!(registration instanceof Registration)) {\n throw new TypeError(\n 'You must register your value type! Call registerValueType!'\n )\n }\n this.type = registration.type\n }\n\n toPresentationString() {}\n toExpression() {}\n}\n\nconst valueType = registerValueType('Value', (obj) => ConditionValue.from(obj))\nexport class ConditionValue extends AbstractConditionValue {\n value\n display\n\n constructor(value, display) {\n super(valueType)\n if (!value || typeof value !== 'string') {\n throw Error(`value ${value} is not valid`)\n }\n if (display && typeof display !== 'string') {\n throw Error(`display ${display} is not valid`)\n }\n this.value = value\n this.display = display || value\n }\n\n toPresentationString() {\n return this.display\n }\n\n toExpression() {\n return this.value\n }\n\n static from(obj) {\n return new ConditionValue(obj.value, obj.display)\n }\n\n clone() {\n return ConditionValue.from(this)\n }\n}\n\nexport const dateDirections = {\n FUTURE: 'in the future',\n PAST: 'in the past'\n}\n\nexport const dateUnits = {\n YEARS: { display: 'year(s)', value: 'years' },\n MONTHS: { display: 'month(s)', value: 'months' },\n DAYS: { display: 'day(s)', value: 'days' }\n}\nexport const timeUnits = {\n HOURS: { display: 'hour(s)', value: 'hours' },\n MINUTES: { display: 'minute(s)', value: 'minutes' },\n SECONDS: { display: 'second(s)', value: 'seconds' }\n}\nexport const dateTimeUnits = Object.assign({}, dateUnits, timeUnits)\n\nexport const relativeTimeValueType = registerValueType('RelativeTime', (obj) =>\n RelativeTimeValue.from(obj)\n)\nexport class RelativeTimeValue extends AbstractConditionValue {\n timePeriod\n timeUnit\n direction\n timeOnly\n\n constructor(timePeriod, timeUnit, direction, timeOnly = false) {\n super(relativeTimeValueType)\n if (typeof timePeriod !== 'string') {\n throw Error(`time period ${timePeriod} is not valid`)\n }\n if (\n !Object.values(dateTimeUnits)\n .map((it) => it.value)\n .includes(timeUnit)\n ) {\n throw Error(`time unit ${timeUnit} is not valid`)\n }\n if (!Object.values(dateDirections).includes(direction)) {\n throw Error(`direction ${direction} is not valid`)\n }\n this.timePeriod = timePeriod\n this.timeUnit = timeUnit\n this.direction = direction\n this.timeOnly = timeOnly\n }\n\n toPresentationString() {\n return `${this.timePeriod} ${this.timeUnit} ${this.direction}`\n }\n\n toExpression() {\n const timePeriod =\n this.direction === dateDirections.PAST\n ? 0 - Number(this.timePeriod)\n : this.timePeriod\n return this.timeOnly\n ? `timeForComparison(${timePeriod}, '${this.timeUnit}')`\n : `dateForComparison(${timePeriod}, '${this.timeUnit}')`\n }\n\n static from(obj) {\n return new RelativeTimeValue(\n obj.timePeriod,\n obj.timeUnit,\n obj.direction,\n obj.timeOnly\n )\n }\n\n clone() {\n return RelativeTimeValue.from(this)\n }\n}\n\n/**\n * All value types should call this, and should be located in this file.\n * Furthermore the types should be registered without the classes needing to be instantiated.\n *\n * Otherwise we can't guarantee they've been registered for deserialization before\n * valueFrom is called\n */\nfunction registerValueType(type, factory) {\n return new Registration(type, factory)\n}\n\nexport function valueFrom(obj) {\n return conditionValueFactories[obj.type](obj)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAAA,MAAMA,uBAAuB,GAAG,CAAC,CAAC;EAElC,MAAMC,YAAY,CAAC;IAGjBC,WAAWA,CAACC,IAAI,EAAEC,OAAO,EAAE;MAAAC,eAAA;MACzBL,uBAAuB,CAACG,IAAI,CAAC,GAAGC,OAAO;MACvC,IAAI,CAACD,IAAI,GAAGA,IAAI;IAClB;EACF;EAEO,MAAMG,sBAAsB,CAAC;IAGlCJ,WAAWA,CAACK,YAAY,EAAE;MAAAF,eAAA;MACxB,IAAIG,GAAG,CAACC,MAAM,KAAKH,sBAAsB,EAAE;QACzC,MAAM,IAAII,SAAS,CAAC,oDAAoD,CAAC;MAC3E;MACA,IAAI,EAAEH,YAAY,YAAYN,YAAY,CAAC,EAAE;QAC3C,MAAM,IAAIS,SAAS,CACjB,4DACF,CAAC;MACH;MACA,IAAI,CAACP,IAAI,GAAGI,YAAY,CAACJ,IAAI;IAC/B;IAEAQ,oBAAoBA,CAAA,EAAG,CAAC;IACxBC,YAAYA,CAAA,EAAG,CAAC;EAClB;EAACC,QAAA,CAAAP,sBAAA,GAAAA,sBAAA;EAED,MAAMQ,SAAS,GAAGC,iBAAiB,CAAC,OAAO,EAAGC,GAAG,IAAKC,cAAc,CAACC,IAAI,CAACF,GAAG,CAAC,CAAC;EACxE,MAAMC,cAAc,SAASX,sBAAsB,CAAC;IAIzDJ,WAAWA,CAACiB,KAAK,EAAEC,OAAO,EAAE;MAC1B,KAA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AQ;MACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;MAC1B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IAC1B;IAEA/B,oBAAoBA,CAAA,EAAG;MACrB,OAAQ,GAAE,IAAI,CAAC4B,UAAW,IAAG,IAAI,CAACC,QAAS,IAAG,IAAI,CAACC,SAAU,EAAC;IAChE;IAEA7B,YAAYA,CAAA,EAAG;MACb,MAAM2B,UAAU,GACd,IAAI,CAACE,SAAS,KAAKlB,cAAc,CAACE,IAAI,GAClC,CAAC,GAAGsB,MAAM,CAAC,IAAI,CAACR,UAAU,CAAC,GAC3B,IAAI,CAACA,UAAU;MACrB,OAAO,IAAI,CAACG,QAAQ,GACf,qBAAoBH,UAAW,MAAK,IAAI,CAACC,QAAS,IAAG,GACrD,qBAAoBD,UAAW,MAAK,IAAI,CAACC,QAAS,IAAG;IAC5D;IAEA,OAAOtB,IAAIA,CAACF,GAAG,EAAE;MACf,OAAO,IAAIsB,iBAAiB,CAC1BtB,GAAG,CAACuB,UAAU,EACdvB,GAAG,CAACwB,QAAQ,EACZxB,GAAG,CAACyB,SAAS,EACbzB,GAAG,CAAC0B,QACN,CAAC;IACH;IAEApB,KAAKA,CAAA,EAAG;MACN,OAAOgB,iBAAiB,CAACpB,IAAI,CAAC,IAAI,CAAC;IACrC;EACF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;EANAL,QAAA,CAAAyB,iBAAA,GAAAA,iBAAA;EAOA,SAASvB,iBAAiBA,CAACZ,IAAI,EAAEC,OAAO,EAAE;IACxC,OAAO,IAAIH,YAAY,CAACE,IAAI,EAAEC,OAAO,CAAC;EACxC;EAEO,SAAS4C,SAASA,CAAChC,GAAG,EAAE;IAC7B,OAAOhB,uBAAuB,CAACgB,GAAG,CAACb,IAAI,CAAC,CAACa,GAAG,CAAC;EAC/C;AAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define([], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory();
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory();
|
11
|
-
global.types = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
14
|
-
"use strict";
|
15
|
-
});
|
16
|
-
//# sourceMappingURL=types.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/conditions/types.ts"],"sourcesContent":["import { type Condition } from '~/src/conditions/condition'\nimport { type ConditionRef } from '~/src/conditions/condition-ref'\nimport { type ConditionGroup } from '~/src/conditions/condition-group'\n\nexport type ConditionsArray = (Condition | ConditionGroup | ConditionRef)[]\n\nexport type DateTimeUnitValues =\n | 'years'\n | 'months'\n | 'days'\n | 'hours'\n | 'minutes'\n | 'seconds'\n\nexport type DateUnits = {\n YEARS: { display: 'year(s)'; value: 'years' }\n MONTHS: { display: 'month(s)'; value: 'months' }\n DAYS: { display: 'day(s)'; value: 'days' }\n}\n\nexport type TimeUnits = {\n HOURS: { display: 'hour(s)'; value: 'hours' }\n MINUTES: { display: 'minute(s)'; value: 'minutes' }\n SECONDS: { display: 'second(s)'; value: 'seconds' }\n}\n"],"mappings":""}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "../conditions/condition-model"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("../conditions/condition-model"));
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports, global.conditionModel);
|
11
|
-
global.conditionsWrapper = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _conditionModel) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
_exports.ConditionsWrapper = void 0;
|
18
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
20
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
21
|
-
class ConditionsWrapper {
|
22
|
-
constructor(rawData) {
|
23
|
-
_defineProperty(this, "name", void 0);
|
24
|
-
_defineProperty(this, "displayName", void 0);
|
25
|
-
_defineProperty(this, "value", void 0);
|
26
|
-
const {
|
27
|
-
name,
|
28
|
-
displayName,
|
29
|
-
value
|
30
|
-
} = rawData;
|
31
|
-
this.displayName = displayName || name;
|
32
|
-
this.value = value;
|
33
|
-
this.name = name;
|
34
|
-
}
|
35
|
-
get expression() {
|
36
|
-
if (typeof this.value === 'string') {
|
37
|
-
// Previously conditions were defined as strings, e.g: "section.age < 18"
|
38
|
-
// keep this so application can support legacy forms exports.
|
39
|
-
return this.value;
|
40
|
-
}
|
41
|
-
return _conditionModel.ConditionsModel.from(this.value).toExpression();
|
42
|
-
}
|
43
|
-
clone() {
|
44
|
-
return new ConditionsWrapper(this);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
_exports.ConditionsWrapper = ConditionsWrapper;
|
48
|
-
});
|
49
|
-
//# sourceMappingURL=conditions-wrapper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"conditions-wrapper.js","names":["ConditionsWrapper","constructor","rawData","_defineProperty","name","displayName","value","expression","ConditionsModel","from","toExpression","clone","_exports"],"sources":["../../../src/data-model/conditions-wrapper.ts"],"sourcesContent":["import { ConditionsModel } from '~/src/conditions/condition-model'\nimport {\n type ConditionRawData,\n type ConditionWrapperValue\n} from '~/src/data-model/types'\n\nexport class ConditionsWrapper {\n name: string\n displayName: string\n value: ConditionWrapperValue\n\n constructor(rawData: ConditionRawData) {\n const { name, displayName, value } = rawData\n this.displayName = displayName || name\n this.value = value\n this.name = name\n }\n\n get expression() {\n if (typeof this.value === 'string') {\n // Previously conditions were defined as strings, e.g: \"section.age < 18\"\n // keep this so application can support legacy forms exports.\n return this.value\n }\n\n return ConditionsModel.from(this.value).toExpression()\n }\n\n clone(): ConditionsWrapper {\n return new ConditionsWrapper(this)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAMO,MAAMA,iBAAiB,CAAC;IAK7BC,WAAWA,CAACC,OAAyB,EAAE;MAAAC,eAAA;MAAAA,eAAA;MAAAA,eAAA;MACrC,MAAM;QAAEC,IAAI;QAAEC,WAAW;QAAEC;MAAM,CAAC,GAAGJ,OAAO;MAC5C,IAAI,CAACG,WAAW,GAAGA,WAAW,IAAID,IAAI;MACtC,IAAI,CAACE,KAAK,GAAGA,KAAK;MAClB,IAAI,CAACF,IAAI,GAAGA,IAAI;IAClB;IAEA,IAAIG,UAAUA,CAAA,EAAG;MACf,IAAI,OAAO,IAAI,CAACD,KAAK,KAAK,QAAQ,EAAE;QAClC;QACA;QACA,OAAO,IAAI,CAACA,KAAK;MACnB;MAEA,OAAOE,+BAAe,CAACC,IAAI,CAAC,IAAI,CAACH,KAAK,CAAC,CAACI,YAAY,CAAC,CAAC;IACxD;IAEAC,KAAKA,CAAA,EAAsB;MACzB,OAAO,IAAIX,iBAAiB,CAAC,IAAI,CAAC;IACpC;EACF;EAACY,QAAA,CAAAZ,iBAAA,GAAAA,iBAAA;AAAA"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports);
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports);
|
11
|
-
global.enums = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
_exports.OutputType = void 0;
|
18
|
-
let OutputType = _exports.OutputType = /*#__PURE__*/function (OutputType) {
|
19
|
-
OutputType["Email"] = "email";
|
20
|
-
OutputType["Notify"] = "notify";
|
21
|
-
OutputType["Webhook"] = "webhook";
|
22
|
-
return OutputType;
|
23
|
-
}({});
|
24
|
-
});
|
25
|
-
//# sourceMappingURL=enums.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"enums.js","names":["OutputType","_exports"],"sources":["../../../src/data-model/enums.ts"],"sourcesContent":["export enum OutputType {\n Email = 'email',\n Notify = 'notify',\n Webhook = 'webhook'\n}\n"],"mappings":";;;;;;;;;;;;;;;;;MAAYA,UAAU,GAAAC,QAAA,CAAAD,UAAA,0BAAVA,UAAU;IAAVA,UAAU;IAAVA,UAAU;IAAVA,UAAU;IAAA,OAAVA,UAAU;EAAA;AAAA"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "./input-wrapper", "./conditions-wrapper", "./enums"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("./input-wrapper"), require("./conditions-wrapper"), require("./enums"));
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports, global.inputWrapper, global.conditionsWrapper, global.enums);
|
11
|
-
global.index = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _inputWrapper, _conditionsWrapper, _enums) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
Object.defineProperty(_exports, "ConditionsWrapper", {
|
18
|
-
enumerable: true,
|
19
|
-
get: function () {
|
20
|
-
return _conditionsWrapper.ConditionsWrapper;
|
21
|
-
}
|
22
|
-
});
|
23
|
-
Object.defineProperty(_exports, "InputWrapper", {
|
24
|
-
enumerable: true,
|
25
|
-
get: function () {
|
26
|
-
return _inputWrapper.InputWrapper;
|
27
|
-
}
|
28
|
-
});
|
29
|
-
Object.defineProperty(_exports, "OutputType", {
|
30
|
-
enumerable: true,
|
31
|
-
get: function () {
|
32
|
-
return _enums.OutputType;
|
33
|
-
}
|
34
|
-
});
|
35
|
-
});
|
36
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/data-model/index.ts"],"sourcesContent":["export { InputWrapper } from '~/src/data-model/input-wrapper'\nexport { ConditionsWrapper } from '~/src/data-model/conditions-wrapper'\nexport { OutputType } from '~/src/data-model/enums'\n"],"mappings":""}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "../utils/helpers"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("../utils/helpers"));
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports, global.helpers);
|
11
|
-
global.inputWrapper = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _helpers) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
_exports.InputWrapper = void 0;
|
18
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
19
|
-
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
20
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
22
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
23
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
24
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
25
|
-
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
26
|
-
var _parentItemName = /*#__PURE__*/new WeakMap();
|
27
|
-
class InputWrapper {
|
28
|
-
constructor(rawData, page, options) {
|
29
|
-
_defineProperty(this, "name", undefined);
|
30
|
-
_defineProperty(this, "title", undefined);
|
31
|
-
_defineProperty(this, "type", undefined);
|
32
|
-
_defineProperty(this, "propertyPath", void 0);
|
33
|
-
_classPrivateFieldInitSpec(this, _parentItemName, void 0);
|
34
|
-
_defineProperty(this, "page", void 0);
|
35
|
-
Object.assign(this, rawData);
|
36
|
-
const myPage = (0, _helpers.clone)(page);
|
37
|
-
delete myPage.components;
|
38
|
-
this.page = myPage;
|
39
|
-
this.propertyPath = !options.ignoreSection && page.section ? `${page.section}.${this.name}` : this.name;
|
40
|
-
_classPrivateFieldSet(_parentItemName, this, options.parentItemName);
|
41
|
-
}
|
42
|
-
get displayName() {
|
43
|
-
const titleWithContext = _classPrivateFieldGet(_parentItemName, this) ? `${this.title} under ${_classPrivateFieldGet(_parentItemName, this)}` : this.title;
|
44
|
-
return this.page.section ? `${titleWithContext} in ${this.page.section}` : titleWithContext;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
_exports.InputWrapper = InputWrapper;
|
48
|
-
});
|
49
|
-
//# sourceMappingURL=input-wrapper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input-wrapper.js","names":["InputWrapper","constructor","rawData","page","options","_defineProperty","undefined","_classPrivateFieldInitSpec","_parentItemName","Object","assign","myPage","clone","components","propertyPath","ignoreSection","section","name","_classPrivateFieldSet","parentItemName","displayName","titleWithContext","_classPrivateFieldGet","title","_exports"],"sources":["../../../src/data-model/input-wrapper.ts"],"sourcesContent":["import { type ComponentDef } from '~/src/components/types'\nimport { type Page } from '~/src/data-model/types'\nimport { clone } from '~/src/utils/helpers'\n\nexport class InputWrapper {\n name: string | undefined = undefined\n title: string | undefined = undefined\n type: string | undefined = undefined\n propertyPath: string | undefined\n #parentItemName: string | undefined\n page: Page\n\n constructor(\n rawData: ComponentDef,\n page: Page,\n options: { ignoreSection?: boolean; parentItemName?: string }\n ) {\n Object.assign(this, rawData)\n const myPage = clone(page)\n\n delete myPage.components\n\n this.page = myPage\n this.propertyPath =\n !options.ignoreSection && page.section\n ? `${page.section}.${this.name}`\n : this.name\n this.#parentItemName = options.parentItemName\n }\n\n get displayName(): string | undefined {\n const titleWithContext = this.#parentItemName\n ? `${this.title} under ${this.#parentItemName}`\n : this.title\n\n return this.page.section\n ? `${titleWithContext} in ${this.page.section}`\n : titleWithContext\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EAIO,MAAMA,YAAY,CAAC;IAQxBC,WAAWA,CACTC,OAAqB,EACrBC,IAAU,EACVC,OAA6D,EAC7D;MAAAC,eAAA,eAXyBC,SAAS;MAAAD,eAAA,gBACRC,SAAS;MAAAD,eAAA,eACVC,SAAS;MAAAD,eAAA;MAAAE,0BAAA,OAAAC,eAAA;MAAAH,eAAA;MAUlCI,MAAM,CAACC,MAAM,CAAC,IAAI,EAAER,OAAO,CAAC;MAC5B,MAAMS,MAAM,GAAG,IAAAC,cAAK,EAACT,IAAI,CAAC;MAE1B,OAAOQ,MAAM,CAACE,UAAU;MAExB,IAAI,CAACV,IAAI,GAAGQ,MAAM;MAClB,IAAI,CAACG,YAAY,GACf,CAACV,OAAO,CAACW,aAAa,IAAIZ,IAAI,CAACa,OAAO,GACjC,GAAEb,IAAI,CAACa,OAAQ,IAAG,IAAI,CAACC,IAAK,EAAC,GAC9B,IAAI,CAACA,IAAI;MACfC,qBAAA,CAAAV,eAAA,MAAI,EAAmBJ,OAAO,CAACe,cAAc;IAC/C;IAEA,IAAIC,WAAWA,CAAA,EAAuB;MACpC,MAAMC,gBAAgB,GAAGC,qBAAA,CAAAd,eAAA,MAAI,IACxB,GAAE,IAAI,CAACe,KAAM,UAAOD,qBAAA,CAAAd,eAAA,EAAE,IAAI,CAAiB,EAAC,GAC7C,IAAI,CAACe,KAAK;MAEd,OAAO,IAAI,CAACpB,IAAI,CAACa,OAAO,GACnB,GAAEK,gBAAiB,OAAM,IAAI,CAAClB,IAAI,CAACa,OAAQ,EAAC,GAC7CK,gBAAgB;IACtB;EACF;EAACG,QAAA,CAAAxB,YAAA,GAAAA,YAAA;AAAA"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports);
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports);
|
11
|
-
global.types = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
_exports.isMultipleApiKey = isMultipleApiKey;
|
18
|
-
function isMultipleApiKey(payApiKey) {
|
19
|
-
const obj = payApiKey;
|
20
|
-
return obj.test !== undefined || obj.production !== undefined;
|
21
|
-
}
|
22
|
-
|
23
|
-
/**
|
24
|
-
* `FormDefinition` is a typescript representation of `Schema`
|
25
|
-
*/
|
26
|
-
});
|
27
|
-
//# sourceMappingURL=types.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","names":["isMultipleApiKey","payApiKey","obj","test","undefined","production"],"sources":["../../../src/data-model/types.ts"],"sourcesContent":["import { type ComponentDef } from '~/src/components/types'\nimport { type Condition } from '~/src/conditions/condition'\nimport { type OutputType } from '~/src/data-model/enums'\n\ntype Toggleable<T> = boolean | T\n\nexport interface Next {\n path: string\n condition?: string\n}\nexport type Link = Next\n\nexport interface Page {\n title: string\n path: string\n controller: string\n components?: ComponentDef[]\n section: string // the section ID\n next?: { path: string; condition?: string }[]\n}\n\nexport interface RepeatingFieldPage extends Page {\n controller: 'RepeatingFieldPageController'\n options: {\n summaryDisplayMode?: {\n samePage?: boolean\n separatePage?: boolean\n hideRowTitles?: boolean\n }\n customText?: {\n separatePageTitle?: string\n }\n }\n}\n\nexport interface Section {\n name: string\n title: string\n hideTitle: boolean\n}\n\nexport interface Item {\n text: string\n value: string | number | boolean\n description?: string\n condition?: string\n}\n\nexport interface List {\n name: string\n title: string\n type: 'string' | 'number' | 'boolean'\n items: Item[]\n}\n\nexport interface Feedback {\n feedbackForm?: boolean\n url?: string\n emailAddress?: string\n}\n\nexport type PhaseBanner = {\n phase?: 'alpha' | 'beta'\n feedbackUrl?: string\n}\n\nexport type MultipleApiKeys = {\n test?: string\n production?: string\n}\n\nexport type EmailOutputConfiguration = {\n emailAddress: string\n}\n\nexport type NotifyOutputConfiguration = {\n apiKey: string\n templateId: string\n emailField: string\n personalisation: string[]\n personalisationFieldCustomisation?: {\n [personalisationName: string]: string[]\n }\n addReferencesToPersonalisation?: boolean\n emailReplyToIdConfiguration?: {\n emailReplyToId: string\n condition?: string | undefined\n }[]\n}\n\nexport type WebhookOutputConfiguration = {\n url: string\n}\n\nexport type OutputConfiguration =\n | EmailOutputConfiguration\n | NotifyOutputConfiguration\n | WebhookOutputConfiguration\n\nexport type Output = {\n name: string\n title: string\n type: OutputType\n outputConfiguration: OutputConfiguration\n}\n\nexport type ConfirmationPage = {\n customText: {\n title: string\n paymentSkipped: Toggleable<string>\n nextSteps: Toggleable<string>\n }\n components: ComponentDef[]\n}\n\nexport type PaymentSkippedWarningPage = {\n customText: {\n title: string\n caption: string\n body: string\n }\n}\n\nexport type SpecialPages = {\n confirmationPage?: ConfirmationPage\n paymentSkippedWarningPage?: PaymentSkippedWarningPage\n}\n\nexport function isMultipleApiKey(\n payApiKey: string | MultipleApiKeys | undefined\n): payApiKey is MultipleApiKeys {\n const obj = payApiKey as MultipleApiKeys\n return obj.test !== undefined || obj.production !== undefined\n}\n\nexport type Fee = {\n description: string\n amount: number\n multiplier?: string\n condition?: string\n prefix?: string\n}\n\nexport type FeeOptions = {\n paymentReferenceFormat?: string\n payReturnUrl?: string\n allowSubmissionWithoutPayment: boolean\n maxAttempts: number\n customPayErrorMessage?: string\n showPaymentSkippedWarningPage: boolean\n}\n\nexport type ConditionWrapperValue =\n | string\n | {\n name: string\n conditions: Condition[]\n }\n\nexport type ConditionRawData = {\n name: string\n displayName: string\n value: ConditionWrapperValue\n}\n\n/**\n * `FormDefinition` is a typescript representation of `Schema`\n */\nexport type FormDefinition = {\n pages: Array<Page | RepeatingFieldPage>\n conditions: ConditionRawData[]\n lists: List[]\n sections: Section[]\n startPage?: Page['path'] | undefined\n name?: string | undefined\n feedback?: Feedback\n phaseBanner?: PhaseBanner\n fees: Fee[]\n skipSummary?: boolean | undefined\n outputs: Output[]\n declaration?: string | undefined\n metadata?: Record<string, any>\n payApiKey?: string | MultipleApiKeys | undefined\n specialPages?: SpecialPages\n paymentReferenceFormat?: string\n feeOptions: FeeOptions\n}\n"],"mappings":";;;;;;;;;;;;;;;;;EAgIO,SAASA,gBAAgBA,CAC9BC,SAA+C,EACjB;IAC9B,MAAMC,GAAG,GAAGD,SAA4B;IACxC,OAAOC,GAAG,CAACC,IAAI,KAAKC,SAAS,IAAIF,GAAG,CAACG,UAAU,KAAKD,SAAS;EAC/D;;EAgCA;AACA;AACA;AAFA"}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports);
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports);
|
11
|
-
global.formConfiguration = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
_exports.FormConfiguration = void 0;
|
18
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
20
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
21
|
-
class FormConfiguration {
|
22
|
-
constructor(Key, DisplayName, LastModified, feedbackForm) {
|
23
|
-
_defineProperty(this, "Key", void 0);
|
24
|
-
_defineProperty(this, "DisplayName", void 0);
|
25
|
-
_defineProperty(this, "LastModified", void 0);
|
26
|
-
_defineProperty(this, "feedbackForm", void 0);
|
27
|
-
if (!Key) {
|
28
|
-
throw Error('Form configuration must have a key');
|
29
|
-
}
|
30
|
-
this.Key = Key;
|
31
|
-
this.DisplayName = DisplayName || Key;
|
32
|
-
this.LastModified = LastModified;
|
33
|
-
this.feedbackForm = feedbackForm || false;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
_exports.FormConfiguration = FormConfiguration;
|
37
|
-
});
|
38
|
-
//# sourceMappingURL=form-configuration.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"form-configuration.js","names":["FormConfiguration","constructor","Key","DisplayName","LastModified","feedbackForm","_defineProperty","Error","_exports"],"sources":["../../../src/form/form-configuration.ts"],"sourcesContent":["export class FormConfiguration {\n Key: string\n DisplayName: string\n LastModified: string | undefined\n feedbackForm: boolean | undefined\n\n constructor(\n Key: string,\n DisplayName?: string,\n LastModified?: string,\n feedbackForm?: boolean\n ) {\n if (!Key) {\n throw Error('Form configuration must have a key')\n }\n this.Key = Key\n this.DisplayName = DisplayName || Key\n this.LastModified = LastModified\n this.feedbackForm = feedbackForm || false\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAAO,MAAMA,iBAAiB,CAAC;IAM7BC,WAAWA,CACTC,GAAW,EACXC,WAAoB,EACpBC,YAAqB,EACrBC,YAAsB,EACtB;MAAAC,eAAA;MAAAA,eAAA;MAAAA,eAAA;MAAAA,eAAA;MACA,IAAI,CAACJ,GAAG,EAAE;QACR,MAAMK,KAAK,CAAC,oCAAoC,CAAC;MACnD;MACA,IAAI,CAACL,GAAG,GAAGA,GAAG;MACd,IAAI,CAACC,WAAW,GAAGA,WAAW,IAAID,GAAG;MACrC,IAAI,CAACE,YAAY,GAAGA,YAAY;MAChC,IAAI,CAACC,YAAY,GAAGA,YAAY,IAAI,KAAK;IAC3C;EACF;EAACG,QAAA,CAAAR,iBAAA,GAAAA,iBAAA;AAAA"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "./form-configuration"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("./form-configuration"));
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports, global.formConfiguration);
|
11
|
-
global.index = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _formConfiguration) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
Object.defineProperty(_exports, "FormConfiguration", {
|
18
|
-
enumerable: true,
|
19
|
-
get: function () {
|
20
|
-
return _formConfiguration.FormConfiguration;
|
21
|
-
}
|
22
|
-
});
|
23
|
-
});
|
24
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/form/index.ts"],"sourcesContent":["export { FormConfiguration } from '~/src/form/form-configuration'\n"],"mappings":""}
|
package/dist/browser/index.js
DELETED
@@ -1,98 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "./schema", "./data-model", "./utils/logger", "./form", "./components", "./conditions", "./utils/helpers", "./migration"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("./schema"), require("./data-model"), require("./utils/logger"), require("./form"), require("./components"), require("./conditions"), require("./utils/helpers"), require("./migration"));
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports, global.schema, global.dataModel, global.logger, global.form, global.components, global.conditions, global.helpers, global.migration);
|
11
|
-
global.index = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _schema, _dataModel, _logger, _form, _components, _conditions, _helpers, _migration) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
Object.keys(_schema).forEach(function (key) {
|
18
|
-
if (key === "default" || key === "__esModule") return;
|
19
|
-
if (key in _exports && _exports[key] === _schema[key]) return;
|
20
|
-
Object.defineProperty(_exports, key, {
|
21
|
-
enumerable: true,
|
22
|
-
get: function () {
|
23
|
-
return _schema[key];
|
24
|
-
}
|
25
|
-
});
|
26
|
-
});
|
27
|
-
Object.keys(_dataModel).forEach(function (key) {
|
28
|
-
if (key === "default" || key === "__esModule") return;
|
29
|
-
if (key in _exports && _exports[key] === _dataModel[key]) return;
|
30
|
-
Object.defineProperty(_exports, key, {
|
31
|
-
enumerable: true,
|
32
|
-
get: function () {
|
33
|
-
return _dataModel[key];
|
34
|
-
}
|
35
|
-
});
|
36
|
-
});
|
37
|
-
Object.keys(_logger).forEach(function (key) {
|
38
|
-
if (key === "default" || key === "__esModule") return;
|
39
|
-
if (key in _exports && _exports[key] === _logger[key]) return;
|
40
|
-
Object.defineProperty(_exports, key, {
|
41
|
-
enumerable: true,
|
42
|
-
get: function () {
|
43
|
-
return _logger[key];
|
44
|
-
}
|
45
|
-
});
|
46
|
-
});
|
47
|
-
Object.keys(_form).forEach(function (key) {
|
48
|
-
if (key === "default" || key === "__esModule") return;
|
49
|
-
if (key in _exports && _exports[key] === _form[key]) return;
|
50
|
-
Object.defineProperty(_exports, key, {
|
51
|
-
enumerable: true,
|
52
|
-
get: function () {
|
53
|
-
return _form[key];
|
54
|
-
}
|
55
|
-
});
|
56
|
-
});
|
57
|
-
Object.keys(_components).forEach(function (key) {
|
58
|
-
if (key === "default" || key === "__esModule") return;
|
59
|
-
if (key in _exports && _exports[key] === _components[key]) return;
|
60
|
-
Object.defineProperty(_exports, key, {
|
61
|
-
enumerable: true,
|
62
|
-
get: function () {
|
63
|
-
return _components[key];
|
64
|
-
}
|
65
|
-
});
|
66
|
-
});
|
67
|
-
Object.keys(_conditions).forEach(function (key) {
|
68
|
-
if (key === "default" || key === "__esModule") return;
|
69
|
-
if (key in _exports && _exports[key] === _conditions[key]) return;
|
70
|
-
Object.defineProperty(_exports, key, {
|
71
|
-
enumerable: true,
|
72
|
-
get: function () {
|
73
|
-
return _conditions[key];
|
74
|
-
}
|
75
|
-
});
|
76
|
-
});
|
77
|
-
Object.keys(_helpers).forEach(function (key) {
|
78
|
-
if (key === "default" || key === "__esModule") return;
|
79
|
-
if (key in _exports && _exports[key] === _helpers[key]) return;
|
80
|
-
Object.defineProperty(_exports, key, {
|
81
|
-
enumerable: true,
|
82
|
-
get: function () {
|
83
|
-
return _helpers[key];
|
84
|
-
}
|
85
|
-
});
|
86
|
-
});
|
87
|
-
Object.keys(_migration).forEach(function (key) {
|
88
|
-
if (key === "default" || key === "__esModule") return;
|
89
|
-
if (key in _exports && _exports[key] === _migration[key]) return;
|
90
|
-
Object.defineProperty(_exports, key, {
|
91
|
-
enumerable: true,
|
92
|
-
get: function () {
|
93
|
-
return _migration[key];
|
94
|
-
}
|
95
|
-
});
|
96
|
-
});
|
97
|
-
});
|
98
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["Object","keys","_schema","forEach","key","_exports","defineProperty","enumerable","get","_dataModel","_logger","_form","_components","_conditions","_helpers","_migration"],"sources":["../../src/index.ts"],"sourcesContent":["export * from '~/src/schema'\nexport * from '~/src/data-model'\nexport * from '~/src/utils/logger'\nexport * from '~/src/form'\nexport * from '~/src/components'\nexport * from '~/src/conditions'\nexport * from '~/src/utils/helpers'\nexport * from '~/src/migration'\nexport type * from '~/src/components/types'\nexport type * from '~/src/conditions/types'\nexport type * from '~/src/data-model/types'\n"],"mappings":";;;;;;;;;;;;;;;;EAAAA,MAAA,CAAAC,IAAA,CAAAC,OAAA,EAAAC,OAAA,WAAAC,GAAA;IAAA,IAAAA,GAAA,kBAAAA,GAAA;IAAA,IAAAA,GAAA,IAAAC,QAAA,IAAAA,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UAAA,CAAAX,GAAA;MAAA;IAAA;EAAA;AAA+B"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
if (typeof define === "function" && define.amd) {
|
3
|
-
define(["exports", "./whichMigrations"], factory);
|
4
|
-
} else if (typeof exports !== "undefined") {
|
5
|
-
factory(exports, require("./whichMigrations"));
|
6
|
-
} else {
|
7
|
-
var mod = {
|
8
|
-
exports: {}
|
9
|
-
};
|
10
|
-
factory(mod.exports, global.whichMigrations);
|
11
|
-
global.index = mod.exports;
|
12
|
-
}
|
13
|
-
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _whichMigrations) {
|
14
|
-
"use strict";
|
15
|
-
|
16
|
-
_exports.__esModule = true;
|
17
|
-
Object.defineProperty(_exports, "whichMigrations", {
|
18
|
-
enumerable: true,
|
19
|
-
get: function () {
|
20
|
-
return _whichMigrations.whichMigrations;
|
21
|
-
}
|
22
|
-
});
|
23
|
-
});
|
24
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/migration/index.ts"],"sourcesContent":["export { whichMigrations } from '~/src/migration/whichMigrations'\n"],"mappings":""}
|