@defra/forms-model 3.0.8 → 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 +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 -4
- 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 +1 -1
- 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/inline-condition-model.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 -10
- package/dist/types/data-model/conditions-wrapper.d.ts.map +1 -1
- package/dist/types/data-model/index.d.ts +3 -4
- 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 +12 -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 +6 -5
- 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 +2 -2
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_formConfiguration","require"],"sources":["../../../src/form/index.ts"],"sourcesContent":["export { FormConfiguration } from '
|
1
|
+
{"version":3,"file":"index.js","names":["_formConfiguration","require"],"sources":["../../../src/form/index.ts"],"sourcesContent":["export { FormConfiguration } from '~/src/form/form-configuration'\n"],"mappings":";;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA"}
|
package/dist/module/index.js
CHANGED
@@ -1,87 +1,64 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
var _exportNames = {
|
5
|
-
Schema: true,
|
6
|
-
componentSchema: true,
|
7
|
-
ConditionRawData: true,
|
8
|
-
ConditionsWrapper: true,
|
9
|
-
OutputType: true,
|
10
|
-
Logger: true,
|
11
|
-
FormConfiguration: true,
|
12
|
-
ComponentTypeEnum: true,
|
13
|
-
ComponentTypes: true,
|
14
|
-
ConditionalComponentTypes: true
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "ComponentTypeEnum", {
|
17
|
-
enumerable: true,
|
18
|
-
get: function () {
|
19
|
-
return _components.ComponentTypeEnum;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
Object.defineProperty(exports, "ComponentTypes", {
|
23
|
-
enumerable: true,
|
24
|
-
get: function () {
|
25
|
-
return _components.ComponentTypes;
|
26
|
-
}
|
27
|
-
});
|
28
|
-
Object.defineProperty(exports, "ConditionRawData", {
|
29
|
-
enumerable: true,
|
30
|
-
get: function () {
|
31
|
-
return _dataModel.ConditionRawData;
|
32
|
-
}
|
33
|
-
});
|
34
|
-
Object.defineProperty(exports, "ConditionalComponentTypes", {
|
35
|
-
enumerable: true,
|
36
|
-
get: function () {
|
37
|
-
return _components.ConditionalComponentTypes;
|
38
|
-
}
|
39
|
-
});
|
40
|
-
Object.defineProperty(exports, "ConditionsWrapper", {
|
41
|
-
enumerable: true,
|
42
|
-
get: function () {
|
43
|
-
return _dataModel.ConditionsWrapper;
|
44
|
-
}
|
45
|
-
});
|
46
|
-
Object.defineProperty(exports, "FormConfiguration", {
|
47
|
-
enumerable: true,
|
48
|
-
get: function () {
|
49
|
-
return _form.FormConfiguration;
|
50
|
-
}
|
51
|
-
});
|
52
|
-
Object.defineProperty(exports, "Logger", {
|
53
|
-
enumerable: true,
|
54
|
-
get: function () {
|
55
|
-
return _logger.Logger;
|
56
|
-
}
|
57
|
-
});
|
58
|
-
Object.defineProperty(exports, "OutputType", {
|
59
|
-
enumerable: true,
|
60
|
-
get: function () {
|
61
|
-
return _dataModel.OutputType;
|
62
|
-
}
|
63
|
-
});
|
64
|
-
Object.defineProperty(exports, "Schema", {
|
65
|
-
enumerable: true,
|
66
|
-
get: function () {
|
67
|
-
return _schema.Schema;
|
68
|
-
}
|
69
|
-
});
|
70
|
-
Object.defineProperty(exports, "componentSchema", {
|
71
|
-
enumerable: true,
|
72
|
-
get: function () {
|
73
|
-
return _schema.componentSchema;
|
74
|
-
}
|
75
|
-
});
|
76
4
|
var _schema = require("./schema");
|
5
|
+
Object.keys(_schema).forEach(function (key) {
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
7
|
+
if (key in exports && exports[key] === _schema[key]) return;
|
8
|
+
Object.defineProperty(exports, key, {
|
9
|
+
enumerable: true,
|
10
|
+
get: function () {
|
11
|
+
return _schema[key];
|
12
|
+
}
|
13
|
+
});
|
14
|
+
});
|
77
15
|
var _dataModel = require("./data-model");
|
16
|
+
Object.keys(_dataModel).forEach(function (key) {
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
18
|
+
if (key in exports && exports[key] === _dataModel[key]) return;
|
19
|
+
Object.defineProperty(exports, key, {
|
20
|
+
enumerable: true,
|
21
|
+
get: function () {
|
22
|
+
return _dataModel[key];
|
23
|
+
}
|
24
|
+
});
|
25
|
+
});
|
78
26
|
var _logger = require("./utils/logger");
|
27
|
+
Object.keys(_logger).forEach(function (key) {
|
28
|
+
if (key === "default" || key === "__esModule") return;
|
29
|
+
if (key in exports && exports[key] === _logger[key]) return;
|
30
|
+
Object.defineProperty(exports, key, {
|
31
|
+
enumerable: true,
|
32
|
+
get: function () {
|
33
|
+
return _logger[key];
|
34
|
+
}
|
35
|
+
});
|
36
|
+
});
|
79
37
|
var _form = require("./form");
|
38
|
+
Object.keys(_form).forEach(function (key) {
|
39
|
+
if (key === "default" || key === "__esModule") return;
|
40
|
+
if (key in exports && exports[key] === _form[key]) return;
|
41
|
+
Object.defineProperty(exports, key, {
|
42
|
+
enumerable: true,
|
43
|
+
get: function () {
|
44
|
+
return _form[key];
|
45
|
+
}
|
46
|
+
});
|
47
|
+
});
|
80
48
|
var _components = require("./components");
|
49
|
+
Object.keys(_components).forEach(function (key) {
|
50
|
+
if (key === "default" || key === "__esModule") return;
|
51
|
+
if (key in exports && exports[key] === _components[key]) return;
|
52
|
+
Object.defineProperty(exports, key, {
|
53
|
+
enumerable: true,
|
54
|
+
get: function () {
|
55
|
+
return _components[key];
|
56
|
+
}
|
57
|
+
});
|
58
|
+
});
|
81
59
|
var _conditions = require("./conditions");
|
82
60
|
Object.keys(_conditions).forEach(function (key) {
|
83
61
|
if (key === "default" || key === "__esModule") return;
|
84
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
85
62
|
if (key in exports && exports[key] === _conditions[key]) return;
|
86
63
|
Object.defineProperty(exports, key, {
|
87
64
|
enumerable: true,
|
@@ -93,7 +70,6 @@ Object.keys(_conditions).forEach(function (key) {
|
|
93
70
|
var _helpers = require("./utils/helpers");
|
94
71
|
Object.keys(_helpers).forEach(function (key) {
|
95
72
|
if (key === "default" || key === "__esModule") return;
|
96
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
97
73
|
if (key in exports && exports[key] === _helpers[key]) return;
|
98
74
|
Object.defineProperty(exports, key, {
|
99
75
|
enumerable: true,
|
@@ -105,7 +81,6 @@ Object.keys(_helpers).forEach(function (key) {
|
|
105
81
|
var _migration = require("./migration");
|
106
82
|
Object.keys(_migration).forEach(function (key) {
|
107
83
|
if (key === "default" || key === "__esModule") return;
|
108
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
109
84
|
if (key in exports && exports[key] === _migration[key]) return;
|
110
85
|
Object.defineProperty(exports, key, {
|
111
86
|
enumerable: true,
|
package/dist/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_schema","require","
|
1
|
+
{"version":3,"file":"index.js","names":["_schema","require","Object","keys","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":";;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,OAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,OAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,OAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,OAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,KAAA,GAAAX,OAAA;AAA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GAAA,MAAAU,QAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAM,QAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,UAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,UAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,UAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,UAAA,CAAAX,GAAA;IAAA;EAAA;AAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_whichMigrations","require"],"sources":["../../../src/migration/index.ts"],"sourcesContent":["export { whichMigrations } from '
|
1
|
+
{"version":3,"file":"index.js","names":["_whichMigrations","require"],"sources":["../../../src/migration/index.ts"],"sourcesContent":["export { whichMigrations } from '~/src/migration/whichMigrations'\n"],"mappings":";;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migration.0-2.js","names":["needsUpgrade","data","pages","flatMap","page","components","find","component","options","list","migrate","version","newPages","map","rest"],"sources":["../../../src/migration/migration.0-2.ts"],"sourcesContent":["import { MigrationScript } from '
|
1
|
+
{"version":3,"file":"migration.0-2.js","names":["needsUpgrade","data","pages","flatMap","page","components","find","component","options","list","migrate","version","newPages","map","rest"],"sources":["../../../src/migration/migration.0-2.ts"],"sourcesContent":["import { type MigrationScript } from '~/src/migration/types'\n\nfunction needsUpgrade(data) {\n return !!(data.pages ?? [])\n .flatMap((page) => page.components)\n .find((component) => component.options?.list)\n}\n\nexport function migrate(data): MigrationScript {\n if (!needsUpgrade(data)) {\n return { ...data, version: 2 }\n }\n const { pages } = data\n const newPages = pages.flatMap((page) => {\n return page.components.map((component) => {\n if (!component.options?.list) {\n return component\n }\n const { list, ...rest } = component.options\n return { ...component, list, options: { ...rest } }\n })\n })\n\n return {\n ...data,\n pages: newPages,\n version: 2\n }\n}\n"],"mappings":";;;;AAEA,SAASA,YAAYA,CAACC,IAAI,EAAE;EAC1B,OAAO,CAAC,CAAC,CAACA,IAAI,CAACC,KAAK,IAAI,EAAE,EACvBC,OAAO,CAAEC,IAAI,IAAKA,IAAI,CAACC,UAAU,CAAC,CAClCC,IAAI,CAAEC,SAAS,IAAKA,SAAS,CAACC,OAAO,EAAEC,IAAI,CAAC;AACjD;AAEO,SAASC,OAAOA,CAACT,IAAI,EAAmB;EAC7C,IAAI,CAACD,YAAY,CAACC,IAAI,CAAC,EAAE;IACvB,OAAO;MAAE,GAAGA,IAAI;MAAEU,OAAO,EAAE;IAAE,CAAC;EAChC;EACA,MAAM;IAAET;EAAM,CAAC,GAAGD,IAAI;EACtB,MAAMW,QAAQ,GAAGV,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAK;IACvC,OAAOA,IAAI,CAACC,UAAU,CAACQ,GAAG,CAAEN,SAAS,IAAK;MACxC,IAAI,CAACA,SAAS,CAACC,OAAO,EAAEC,IAAI,EAAE;QAC5B,OAAOF,SAAS;MAClB;MACA,MAAM;QAAEE,IAAI;QAAE,GAAGK;MAAK,CAAC,GAAGP,SAAS,CAACC,OAAO;MAC3C,OAAO;QAAE,GAAGD,SAAS;QAAEE,IAAI;QAAED,OAAO,EAAE;UAAE,GAAGM;QAAK;MAAE,CAAC;IACrD,CAAC,CAAC;EACJ,CAAC,CAAC;EAEF,OAAO;IACL,GAAGb,IAAI;IACPC,KAAK,EAAEU,QAAQ;IACfD,OAAO,EAAE;EACX,CAAC;AACH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migration.1-2.js","names":["_helpers","require","recastItem","label","value","condition","hint","item","title","conditions","addListId","component","values","list","type","nanoid","migratePage","page","components","map","removeValues","rest","needsUpgrade","data","pages","flatMap","find","migrate","version","componentsWithList","filter","c","items","valuesAsLists","name","lists"],"sources":["../../../src/migration/migration.1-2.ts"],"sourcesContent":["import {
|
1
|
+
{"version":3,"file":"migration.1-2.js","names":["_helpers","require","recastItem","label","value","condition","hint","item","title","conditions","addListId","component","values","list","type","nanoid","migratePage","page","components","map","removeValues","rest","needsUpgrade","data","pages","flatMap","find","migrate","version","componentsWithList","filter","c","items","valuesAsLists","name","lists"],"sources":["../../../src/migration/migration.1-2.ts"],"sourcesContent":["import { nanoid } from '~/src/utils/helpers'\nimport { type MigrationScript } from '~/src/migration/types'\n\n/**\n * @private\n * StaticItem is a deprecated Type.\n * It should only be used for aiding migration scripts.\n */\ntype StaticItem = {\n label: string\n value: string | number | boolean\n hint?: string\n condition?: string\n}\n\n/**\n * @private\n * StaticComponentValues is a deprecated Type.\n * It should only be used for aiding migration scripts.\n */\ntype StaticComponentValues = {\n list: any\n type: 'static' | 'listRef'\n valueType: string | number\n items: StaticItem[]\n}\n\ntype Item = {\n title: string\n value: any\n conditions?: any\n hint?: string\n}\n\nfunction recastItem({ label, value, condition, hint }: StaticItem) {\n const item: Item = {\n title: label,\n value\n }\n\n condition && (item.conditions = condition)\n hint && (item.hint = hint)\n return item\n}\n\nfunction addListId(component: { values: StaticComponentValues }) {\n if (!component.values) {\n return component\n }\n const { values } = component\n return {\n ...component,\n list: values.type === 'listRef' ? values.list : nanoid()\n }\n}\n\nfunction migratePage(page) {\n return {\n ...page,\n components: page.components.map(addListId)\n }\n}\n\nfunction removeValues(page) {\n return {\n ...page,\n components: page.components.map((component) => {\n const { values, ...rest } = component\n return {\n ...rest\n }\n })\n }\n}\n\nfunction needsUpgrade(data) {\n return !!data.pages\n .flatMap((page) => page.components)\n .find((component) => component.values)\n}\n\nexport function migrate(data): MigrationScript {\n if (!needsUpgrade(data)) {\n return { ...data, version: 2 }\n }\n const pages = data.pages.map(migratePage)\n const componentsWithList = pages.flatMap((page) =>\n page.components.filter((c) => c.values?.items)\n )\n\n const valuesAsLists = componentsWithList.map((component) => {\n return {\n title: component.title,\n name: component.list,\n items: component.values.items.map((item) => recastItem(item))\n }\n })\n\n return {\n ...data,\n pages: pages.map(removeValues),\n lists: [...(data.lists ?? []), ...valuesAsLists],\n version: 2\n }\n}\n"],"mappings":";;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;;AAeA,SAASC,UAAUA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,SAAS;EAAEC;AAAiB,CAAC,EAAE;EACjE,MAAMC,IAAU,GAAG;IACjBC,KAAK,EAAEL,KAAK;IACZC;EACF,CAAC;EAEDC,SAAS,KAAKE,IAAI,CAACE,UAAU,GAAGJ,SAAS,CAAC;EAC1CC,IAAI,KAAKC,IAAI,CAACD,IAAI,GAAGA,IAAI,CAAC;EAC1B,OAAOC,IAAI;AACb;AAEA,SAASG,SAASA,CAACC,SAA4C,EAAE;EAC/D,IAAI,CAACA,SAAS,CAACC,MAAM,EAAE;IACrB,OAAOD,SAAS;EAClB;EACA,MAAM;IAAEC;EAAO,CAAC,GAAGD,SAAS;EAC5B,OAAO;IACL,GAAGA,SAAS;IACZE,IAAI,EAAED,MAAM,CAACE,IAAI,KAAK,SAAS,GAAGF,MAAM,CAACC,IAAI,GAAG,IAAAE,eAAM,EAAC;EACzD,CAAC;AACH;AAEA,SAASC,WAAWA,CAACC,IAAI,EAAE;EACzB,OAAO;IACL,GAAGA,IAAI;IACPC,UAAU,EAAED,IAAI,CAACC,UAAU,CAACC,GAAG,CAACT,SAAS;EAC3C,CAAC;AACH;AAEA,SAASU,YAAYA,CAACH,IAAI,EAAE;EAC1B,OAAO;IACL,GAAGA,IAAI;IACPC,UAAU,EAAED,IAAI,CAACC,UAAU,CAACC,GAAG,CAAER,SAAS,IAAK;MAC7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AACH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"whichMigrations.js","names":["_migration","require","_migration2","whichMigrations","version","migrations","Set","add","V0_TO_V2","V1_TO_V2"],"sources":["../../../src/migration/whichMigrations.ts"],"sourcesContent":["import { migrate as V0_TO_V2 } from '
|
1
|
+
{"version":3,"file":"whichMigrations.js","names":["_migration","require","_migration2","whichMigrations","version","migrations","Set","add","V0_TO_V2","V1_TO_V2"],"sources":["../../../src/migration/whichMigrations.ts"],"sourcesContent":["import { migrate as V0_TO_V2 } from '~/src/migration/migration.0-2'\nimport { migrate as V1_TO_V2 } from '~/src/migration/migration.1-2'\nimport { type MigrationScript } from '~/src/migration/types'\n\n/**\n * Returns which migrations that should be run against your Object with the given version\n * @param version\n */\nexport function whichMigrations(version: number) {\n const migrations = new Set<MigrationScript>()\n switch (version) {\n case 0:\n migrations.add(V0_TO_V2)\n /**\n * we are skipping v1 entirely. If we weren't you would do migrations.add([V1_TO_V2, V2_TO_V3]) for example.\n */\n break\n case 1:\n migrations.add(V1_TO_V2)\n break\n }\n return migrations\n}\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACO,SAASE,eAAeA,CAACC,OAAe,EAAE;EAC/C,MAAMC,UAAU,GAAG,IAAIC,GAAG,CAAkB,CAAC;EAC7C,QAAQF,OAAO;IACb,KAAK,CAAC;MACJC,UAAU,CAACE,GAAG,CAACC,kBAAQ,CAAC;MACxB;AACN;AACA;MACM;IACF,KAAK,CAAC;MACJH,UAAU,CAACE,GAAG,CAACE,mBAAQ,CAAC;MACxB;EACJ;EACA,OAAOJ,UAAU;AACnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_schema","require"],"sources":["../../../src/schema/index.ts"],"sourcesContent":["export { Schema, componentSchema } from '
|
1
|
+
{"version":3,"file":"index.js","names":["_schema","require"],"sources":["../../../src/schema/index.ts"],"sourcesContent":["export { Schema, componentSchema } from '~/src/schema/schema'\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/components/component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/components/component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,YAAY,EAkOxC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conditional-component-types.d.ts","sourceRoot":"","sources":["../../../src/components/conditional-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"conditional-component-types.d.ts","sourceRoot":"","sources":["../../../src/components/conditional-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,eAAO,MAAM,yBAAyB,EAAE,oBAAoB,EAW3D,CAAA"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
export { ComponentTypes } from '
|
2
|
-
export { ConditionalComponentTypes } from '
|
3
|
-
export { ComponentTypeEnum } from '
|
4
|
-
export type * from './types';
|
1
|
+
export { ComponentTypes } from '../components/component-types';
|
2
|
+
export { ConditionalComponentTypes } from '../components/conditional-component-types';
|
3
|
+
export { ComponentTypeEnum } from '../components/enums';
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAA;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-abstract.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition-abstract.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,qBAAa,iBAAiB;IAC5B,WAAW,EAAE,WAAW,GAAG,SAAS,CAAA;gBAExB,WAAW,EAAE,WAAW,GAAG,SAAS;IAQhD,iBAAiB;IAIjB,cAAc;IAId,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS;IAInD,OAAO;IAIP,oBAAoB;IAIpB,iBAAiB;IAIjB,gBAAgB;IAMhB,KAAK;IAIL,eAAe;IAMf,mBAAmB;CAKpB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-field.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-field.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"condition-field.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAE3D,qBAAa,cAAc;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;gBAEH,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM;IAkB9D,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,aAAa,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CAGxE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-group-def.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-group-def.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition-group-def.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-group-def.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,qBAAa,iBAAiB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;gBAEA,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAWvC,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,UAAU,CAAC,KAAK,EAAE,MAAM;IAIxB,OAAO,CAAC,UAAU,EAAE,eAAe;CAGpC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Coordinator } from '
|
2
|
-
import { ConditionsArray } from '
|
1
|
+
import { Coordinator } from '../conditions/enums';
|
2
|
+
import { type ConditionsArray } from '../conditions/types';
|
3
3
|
export declare class ConditionGroup {
|
4
4
|
conditions: ConditionsArray;
|
5
5
|
constructor(conditions?: ConditionsArray);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-group.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition-group.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,qBAAa,cAAc;IACzB,UAAU,EAAE,eAAe,CAAA;gBAEf,UAAU,GAAE,eAAoB;IAQ5C,iBAAiB;IAIjB,eAAe;IAQf,mBAAmB;IAQnB,gBAAgB;IAKhB,cAAc;IAId,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS;IAInD,OAAO;IAIP,oBAAoB;IAIpB,KAAK;CAKN"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ConditionGroupDef } from '
|
2
|
-
import { Condition } from '
|
3
|
-
import { ConditionRef } from '
|
4
|
-
import { ConditionGroup } from '
|
5
|
-
import { ConditionsArray } from '
|
1
|
+
import { ConditionGroupDef } from '../conditions/condition-group-def';
|
2
|
+
import { Condition } from '../conditions/condition';
|
3
|
+
import { ConditionRef } from '../conditions/condition-ref';
|
4
|
+
import { ConditionGroup } from '../conditions/condition-group';
|
5
|
+
import { type ConditionsArray } from '../conditions/types';
|
6
6
|
type ConditionRawObject = ConditionsModel | {
|
7
7
|
name: string;
|
8
8
|
conditions: Condition[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-model.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition-model.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAIjE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,KAAK,kBAAkB,GACnB,eAAe,GACf;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB,CAAA;AAEL,qBAAa,eAAe;;gBAKd,iBAAiB,CAAC,EAAE,kBAAkB;IAElD,KAAK;IAYL,KAAK;IAOL,IAAI,IAAI,CAAC,IAAI,oBAAA,EAEZ;IAED,IAAI,IAAI,uBAEP;IAED,GAAG,CAAC,SAAS,EAAE,SAAS;IAexB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS;IAmB3C,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE;IAWxB,SAAS,CAAC,SAAS,EAAE,iBAAiB,EAAE;IASxC,UAAU,CAAC,KAAK,EAAE,MAAM;IASxB,WAAW,CAAC,KAAK,EAAE,MAAM;IAezB,SAAS,CAAC,KAAK,EAAE,MAAM;IAevB,kBAAkB;IAOlB,IAAI,kBAAkB,kDAErB;IAED,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,WAEZ;IAED,oBAAoB;IAMpB,YAAY;IAMZ,YAAY,CACV,qBAAqB,EAAE,CAAC,SAAS,GAAG,cAAc,GAAG,YAAY,CAAC,EAAE;IAmBtE,MAAM,CAAC,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAiBlE,QAAQ,CAAC,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM;IAaxD,cAAc,CAAC,UAAU,EAAE,eAAe;IAkC1C,MAAM;;;;IAUN,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,GAAG,eAAe;CActD"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ComponentType, ComponentDef } from '../components';
|
2
|
-
import { ConditionValueAbstract } from '
|
1
|
+
import { type ComponentType, type ComponentDef } from '../components/types';
|
2
|
+
import { ConditionValueAbstract } from '../conditions/condition-value-abstract';
|
3
3
|
export declare const customOperators: {
|
4
4
|
CheckboxesField: {
|
5
5
|
contains: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-operators.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-operators.ts"],"names":[],"mappings":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AAY;;;;;gCAOZ,YAAY;;;gCAAZ,YAAY;;;gCAAZ,YAAY;;;;gCAPZ,YAAY;;;gCAAZ,YAAY;;;;;gCAOZ,YAAY;;;gCAAZ,YAAY;;;gCAAZ,YAAY;;;;gCAPZ,YAAY;;;gCAAZ,YAAY;;;CA5BnC,CAAA;AAED,wBAAgB,gBAAgB,CAAC,SAAS,KAAA,YAEzC;AAED,wBAAgB,aAAa,CAC3B,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,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,5 +1,5 @@
|
|
1
|
-
import { ConditionAbstract } from '
|
2
|
-
import { Coordinator } from '
|
1
|
+
import { ConditionAbstract } from '../conditions/condition-abstract';
|
2
|
+
import { Coordinator } from '../conditions/enums';
|
3
3
|
export declare class ConditionRef extends ConditionAbstract {
|
4
4
|
conditionName: string;
|
5
5
|
conditionDisplayName: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-ref.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition-ref.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,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 +1 @@
|
|
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,
|
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,+CAA+C,CAAA;AAE5E,qBAAa,sBAAsB;IACjC,IAAI,EAAE,MAAM,CAAA;gBAEA,YAAY,EAAE,YAAY;IActC,oBAAoB;IAMpB,YAAY;CAKb"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { ConditionValueAbstract } from '
|
2
|
-
import { Registration } from '
|
3
|
-
import { DateTimeUnitValues, DateUnits, TimeUnits } from '
|
1
|
+
import { ConditionValueAbstract } from '../conditions/condition-value-abstract';
|
2
|
+
import { Registration } from '../conditions/condition-value-registration';
|
3
|
+
import { type DateTimeUnitValues, type DateUnits, type TimeUnits } from '../conditions/types';
|
4
4
|
export declare class ConditionValue extends ConditionValueAbstract {
|
5
5
|
value: string;
|
6
6
|
display: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition-values.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition-values.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAC5E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAA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import { ConditionField } from '
|
2
|
-
import { ConditionAbstract } from '
|
3
|
-
import { ConditionValue, RelativeTimeValue } from '
|
4
|
-
import { Coordinator } from '
|
1
|
+
import { ConditionField } from '../conditions/condition-field';
|
2
|
+
import { ConditionAbstract } from '../conditions/condition-abstract';
|
3
|
+
import { ConditionValue, RelativeTimeValue } from '../conditions/condition-values';
|
4
|
+
import { Coordinator } from '../conditions/enums';
|
5
5
|
export declare class Condition extends ConditionAbstract {
|
6
6
|
field: ConditionField;
|
7
7
|
operator: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAEvE,OAAO,EACL,cAAc,EACd,iBAAiB,EAClB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,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 +1,11 @@
|
|
1
|
-
export { getExpression, getOperatorConfig, getOperatorNames, absoluteDateOrTimeOperatorNames, relativeDateOrTimeOperatorNames } from '
|
2
|
-
export { timeUnits, dateUnits, dateTimeUnits, ConditionValue, DateDirections, RelativeTimeValue, conditionValueFrom } from '
|
3
|
-
export { ConditionField } from '
|
4
|
-
export { Condition } from '
|
5
|
-
export { ConditionRef } from '
|
6
|
-
export { ConditionGroup } from '
|
7
|
-
export { ConditionsModel } from '
|
8
|
-
export { ConditionGroupDef } from '
|
9
|
-
export { toExpression, toPresentationString } from '
|
10
|
-
export { Coordinator } from '
|
1
|
+
export { getExpression, getOperatorConfig, getOperatorNames, absoluteDateOrTimeOperatorNames, relativeDateOrTimeOperatorNames } from '../conditions/condition-operators';
|
2
|
+
export { timeUnits, dateUnits, dateTimeUnits, ConditionValue, DateDirections, RelativeTimeValue, conditionValueFrom } from '../conditions/condition-values';
|
3
|
+
export { ConditionField } from '../conditions/condition-field';
|
4
|
+
export { Condition } from '../conditions/condition';
|
5
|
+
export { ConditionRef } from '../conditions/condition-ref';
|
6
|
+
export { ConditionGroup } from '../conditions/condition-group';
|
7
|
+
export { ConditionsModel } from '../conditions/condition-model';
|
8
|
+
export { ConditionGroupDef } from '../conditions/condition-group-def';
|
9
|
+
export { toExpression, toPresentationString } from '../conditions/helpers';
|
10
|
+
export { Coordinator } from '../conditions/enums';
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
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,
|
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,sCAAsC,CAAA;AAE7C,OAAO,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inline-condition-model.d.ts","sourceRoot":"","sources":["../../../src/conditions/inline-condition-model.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"inline-condition-model.d.ts","sourceRoot":"","sources":["../../../src/conditions/inline-condition-model.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;CAGxB,CAAA;AAED,qBAAa,eAAe;;;IAU1B,KAAK;IAYL,KAAK;IAOL,IAAI,IAAI,CAAC,IAAI,KAAA,EAEZ;IAED,IAAI,IAAI,QAEP;IAED,GAAG,CAAC,SAAS,KAAA;IAYb,OAAO,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA;IAgBxB,MAAM,CAAC,OAAO,KAAA;IAWd,SAAS,CAAC,SAAS,KAAA;IASnB,UAAU,CAAC,KAAK,KAAA;IAShB,WAAW,CAAC,KAAK,KAAA;IAejB,SAAS,CAAC,KAAK,KAAA;IAef,kBAAkB;IAOlB,IAAI,kBAAkB,UAErB;IAED,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,WAEZ;IAED,oBAAoB;IAMpB,YAAY;IAMZ,YAAY,CAAC,qBAAqB,KAAA;IAiBlC,MAAM,CAAC,UAAU,KAAA,EAAE,SAAS,KAAA;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,KAAK;CAON"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Condition } from '
|
2
|
-
import { ConditionRef } from '
|
3
|
-
import { ConditionGroup } from '
|
1
|
+
import { type Condition } from '../conditions/condition';
|
2
|
+
import { type ConditionRef } from '../conditions/condition-ref';
|
3
|
+
import { type ConditionGroup } from '../conditions/condition-group';
|
4
4
|
export type ConditionsArray = (Condition | ConditionGroup | ConditionRef)[];
|
5
5
|
export type DateTimeUnitValues = 'years' | 'months' | 'days' | 'hours' | 'minutes' | 'seconds';
|
6
6
|
export type DateUnits = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conditions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/conditions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEtE,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,13 +1,4 @@
|
|
1
|
-
import {
|
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
|
-
};
|
1
|
+
import { type ConditionRawData, type ConditionWrapperValue } from '../data-model/types';
|
11
2
|
export declare class ConditionsWrapper {
|
12
3
|
name: string;
|
13
4
|
displayName: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"conditions-wrapper.d.ts","sourceRoot":"","sources":["../../../src/data-model/conditions-wrapper.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"conditions-wrapper.d.ts","sourceRoot":"","sources":["../../../src/data-model/conditions-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAA;AAE/B,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 +1,4 @@
|
|
1
|
-
export { InputWrapper } from '
|
2
|
-
export { ConditionsWrapper
|
3
|
-
export {
|
4
|
-
export { OutputType } from './enums';
|
1
|
+
export { InputWrapper } from '../data-model/input-wrapper';
|
2
|
+
export { ConditionsWrapper } from '../data-model/conditions-wrapper';
|
3
|
+
export { OutputType } from '../data-model/enums';
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data-model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data-model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ComponentDef } from '../components/types';
|
2
|
-
import { Page } from '
|
1
|
+
import { type ComponentDef } from '../components/types';
|
2
|
+
import { type Page } from '../data-model/types';
|
3
3
|
export declare class InputWrapper {
|
4
4
|
#private;
|
5
5
|
name: string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input-wrapper.d.ts","sourceRoot":"","sources":["../../../src/data-model/input-wrapper.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"input-wrapper.d.ts","sourceRoot":"","sources":["../../../src/data-model/input-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAGlD,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,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { OutputType } from '
|
1
|
+
import { type ComponentDef } from '../components/types';
|
2
|
+
import { type Condition } from '../conditions/condition';
|
3
|
+
import { type OutputType } from '../data-model/enums';
|
4
4
|
type Toggleable<T> = boolean | T;
|
5
5
|
export interface Next {
|
6
6
|
path: string;
|
@@ -123,6 +123,15 @@ export type FeeOptions = {
|
|
123
123
|
customPayErrorMessage?: string;
|
124
124
|
showPaymentSkippedWarningPage: boolean;
|
125
125
|
};
|
126
|
+
export type ConditionWrapperValue = string | {
|
127
|
+
name: string;
|
128
|
+
conditions: Condition[];
|
129
|
+
};
|
130
|
+
export type ConditionRawData = {
|
131
|
+
name: string;
|
132
|
+
displayName: string;
|
133
|
+
value: ConditionWrapperValue;
|
134
|
+
};
|
126
135
|
/**
|
127
136
|
* `FormDefinition` is a typescript representation of `Schema`
|
128
137
|
*/
|