@tsed/schema-formio 6.102.4 → 6.102.8-rc.1
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/lib/cjs/package.json +3 -0
- package/lib/esm/components/anyToComponent.js +2 -2
- package/lib/esm/components/arrayToComponent.js +2 -2
- package/lib/esm/components/booleanToComponent.js +1 -1
- package/lib/esm/components/dateToComponent.js +1 -1
- package/lib/esm/components/defaultToComponent.js +2 -2
- package/lib/esm/components/enumToComponent.js +1 -1
- package/lib/esm/components/index.js +13 -13
- package/lib/esm/components/mapToComponent.js +1 -1
- package/lib/esm/components/nestedToComponent.js +1 -1
- package/lib/esm/components/numberToComponent.js +1 -1
- package/lib/esm/components/objectToEditGrid.js +1 -1
- package/lib/esm/components/panelToComponent.js +1 -1
- package/lib/esm/components/propertiesToComponents.js +1 -1
- package/lib/esm/components/stringToComponent.js +1 -1
- package/lib/esm/decorators/conditional.js +1 -1
- package/lib/esm/decorators/currency.js +1 -1
- package/lib/esm/decorators/customClass.js +1 -1
- package/lib/esm/decorators/customConditional.js +1 -1
- package/lib/esm/decorators/dataSourceJson.js +1 -1
- package/lib/esm/decorators/dataSourceUrl.js +1 -1
- package/lib/esm/decorators/errorLabel.js +1 -1
- package/lib/esm/decorators/errorMessage.js +1 -1
- package/lib/esm/decorators/form.js +1 -1
- package/lib/esm/decorators/hidden.js +1 -1
- package/lib/esm/decorators/index.js +30 -30
- package/lib/esm/decorators/inputTags.js +1 -1
- package/lib/esm/decorators/label.js +1 -1
- package/lib/esm/decorators/mask.js +1 -1
- package/lib/esm/decorators/maxWords.js +1 -1
- package/lib/esm/decorators/minWords.js +1 -1
- package/lib/esm/decorators/modalEdit.js +1 -1
- package/lib/esm/decorators/multiple.js +1 -1
- package/lib/esm/decorators/openWhenEmpty.js +1 -1
- package/lib/esm/decorators/password.js +1 -1
- package/lib/esm/decorators/placeholder.js +1 -1
- package/lib/esm/decorators/prefix.js +1 -1
- package/lib/esm/decorators/select.js +1 -1
- package/lib/esm/decorators/suffix.js +1 -1
- package/lib/esm/decorators/tableView.js +1 -1
- package/lib/esm/decorators/textCase.js +1 -1
- package/lib/esm/decorators/textarea.js +1 -1
- package/lib/esm/decorators/tooltip.js +1 -1
- package/lib/esm/decorators/validate.js +1 -1
- package/lib/esm/index.js +4 -4
- package/lib/esm/package.json +3 -0
- package/lib/esm/utils/getFormioSchema.js +3 -3
- package/package.json +10 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
2
|
-
import { getRef } from "../utils/getRef";
|
|
1
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
2
|
+
import { getRef } from "../utils/getRef.js";
|
|
3
3
|
export function anyToComponent(schema, options) {
|
|
4
4
|
schema = getRef(schema, options);
|
|
5
5
|
switch (schema === null || schema === void 0 ? void 0 : schema.type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cleanObject } from "@tsed/core";
|
|
2
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
3
|
-
import { getRef } from "../utils/getRef";
|
|
2
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
|
+
import { getRef } from "../utils/getRef.js";
|
|
4
4
|
export function arrayToComponent(schema, options) {
|
|
5
5
|
const itemSchema = schema.items.$ref ? getRef(schema.items, options) : schema.items;
|
|
6
6
|
const { type } = itemSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanObject } from "@tsed/core";
|
|
2
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
2
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
3
|
function booleanToComponent(schema, options) {
|
|
4
4
|
const component = execMapper("default", schema, options);
|
|
5
5
|
return cleanObject({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
1
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
2
2
|
function dateToComponent(schema, options) {
|
|
3
3
|
const component = execMapper("default", schema, options);
|
|
4
4
|
const base = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cleanObject } from "@tsed/core";
|
|
2
|
-
import { registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
3
|
-
import { getFormioProps } from "../utils/getFormioProps";
|
|
2
|
+
import { registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
|
+
import { getFormioProps } from "../utils/getFormioProps.js";
|
|
4
4
|
export function defaultToComponent(schema, options) {
|
|
5
5
|
const formioProps = getFormioProps(schema);
|
|
6
6
|
return cleanObject({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanObject } from "@tsed/core";
|
|
2
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
2
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
3
|
export function enumToComponent(schema, options) {
|
|
4
4
|
const component = execMapper("default", schema, options);
|
|
5
5
|
const values = schema.enum.map((value) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./anyToComponent";
|
|
2
|
-
export * from "./arrayToComponent";
|
|
3
|
-
export * from "./booleanToComponent";
|
|
4
|
-
export * from "./dateToComponent";
|
|
5
|
-
export * from "./defaultToComponent";
|
|
6
|
-
export * from "./enumToComponent";
|
|
7
|
-
export * from "./mapToComponent";
|
|
8
|
-
export * from "./nestedToComponent";
|
|
9
|
-
export * from "./numberToComponent";
|
|
10
|
-
export * from "./objectToEditGrid";
|
|
11
|
-
export * from "./panelToComponent";
|
|
12
|
-
export * from "./propertiesToComponents";
|
|
13
|
-
export * from "./stringToComponent";
|
|
1
|
+
export * from "./anyToComponent.js";
|
|
2
|
+
export * from "./arrayToComponent.js";
|
|
3
|
+
export * from "./booleanToComponent.js";
|
|
4
|
+
export * from "./dateToComponent.js";
|
|
5
|
+
export * from "./defaultToComponent.js";
|
|
6
|
+
export * from "./enumToComponent.js";
|
|
7
|
+
export * from "./mapToComponent.js";
|
|
8
|
+
export * from "./nestedToComponent.js";
|
|
9
|
+
export * from "./numberToComponent.js";
|
|
10
|
+
export * from "./objectToEditGrid.js";
|
|
11
|
+
export * from "./panelToComponent.js";
|
|
12
|
+
export * from "./propertiesToComponents.js";
|
|
13
|
+
export * from "./stringToComponent.js";
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
1
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
2
2
|
export function mapToComponent(schema, options) {
|
|
3
3
|
return {
|
|
4
4
|
...execMapper("default", schema, options),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sentenceCase } from "change-case";
|
|
2
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
2
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
3
|
export function nestedToComponent(schema, options) {
|
|
4
4
|
return {
|
|
5
5
|
...execMapper("default", schema, options),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanObject, getValue } from "@tsed/core";
|
|
2
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
2
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
3
|
export function numberToComponent(schema, options) {
|
|
4
4
|
const component = execMapper("default", schema, options);
|
|
5
5
|
return cleanObject({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
1
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
2
2
|
export function objectToEditGrid(schema, options) {
|
|
3
3
|
return {
|
|
4
4
|
...execMapper("default", schema, options),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
1
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
2
2
|
export function panelToComponent(schema, options) {
|
|
3
3
|
return {
|
|
4
4
|
...execMapper("default", schema, options),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cleanObject, isFunction } from "@tsed/core";
|
|
2
2
|
import { sentenceCase } from "change-case";
|
|
3
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
3
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
4
4
|
function bindResolvers(component, options) {
|
|
5
5
|
if (component.data) {
|
|
6
6
|
const data = component.data;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanObject } from "@tsed/core";
|
|
2
|
-
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer";
|
|
2
|
+
import { execMapper, registerFormioMapper } from "../registries/FormioMappersContainer.js";
|
|
3
3
|
export function stringToComponent(schema, options) {
|
|
4
4
|
if (schema.format) {
|
|
5
5
|
const component = execMapper("default", schema, options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { nameOf, StoreSet, useDecorators } from "@tsed/core";
|
|
2
2
|
import { Name } from "@tsed/schema";
|
|
3
3
|
import { paramCase } from "change-case";
|
|
4
|
-
import { FormsContainer } from "../registries/FormsContainer";
|
|
4
|
+
import { FormsContainer } from "../registries/FormsContainer.js";
|
|
5
5
|
/**
|
|
6
6
|
* Expose the model as Formio Form.
|
|
7
7
|
* @param form
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export * from "./component";
|
|
2
|
-
export * from "./currency";
|
|
3
|
-
export * from "./dataSourceJson";
|
|
4
|
-
export * from "./dataSourceUrl";
|
|
5
|
-
export * from "./hidden";
|
|
6
|
-
export * from "./inputTags";
|
|
7
|
-
export * from "./multiple";
|
|
8
|
-
export * from "./password";
|
|
9
|
-
export * from "./select";
|
|
10
|
-
export * from "./tableView";
|
|
11
|
-
export * from "./textarea";
|
|
12
|
-
export * from "./errorMessage";
|
|
13
|
-
export * from "./errorLabel";
|
|
14
|
-
export * from "./minWords";
|
|
15
|
-
export * from "./maxWords";
|
|
16
|
-
export * from "./validate";
|
|
17
|
-
export * from "./form";
|
|
18
|
-
export * from "./tabs";
|
|
19
|
-
export * from "./placeholder";
|
|
20
|
-
export * from "./tooltip";
|
|
21
|
-
export * from "./label";
|
|
22
|
-
export * from "./customClass";
|
|
23
|
-
export * from "./modalEdit";
|
|
24
|
-
export * from "./mask";
|
|
25
|
-
export * from "./prefix";
|
|
26
|
-
export * from "./suffix";
|
|
27
|
-
export * from "./textCase";
|
|
28
|
-
export * from "./conditional";
|
|
29
|
-
export * from "./customConditional";
|
|
30
|
-
export * from "./openWhenEmpty";
|
|
1
|
+
export * from "./component.js";
|
|
2
|
+
export * from "./currency.js";
|
|
3
|
+
export * from "./dataSourceJson.js";
|
|
4
|
+
export * from "./dataSourceUrl.js";
|
|
5
|
+
export * from "./hidden.js";
|
|
6
|
+
export * from "./inputTags.js";
|
|
7
|
+
export * from "./multiple.js";
|
|
8
|
+
export * from "./password.js";
|
|
9
|
+
export * from "./select.js";
|
|
10
|
+
export * from "./tableView.js";
|
|
11
|
+
export * from "./textarea.js";
|
|
12
|
+
export * from "./errorMessage.js";
|
|
13
|
+
export * from "./errorLabel.js";
|
|
14
|
+
export * from "./minWords.js";
|
|
15
|
+
export * from "./maxWords.js";
|
|
16
|
+
export * from "./validate.js";
|
|
17
|
+
export * from "./form.js";
|
|
18
|
+
export * from "./tabs.js";
|
|
19
|
+
export * from "./placeholder.js";
|
|
20
|
+
export * from "./tooltip.js";
|
|
21
|
+
export * from "./label.js";
|
|
22
|
+
export * from "./customClass.js";
|
|
23
|
+
export * from "./modalEdit.js";
|
|
24
|
+
export * from "./mask.js";
|
|
25
|
+
export * from "./prefix.js";
|
|
26
|
+
export * from "./suffix.js";
|
|
27
|
+
export * from "./textCase.js";
|
|
28
|
+
export * from "./conditional.js";
|
|
29
|
+
export * from "./customConditional.js";
|
|
30
|
+
export * from "./openWhenEmpty.js";
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./components";
|
|
2
|
-
export * from "./decorators";
|
|
3
|
-
export * from "./registries/FormioMappersContainer";
|
|
4
|
-
export * from "./utils/getFormioSchema";
|
|
1
|
+
export * from "./components.js";
|
|
2
|
+
export * from "./decorators.js";
|
|
3
|
+
export * from "./registries/FormioMappersContainer.js";
|
|
4
|
+
export * from "./utils/getFormioSchema.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isString } from "@tsed/core";
|
|
2
2
|
import { getJsonSchema, JsonEntityStore } from "@tsed/schema";
|
|
3
|
-
import { execMapper } from "../registries/FormioMappersContainer";
|
|
4
|
-
import "../components";
|
|
5
|
-
import { FormsContainer } from "../registries/FormsContainer";
|
|
3
|
+
import { execMapper } from "../registries/FormioMappersContainer.js";
|
|
4
|
+
import "../components.js";
|
|
5
|
+
import { FormsContainer } from "../registries/FormsContainer.js";
|
|
6
6
|
import { paramCase } from "change-case";
|
|
7
7
|
export async function getFormioSchema(model, options = {}) {
|
|
8
8
|
if (!model) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/schema-formio",
|
|
3
|
-
"version": "6.102.
|
|
3
|
+
"version": "6.102.8-rc.1",
|
|
4
4
|
"description": "Transform Ts.ED Schema & JsonSchema to a valid Formio schema",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
|
+
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
"types": "./lib/types/index.d.ts",
|
|
@@ -31,16 +32,19 @@
|
|
|
31
32
|
"tsed"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@tsed/formio-types": "6.102.
|
|
35
|
+
"@tsed/formio-types": "6.102.8-rc.1",
|
|
35
36
|
"change-case": "4.1.2",
|
|
36
37
|
"tslib": "2.2.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@tsed/core": "6.102.
|
|
40
|
-
"@tsed/openspec": "6.102.
|
|
41
|
-
"@tsed/schema": "6.102.
|
|
40
|
+
"@tsed/core": "6.102.8-rc.1",
|
|
41
|
+
"@tsed/openspec": "6.102.8-rc.1",
|
|
42
|
+
"@tsed/schema": "6.102.8-rc.1"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
45
|
+
"@tsed/core": "^6.102.8-rc.1",
|
|
46
|
+
"@tsed/openspec": "^6.102.8-rc.1",
|
|
47
|
+
"@tsed/schema": "^6.102.8-rc.1",
|
|
44
48
|
"formiojs": ">=4.0.0",
|
|
45
49
|
"lodash": ">=4.0.0",
|
|
46
50
|
"moment": ">=2.0.0"
|
|
@@ -49,7 +53,7 @@
|
|
|
49
53
|
"bugs": {
|
|
50
54
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
51
55
|
},
|
|
52
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
56
|
+
"homepage": "https://github.com/tsedio/tsed/tree/rc/packages/third-parties/schema-formio",
|
|
53
57
|
"author": "Romain Lenzotti",
|
|
54
58
|
"license": "MIT"
|
|
55
59
|
}
|