@tsed/schema-formio 6.114.16 → 6.114.17
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.
|
@@ -6,7 +6,7 @@ const change_case_1 = require("change-case");
|
|
|
6
6
|
const FormioMappersContainer_1 = require("../registries/FormioMappersContainer");
|
|
7
7
|
function bindResolvers(component, options) {
|
|
8
8
|
if (component.data) {
|
|
9
|
-
const data = component.data;
|
|
9
|
+
const data = { ...component.data };
|
|
10
10
|
Object.entries(data).forEach(([key, resolver]) => {
|
|
11
11
|
if ((0, core_1.isFunction)(resolver)) {
|
|
12
12
|
options.resolvers.push(async (form) => {
|
|
@@ -14,7 +14,12 @@ function bindResolvers(component, options) {
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
+
return {
|
|
18
|
+
...component,
|
|
19
|
+
data
|
|
20
|
+
};
|
|
17
21
|
}
|
|
22
|
+
return component;
|
|
18
23
|
}
|
|
19
24
|
function mapValidation(key, base, schema, propSchema) {
|
|
20
25
|
const required = (schema.required || []).includes(key);
|
|
@@ -54,13 +59,13 @@ function propertiesToComponents(schema, options) {
|
|
|
54
59
|
Object.entries(schema.properties).forEach(([key, propSchema]) => {
|
|
55
60
|
const tabsOptions = propSchema["x-formiotabs"];
|
|
56
61
|
const base = (0, FormioMappersContainer_1.execMapper)("any", propSchema, { parentKey: key, ...options });
|
|
57
|
-
|
|
62
|
+
let component = (0, core_1.cleanObject)({
|
|
58
63
|
key,
|
|
59
64
|
...base,
|
|
60
65
|
label: base.label == false ? undefined : base.label || propSchema.title || (0, change_case_1.sentenceCase)(key),
|
|
61
66
|
validate: mapValidation(key, base, schema, propSchema)
|
|
62
67
|
});
|
|
63
|
-
bindResolvers(component, options);
|
|
68
|
+
component = bindResolvers(component, options);
|
|
64
69
|
if (tabsOptions) {
|
|
65
70
|
if (!tabs.pushed) {
|
|
66
71
|
components.push(tabs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertiesToComponents.js","sourceRoot":"","sources":["../../../src/components/propertiesToComponents.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;
|
|
1
|
+
{"version":3,"file":"propertiesToComponents.js","sourceRoot":"","sources":["../../../src/components/propertiesToComponents.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AAEnD,6CAAyC;AACzC,iFAAsF;AAEtF,SAAS,aAAa,CAAC,SAA0B,EAAE,OAAY;IAC7D,IAAI,SAAS,CAAC,IAAI,EAAE;QAClB,MAAM,IAAI,GAAG,EAAC,GAAG,SAAS,CAAC,IAAI,EAAC,CAAC;QAEjC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE;YAC/C,IAAI,IAAA,iBAAU,EAAC,QAAQ,CAAC,EAAE;gBACxB,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAgB,EAAE,EAAE;oBAChD,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,QAAQ,CAAC,EAAC,GAAG,OAAO,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,SAAS;YACZ,IAAI;SACL,CAAC;KACH;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,aAAa,CAAC,GAAW,EAAE,IAAqB,EAAE,MAAW,EAAE,UAAe;IACrF,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG;QACf,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC;QACxB,QAAQ;QACR,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,SAAS,EAAE,CAAC,QAAQ,IAAI,CAAC,QAAQ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ject, isFunction} from \"@tsed/core\";\nimport {FormioComponent, FormioForm} from \"@tsed/formio-types\";\nimport {sentenceCase} from \"change-case\";\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer\";\n\nfunction bindResolvers(component: FormioComponent, options: any) {\n if (component.data) {\n const data = {...component.data};\n\n Object.entries(data).forEach(([key, resolver]) => {\n if (isFunction(resolver)) {\n options.resolvers.push(async (form: FormioForm) => {\n data[key] = await resolver({...options, component, form});\n });\n }\n });\n\n return {\n ...component,\n data\n };\n }\n\n return component;\n}\n\nfunction mapValidation(key: string, base: FormioComponent, schema: any, propSchema: any) {\n const required = (schema.required || []).includes(key);\n const validate = {\n ...(base.validate || {}),\n required,\n pattern: propSchema.pattern,\n minLength: !required || (required && propSchema.minLength > 1) ? propSchema.minLength : undefined,\n maxLength: propSchema.maxLength,\n min: propSchema.minimum,\n max: propSchema.maximum\n };\n\n switch (propSchema.type) {\n case \"string\":\n if (propSchema.minLength === 0 && validate.required) {\n validate.minLength = undefined;\n validate.required = false;\n }\n break;\n case \"boolean\":\n validate.required = false;\n break;\n }\n\n return cleanObject(validate);\n}\n\nexport function propertiesToComponents(schema: any, options: any): any[] {\n const tabs = {\n label: \"Tabs\",\n key: \"tabs\",\n type: \"tabs\",\n input: false,\n tableView: false,\n components: new Map<string, any>(),\n pushed: false\n };\n const components: any[] = [];\n\n Object.entries(schema.properties).forEach(([key, propSchema]: [string, any]) => {\n const tabsOptions = propSchema[\"x-formiotabs\"];\n const base = execMapper(\"any\", propSchema, {parentKey: key, ...options});\n\n let component = cleanObject({\n key,\n ...base,\n label: base.label == false ? undefined : base.label || propSchema.title || sentenceCase(key),\n validate: mapValidation(key, base, schema, propSchema)\n });\n\n component = bindResolvers(component, options);\n\n if (tabsOptions) {\n if (!tabs.pushed) {\n components.push(tabs);\n tabs.pushed = true;\n }\n\n if (!tabs.components.has(tabsOptions.key)) {\n tabs.components.set(tabsOptions.key, {\n ...tabsOptions,\n components: []\n });\n }\n\n tabs.components.get(tabsOptions.key).components.push(component);\n } else {\n components.push(component);\n }\n });\n\n if (tabs.components.size) {\n tabs.components = [...tabs.components.values()] as any;\n }\n\n return components;\n}\n\nregisterFormioMapper(\"properties\", propertiesToComponents);\n"]}
|
|
@@ -3,7 +3,7 @@ import { sentenceCase } from "change-case";
|
|
|
3
3
|
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
4
4
|
function bindResolvers(component, options) {
|
|
5
5
|
if (component.data) {
|
|
6
|
-
const data = component.data;
|
|
6
|
+
const data = { ...component.data };
|
|
7
7
|
Object.entries(data).forEach(([key, resolver]) => {
|
|
8
8
|
if (isFunction(resolver)) {
|
|
9
9
|
options.resolvers.push(async (form) => {
|
|
@@ -11,7 +11,12 @@ function bindResolvers(component, options) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
+
return {
|
|
15
|
+
...component,
|
|
16
|
+
data
|
|
17
|
+
};
|
|
14
18
|
}
|
|
19
|
+
return component;
|
|
15
20
|
}
|
|
16
21
|
function mapValidation(key, base, schema, propSchema) {
|
|
17
22
|
const required = (schema.required || []).includes(key);
|
|
@@ -51,13 +56,13 @@ export function propertiesToComponents(schema, options) {
|
|
|
51
56
|
Object.entries(schema.properties).forEach(([key, propSchema]) => {
|
|
52
57
|
const tabsOptions = propSchema["x-formiotabs"];
|
|
53
58
|
const base = execMapper("any", propSchema, { parentKey: key, ...options });
|
|
54
|
-
|
|
59
|
+
let component = cleanObject({
|
|
55
60
|
key,
|
|
56
61
|
...base,
|
|
57
62
|
label: base.label == false ? undefined : base.label || propSchema.title || sentenceCase(key),
|
|
58
63
|
validate: mapValidation(key, base, schema, propSchema)
|
|
59
64
|
});
|
|
60
|
-
bindResolvers(component, options);
|
|
65
|
+
component = bindResolvers(component, options);
|
|
61
66
|
if (tabsOptions) {
|
|
62
67
|
if (!tabs.pushed) {
|
|
63
68
|
components.push(tabs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertiesToComponents.js","sourceRoot":"","sources":["../../../src/components/propertiesToComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"propertiesToComponents.js","sourceRoot":"","sources":["../../../src/components/propertiesToComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,sCAAsC,CAAC;AAEtF,SAAS,aAAa,CAAC,SAA0B,EAAE,OAAY;IAC7D,IAAI,SAAS,CAAC,IAAI,EAAE;QAClB,MAAM,IAAI,GAAG,EAAC,GAAG,SAAS,CAAC,IAAI,EAAC,CAAC;QAEjC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE;YAC/C,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;gBACxB,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAgB,EAAE,EAAE;oBAChD,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,QAAQ,CAAC,EAAC,GAAG,OAAO,EAAE,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,SAAS;YACZ,IAAI;SACL,CAAC;KACH;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,aAAa,CAAC,GAAW,EAAE,IAAqB,EAAE,MAAW,EAAE,UAAe;IACrF,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACvD,MAAM,QAAQ,GA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KACxD;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,oBAAoB,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAC","sourcesContent":["import {cleanObject, isFunction} from \"@tsed/core\";\nimport {FormioComponent, FormioForm} from \"@tsed/formio-types\";\nimport {sentenceCase} from \"change-case\";\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer\";\n\nfunction bindResolvers(component: FormioComponent, options: any) {\n if (component.data) {\n const data = {...component.data};\n\n Object.entries(data).forEach(([key, resolver]) => {\n if (isFunction(resolver)) {\n options.resolvers.push(async (form: FormioForm) => {\n data[key] = await resolver({...options, component, form});\n });\n }\n });\n\n return {\n ...component,\n data\n };\n }\n\n return component;\n}\n\nfunction mapValidation(key: string, base: FormioComponent, schema: any, propSchema: any) {\n const required = (schema.required || []).includes(key);\n const validate = {\n ...(base.validate || {}),\n required,\n pattern: propSchema.pattern,\n minLength: !required || (required && propSchema.minLength > 1) ? propSchema.minLength : undefined,\n maxLength: propSchema.maxLength,\n min: propSchema.minimum,\n max: propSchema.maximum\n };\n\n switch (propSchema.type) {\n case \"string\":\n if (propSchema.minLength === 0 && validate.required) {\n validate.minLength = undefined;\n validate.required = false;\n }\n break;\n case \"boolean\":\n validate.required = false;\n break;\n }\n\n return cleanObject(validate);\n}\n\nexport function propertiesToComponents(schema: any, options: any): any[] {\n const tabs = {\n label: \"Tabs\",\n key: \"tabs\",\n type: \"tabs\",\n input: false,\n tableView: false,\n components: new Map<string, any>(),\n pushed: false\n };\n const components: any[] = [];\n\n Object.entries(schema.properties).forEach(([key, propSchema]: [string, any]) => {\n const tabsOptions = propSchema[\"x-formiotabs\"];\n const base = execMapper(\"any\", propSchema, {parentKey: key, ...options});\n\n let component = cleanObject({\n key,\n ...base,\n label: base.label == false ? undefined : base.label || propSchema.title || sentenceCase(key),\n validate: mapValidation(key, base, schema, propSchema)\n });\n\n component = bindResolvers(component, options);\n\n if (tabsOptions) {\n if (!tabs.pushed) {\n components.push(tabs);\n tabs.pushed = true;\n }\n\n if (!tabs.components.has(tabsOptions.key)) {\n tabs.components.set(tabsOptions.key, {\n ...tabsOptions,\n components: []\n });\n }\n\n tabs.components.get(tabsOptions.key).components.push(component);\n } else {\n components.push(component);\n }\n });\n\n if (tabs.components.size) {\n tabs.components = [...tabs.components.values()] as any;\n }\n\n return components;\n}\n\nregisterFormioMapper(\"properties\", propertiesToComponents);\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/schema-formio",
|
|
3
|
-
"version": "6.114.
|
|
3
|
+
"version": "6.114.17",
|
|
4
4
|
"description": "Transform Ts.ED Schema & JsonSchema to a valid Formio schema",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"tsed"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tsed/formio-types": "6.114.
|
|
36
|
+
"@tsed/formio-types": "6.114.17",
|
|
37
37
|
"change-case": "4.1.2",
|
|
38
38
|
"tslib": "2.4.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@tsed/core": "6.114.
|
|
42
|
-
"@tsed/openspec": "6.114.
|
|
43
|
-
"@tsed/schema": "6.114.
|
|
41
|
+
"@tsed/core": "6.114.17",
|
|
42
|
+
"@tsed/openspec": "6.114.17",
|
|
43
|
+
"@tsed/schema": "6.114.17"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@tsed/core": "^6.114.
|
|
47
|
-
"@tsed/openspec": "^6.114.
|
|
48
|
-
"@tsed/schema": "^6.114.
|
|
46
|
+
"@tsed/core": "^6.114.17",
|
|
47
|
+
"@tsed/openspec": "^6.114.17",
|
|
48
|
+
"@tsed/schema": "^6.114.17",
|
|
49
49
|
"formiojs": ">=4.0.0",
|
|
50
50
|
"lodash": ">=4.0.0",
|
|
51
51
|
"moment": ">=2.0.0"
|