@tsed/schema-formio 7.79.3 → 7.80.0
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/esm/utils/getFormioSchema.js +13 -13
- package/lib/types-esm/components/anyToComponent.d.ts +1 -0
- package/lib/types-esm/components/arrayToComponent.d.ts +1 -0
- package/lib/types-esm/components/booleanToComponent.d.ts +1 -0
- package/lib/types-esm/components/dateToComponent.d.ts +1 -0
- package/lib/types-esm/components/defaultToComponent.d.ts +1 -0
- package/lib/types-esm/components/enumToComponent.d.ts +1 -0
- package/lib/types-esm/components/mapToComponent.d.ts +1 -0
- package/lib/types-esm/components/nestedToComponent.d.ts +1 -0
- package/lib/types-esm/components/numberToComponent.d.ts +1 -0
- package/lib/types-esm/components/objectToEditGrid.d.ts +1 -0
- package/lib/types-esm/components/panelToComponent.d.ts +1 -0
- package/lib/types-esm/components/propertiesToComponents.d.ts +1 -0
- package/lib/types-esm/components/stringToComponent.d.ts +1 -0
- package/lib/types-esm/decorators/component.d.ts +8 -0
- package/lib/types-esm/decorators/conditional.d.ts +33 -0
- package/lib/types-esm/decorators/currency.d.ts +8 -0
- package/lib/types-esm/decorators/customClass.d.ts +8 -0
- package/lib/types-esm/decorators/customConditional.d.ts +59 -0
- package/lib/types-esm/decorators/dataSourceJson.d.ts +8 -0
- package/lib/types-esm/decorators/dataSourceUrl.d.ts +8 -0
- package/lib/types-esm/decorators/errorLabel.d.ts +8 -0
- package/lib/types-esm/decorators/errorMessage.d.ts +9 -0
- package/lib/types-esm/decorators/form.d.ts +6 -0
- package/lib/types-esm/decorators/hidden.d.ts +12 -0
- package/lib/types-esm/decorators/inputTags.d.ts +8 -0
- package/lib/types-esm/decorators/label.d.ts +9 -0
- package/lib/types-esm/decorators/mask.d.ts +37 -0
- package/lib/types-esm/decorators/maxWords.d.ts +9 -0
- package/lib/types-esm/decorators/minWords.d.ts +9 -0
- package/lib/types-esm/decorators/modalEdit.d.ts +8 -0
- package/lib/types-esm/decorators/multiple.d.ts +8 -0
- package/lib/types-esm/decorators/openWhenEmpty.d.ts +8 -0
- package/lib/types-esm/decorators/password.d.ts +12 -0
- package/lib/types-esm/decorators/placeholder.d.ts +9 -0
- package/lib/types-esm/decorators/prefix.d.ts +8 -0
- package/lib/types-esm/decorators/select.d.ts +14 -0
- package/lib/types-esm/decorators/suffix.d.ts +8 -0
- package/lib/types-esm/decorators/tableView.d.ts +9 -0
- package/lib/types-esm/decorators/tabs.d.ts +8 -0
- package/lib/types-esm/decorators/textCase.d.ts +9 -0
- package/lib/types-esm/decorators/textarea.d.ts +12 -0
- package/lib/types-esm/decorators/tooltip.d.ts +9 -0
- package/lib/types-esm/decorators/validate.d.ts +10 -0
- package/lib/types-esm/domain/FormioDataResolver.d.ts +7 -0
- package/lib/types-esm/index.d.ts +52 -0
- package/lib/types-esm/registries/FormioMappersContainer.d.ts +6 -0
- package/lib/types-esm/registries/FormsContainer.d.ts +2 -0
- package/lib/types-esm/utils/getFormioProps.d.ts +1 -0
- package/lib/types-esm/utils/getFormioSchema.d.ts +16 -0
- package/lib/types-esm/utils/getRef.d.ts +1 -0
- package/package.json +22 -18
- package/vitest.config.mts +21 -0
- package/jest.config.js +0 -20
- package/lib/cjs/package.json +0 -3
- package/lib/esm/package.json +0 -3
- package/tsconfig.esm.json +0 -42
|
@@ -3,19 +3,19 @@ import { getJsonSchema, JsonEntityStore } from "@tsed/schema";
|
|
|
3
3
|
import { execMapper } from "../registries/FormioMappersContainer.js";
|
|
4
4
|
import { FormsContainer } from "../registries/FormsContainer.js";
|
|
5
5
|
import { paramCase } from "change-case";
|
|
6
|
-
import "../components/anyToComponent
|
|
7
|
-
import "../components/arrayToComponent
|
|
8
|
-
import "../components/booleanToComponent
|
|
9
|
-
import "../components/dateToComponent
|
|
10
|
-
import "../components/defaultToComponent
|
|
11
|
-
import "../components/enumToComponent
|
|
12
|
-
import "../components/mapToComponent
|
|
13
|
-
import "../components/nestedToComponent
|
|
14
|
-
import "../components/numberToComponent
|
|
15
|
-
import "../components/objectToEditGrid
|
|
16
|
-
import "../components/panelToComponent
|
|
17
|
-
import "../components/propertiesToComponents
|
|
18
|
-
import "../components/stringToComponent
|
|
6
|
+
import "../components/anyToComponent";
|
|
7
|
+
import "../components/arrayToComponent";
|
|
8
|
+
import "../components/booleanToComponent";
|
|
9
|
+
import "../components/dateToComponent";
|
|
10
|
+
import "../components/defaultToComponent";
|
|
11
|
+
import "../components/enumToComponent";
|
|
12
|
+
import "../components/mapToComponent";
|
|
13
|
+
import "../components/nestedToComponent";
|
|
14
|
+
import "../components/numberToComponent";
|
|
15
|
+
import "../components/objectToEditGrid";
|
|
16
|
+
import "../components/panelToComponent";
|
|
17
|
+
import "../components/propertiesToComponents";
|
|
18
|
+
import "../components/stringToComponent";
|
|
19
19
|
export async function getFormioSchema(model, options = {}) {
|
|
20
20
|
if (!model) {
|
|
21
21
|
return undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function anyToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function arrayToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function defaultToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function enumToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mapToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function nestedToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function numberToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function objectToEditGrid(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function panelToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function propertiesToComponents(schema: any, options: any): any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stringToComponent(schema: any, options: any): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a conditional display rule on the input form.
|
|
3
|
+
* @decorator
|
|
4
|
+
* @formio
|
|
5
|
+
* @property
|
|
6
|
+
* @schema
|
|
7
|
+
* @param conditional
|
|
8
|
+
*/
|
|
9
|
+
export declare function Conditional(conditional: {
|
|
10
|
+
show: boolean;
|
|
11
|
+
when: string;
|
|
12
|
+
eq: any;
|
|
13
|
+
}): PropertyDecorator;
|
|
14
|
+
/**
|
|
15
|
+
* Adds a conditional display rule on the input form.
|
|
16
|
+
* @decorator
|
|
17
|
+
* @formio
|
|
18
|
+
* @property
|
|
19
|
+
* @schema
|
|
20
|
+
* @param property
|
|
21
|
+
* @param eq
|
|
22
|
+
*/
|
|
23
|
+
export declare function ShowWhen(property: string, eq: any): PropertyDecorator;
|
|
24
|
+
/**
|
|
25
|
+
* Adds a conditional display rule on the input form.
|
|
26
|
+
* @decorator
|
|
27
|
+
* @formio
|
|
28
|
+
* @property
|
|
29
|
+
* @schema
|
|
30
|
+
* @param property
|
|
31
|
+
* @param eq
|
|
32
|
+
*/
|
|
33
|
+
export declare function HideWhen(property: string, eq: any): PropertyDecorator;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { FormioComponent, FormioForm, FormioSubmission } from "@tsed/formio-types";
|
|
2
|
+
import type { Moment } from "moment";
|
|
3
|
+
import type { LoDashStatic } from "lodash";
|
|
4
|
+
import type { Utils } from "formiojs";
|
|
5
|
+
export interface CustomConditionalCtx<Value = any, Data = any, Row = any> {
|
|
6
|
+
/**
|
|
7
|
+
* The complete submission object.
|
|
8
|
+
*/
|
|
9
|
+
form: FormioForm;
|
|
10
|
+
/**
|
|
11
|
+
* The complete submission object.
|
|
12
|
+
*/
|
|
13
|
+
submission: FormioSubmission<Data>;
|
|
14
|
+
/**
|
|
15
|
+
* The complete submission data object.
|
|
16
|
+
*/
|
|
17
|
+
data: Data;
|
|
18
|
+
/**
|
|
19
|
+
* Contextual "row" data, used within DataGrid, EditGrid, and Container components
|
|
20
|
+
*/
|
|
21
|
+
row: Row;
|
|
22
|
+
/**
|
|
23
|
+
* The current component JSON
|
|
24
|
+
*/
|
|
25
|
+
component: FormioComponent;
|
|
26
|
+
/**
|
|
27
|
+
* The current component instance.
|
|
28
|
+
*/
|
|
29
|
+
instance: any;
|
|
30
|
+
/**
|
|
31
|
+
* The current value of the component.
|
|
32
|
+
*/
|
|
33
|
+
value: Value;
|
|
34
|
+
/**
|
|
35
|
+
* The moment.js library for date manipulation.
|
|
36
|
+
*/
|
|
37
|
+
moment: Moment;
|
|
38
|
+
/**
|
|
39
|
+
* An instance of Lodash.
|
|
40
|
+
*/
|
|
41
|
+
_: LoDashStatic;
|
|
42
|
+
/**
|
|
43
|
+
* An instance of the FormioUtils object.
|
|
44
|
+
*/
|
|
45
|
+
utils: typeof Utils;
|
|
46
|
+
/**
|
|
47
|
+
* An alias for "utils".
|
|
48
|
+
*/
|
|
49
|
+
util: typeof Utils;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Adds custom conditional rule to display or not the input form.
|
|
53
|
+
* @decorator
|
|
54
|
+
* @formio
|
|
55
|
+
* @property
|
|
56
|
+
* @schema
|
|
57
|
+
* @param customConditional
|
|
58
|
+
*/
|
|
59
|
+
export declare function CustomConditional(customConditional: string | ((ctx: CustomConditionalCtx) => any)): PropertyDecorator;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormioDataResolver } from "../domain/FormioDataResolver.js";
|
|
2
|
+
/**
|
|
3
|
+
* Set custom json data source
|
|
4
|
+
* @param data
|
|
5
|
+
* @param props
|
|
6
|
+
* @constructor
|
|
7
|
+
*/
|
|
8
|
+
export declare function DataSourceJson(data: any | FormioDataResolver, props?: Record<string, any>): PropertyDecorator;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormioDataResolver } from "../domain/FormioDataResolver.js";
|
|
2
|
+
/**
|
|
3
|
+
* Set URL data on the current component.
|
|
4
|
+
* @param url
|
|
5
|
+
* @param props
|
|
6
|
+
* @constructor
|
|
7
|
+
*/
|
|
8
|
+
export declare function DataSourceUrl(url: string | FormioDataResolver, props?: Record<string, any>): PropertyDecorator;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An input mask helps the user with input by ensuring a predefined format.
|
|
3
|
+
*
|
|
4
|
+
* - 9: numeric
|
|
5
|
+
* - a: alphabetical
|
|
6
|
+
* - *: alphanumeric
|
|
7
|
+
*
|
|
8
|
+
* Example telephone mask: (999) 999-9999
|
|
9
|
+
*
|
|
10
|
+
* See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
|
|
11
|
+
*
|
|
12
|
+
* @decorator
|
|
13
|
+
* @formio
|
|
14
|
+
* @property
|
|
15
|
+
* @schema
|
|
16
|
+
*/
|
|
17
|
+
export declare function Mask(inputMask: string, inputMaskPlaceholderChar?: string): PropertyDecorator;
|
|
18
|
+
/**
|
|
19
|
+
* An input mask helps the user with input by ensuring a predefined format.
|
|
20
|
+
*
|
|
21
|
+
* - 9: numeric
|
|
22
|
+
* - a: alphabetical
|
|
23
|
+
* - *: alphanumeric
|
|
24
|
+
*
|
|
25
|
+
* Example telephone mask: (999) 999-9999
|
|
26
|
+
*
|
|
27
|
+
* See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
|
|
28
|
+
*
|
|
29
|
+
* @decorator
|
|
30
|
+
* @formio
|
|
31
|
+
* @property
|
|
32
|
+
* @schema
|
|
33
|
+
*/
|
|
34
|
+
export declare function Masks(...inputMasks: {
|
|
35
|
+
label: string;
|
|
36
|
+
mask: string;
|
|
37
|
+
}[]): PropertyDecorator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PasswordOpts extends Record<string, any> {
|
|
2
|
+
showCharCount?: boolean;
|
|
3
|
+
showWordCount?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Configure the property as Password component.
|
|
7
|
+
* @decorator
|
|
8
|
+
* @formio
|
|
9
|
+
* @property
|
|
10
|
+
* @schema
|
|
11
|
+
*/
|
|
12
|
+
export declare function Password(props?: PasswordOpts): PropertyDecorator;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface SelectOpts extends Record<string, any> {
|
|
2
|
+
idPath?: string;
|
|
3
|
+
valueProperty?: string;
|
|
4
|
+
template?: string;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Configure the property as Select component.
|
|
9
|
+
* @decorator
|
|
10
|
+
* @formio
|
|
11
|
+
* @property
|
|
12
|
+
* @schema
|
|
13
|
+
*/
|
|
14
|
+
export declare function Select(props?: SelectOpts): PropertyDecorator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TextareaOpts extends Record<string, any> {
|
|
2
|
+
showCharCount?: boolean;
|
|
3
|
+
showWordCount?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Configure the property as Textarea component.
|
|
7
|
+
* @decorator
|
|
8
|
+
* @formio
|
|
9
|
+
* @property
|
|
10
|
+
* @schema
|
|
11
|
+
*/
|
|
12
|
+
export declare function Textarea(props?: TextareaOpts): PropertyDecorator;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormioComponent, FormioForm } from "@tsed/formio-types";
|
|
2
|
+
import { JsonSchemaOptions } from "@tsed/schema";
|
|
3
|
+
export type FormioDataResolverCtx = {
|
|
4
|
+
component: FormioComponent;
|
|
5
|
+
form: FormioForm;
|
|
6
|
+
} & JsonSchemaOptions;
|
|
7
|
+
export type FormioDataResolver = (ctx: FormioDataResolverCtx) => Promise<any> | any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by @tsed/barrels.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./components/anyToComponent.js";
|
|
5
|
+
export * from "./components/arrayToComponent.js";
|
|
6
|
+
export * from "./components/booleanToComponent.js";
|
|
7
|
+
export * from "./components/dateToComponent.js";
|
|
8
|
+
export * from "./components/defaultToComponent.js";
|
|
9
|
+
export * from "./components/enumToComponent.js";
|
|
10
|
+
export * from "./components/mapToComponent.js";
|
|
11
|
+
export * from "./components/nestedToComponent.js";
|
|
12
|
+
export * from "./components/numberToComponent.js";
|
|
13
|
+
export * from "./components/objectToEditGrid.js";
|
|
14
|
+
export * from "./components/panelToComponent.js";
|
|
15
|
+
export * from "./components/propertiesToComponents.js";
|
|
16
|
+
export * from "./components/stringToComponent.js";
|
|
17
|
+
export * from "./decorators/component.js";
|
|
18
|
+
export * from "./decorators/conditional.js";
|
|
19
|
+
export * from "./decorators/currency.js";
|
|
20
|
+
export * from "./decorators/customClass.js";
|
|
21
|
+
export * from "./decorators/customConditional.js";
|
|
22
|
+
export * from "./decorators/dataSourceJson.js";
|
|
23
|
+
export * from "./decorators/dataSourceUrl.js";
|
|
24
|
+
export * from "./decorators/errorLabel.js";
|
|
25
|
+
export * from "./decorators/errorMessage.js";
|
|
26
|
+
export * from "./decorators/form.js";
|
|
27
|
+
export * from "./decorators/hidden.js";
|
|
28
|
+
export * from "./decorators/inputTags.js";
|
|
29
|
+
export * from "./decorators/label.js";
|
|
30
|
+
export * from "./decorators/mask.js";
|
|
31
|
+
export * from "./decorators/maxWords.js";
|
|
32
|
+
export * from "./decorators/minWords.js";
|
|
33
|
+
export * from "./decorators/modalEdit.js";
|
|
34
|
+
export * from "./decorators/multiple.js";
|
|
35
|
+
export * from "./decorators/openWhenEmpty.js";
|
|
36
|
+
export * from "./decorators/password.js";
|
|
37
|
+
export * from "./decorators/placeholder.js";
|
|
38
|
+
export * from "./decorators/prefix.js";
|
|
39
|
+
export * from "./decorators/select.js";
|
|
40
|
+
export * from "./decorators/suffix.js";
|
|
41
|
+
export * from "./decorators/tableView.js";
|
|
42
|
+
export * from "./decorators/tabs.js";
|
|
43
|
+
export * from "./decorators/textarea.js";
|
|
44
|
+
export * from "./decorators/textCase.js";
|
|
45
|
+
export * from "./decorators/tooltip.js";
|
|
46
|
+
export * from "./decorators/validate.js";
|
|
47
|
+
export * from "./domain/FormioDataResolver.js";
|
|
48
|
+
export * from "./registries/FormioMappersContainer.js";
|
|
49
|
+
export * from "./registries/FormsContainer.js";
|
|
50
|
+
export * from "./utils/getFormioProps.js";
|
|
51
|
+
export * from "./utils/getFormioSchema.js";
|
|
52
|
+
export * from "./utils/getRef.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface FormioMapper {
|
|
2
|
+
(schema: any, options: any): any;
|
|
3
|
+
}
|
|
4
|
+
export declare function registerFormioMapper(type: string, mapper: FormioMapper): Map<string, FormioMapper>;
|
|
5
|
+
export declare function getFormioMapper(type: string): FormioMapper;
|
|
6
|
+
export declare function execMapper(type: string, schema: any, options: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFormioProps(schema: any): any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JsonSchemaOptions } from "@tsed/schema";
|
|
2
|
+
import { FormioForm } from "@tsed/formio-types";
|
|
3
|
+
import "../components/anyToComponent";
|
|
4
|
+
import "../components/arrayToComponent";
|
|
5
|
+
import "../components/booleanToComponent";
|
|
6
|
+
import "../components/dateToComponent";
|
|
7
|
+
import "../components/defaultToComponent";
|
|
8
|
+
import "../components/enumToComponent";
|
|
9
|
+
import "../components/mapToComponent";
|
|
10
|
+
import "../components/nestedToComponent";
|
|
11
|
+
import "../components/numberToComponent";
|
|
12
|
+
import "../components/objectToEditGrid";
|
|
13
|
+
import "../components/panelToComponent";
|
|
14
|
+
import "../components/propertiesToComponents";
|
|
15
|
+
import "../components/stringToComponent";
|
|
16
|
+
export declare function getFormioSchema(model: string | any | undefined, options?: JsonSchemaOptions): Promise<Omit<FormioForm, "_id" | "deleted" | "owner"> | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRef(schema: any, options: any): any;
|
package/package.json
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/schema-formio",
|
|
3
|
-
"version": "7.79.3",
|
|
4
3
|
"description": "Transform Ts.ED Schema & JsonSchema to a valid Formio schema",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"version": "7.80.0",
|
|
5
6
|
"source": "./src/index.ts",
|
|
6
7
|
"main": "./lib/cjs/index.js",
|
|
7
8
|
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"browser": "./lib/browser/schema-formio.umd.min.js",
|
|
10
11
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./lib/types/index.d.ts",
|
|
14
|
+
"browser": "./lib/browser/schema-formio.umd.min.js",
|
|
15
|
+
"import": "./lib/esm/index.js",
|
|
16
|
+
"default": "./lib/cjs/index.js"
|
|
17
|
+
}
|
|
16
18
|
},
|
|
17
19
|
"scripts": {
|
|
18
20
|
"clean": "rm -rf lib",
|
|
19
21
|
"build": "yarn clean && yarn barrels && yarn build:ts && yarn run build:browser",
|
|
20
22
|
"build:browser": "webpack",
|
|
21
23
|
"barrels": "barrels",
|
|
22
|
-
"test": "
|
|
23
|
-
"build:ts": "tsc --build tsconfig.json
|
|
24
|
+
"test": "vitest run",
|
|
25
|
+
"build:ts": "tsc --build tsconfig.json",
|
|
26
|
+
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
24
27
|
},
|
|
25
28
|
"keywords": [
|
|
26
29
|
"TypeScript",
|
|
@@ -35,23 +38,24 @@
|
|
|
35
38
|
"tsed"
|
|
36
39
|
],
|
|
37
40
|
"dependencies": {
|
|
38
|
-
"@tsed/formio-types": "7.
|
|
41
|
+
"@tsed/formio-types": "7.80.0",
|
|
39
42
|
"change-case": "4.1.2",
|
|
40
43
|
"tslib": "2.6.1"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
|
-
"@tsed/barrels": "7.
|
|
44
|
-
"@tsed/core": "7.
|
|
45
|
-
"@tsed/openspec": "7.
|
|
46
|
-
"@tsed/schema": "7.
|
|
47
|
-
"@tsed/typescript": "7.
|
|
46
|
+
"@tsed/barrels": "7.80.0",
|
|
47
|
+
"@tsed/core": "7.80.0",
|
|
48
|
+
"@tsed/openspec": "7.80.0",
|
|
49
|
+
"@tsed/schema": "7.80.0",
|
|
50
|
+
"@tsed/typescript": "7.80.0",
|
|
48
51
|
"eslint": "^8.57.0",
|
|
49
|
-
"
|
|
52
|
+
"typescript": "4.9.5",
|
|
53
|
+
"vitest": "2.0.4"
|
|
50
54
|
},
|
|
51
55
|
"peerDependencies": {
|
|
52
|
-
"@tsed/core": "7.
|
|
53
|
-
"@tsed/openspec": "7.
|
|
54
|
-
"@tsed/schema": "7.
|
|
56
|
+
"@tsed/core": "7.80.0",
|
|
57
|
+
"@tsed/openspec": "7.80.0",
|
|
58
|
+
"@tsed/schema": "7.80.0",
|
|
55
59
|
"formiojs": ">=4.0.0",
|
|
56
60
|
"lodash": ">=4.0.0",
|
|
57
61
|
"moment": ">=2.0.0"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import {presets} from "@tsed/vitest/presets";
|
|
3
|
+
import {defineConfig} from "vitest/config";
|
|
4
|
+
|
|
5
|
+
export default defineConfig(
|
|
6
|
+
{
|
|
7
|
+
...presets,
|
|
8
|
+
test: {
|
|
9
|
+
...presets.test,
|
|
10
|
+
coverage: {
|
|
11
|
+
...presets.test.coverage,
|
|
12
|
+
thresholds: {
|
|
13
|
+
statements: 0,
|
|
14
|
+
branches: 0,
|
|
15
|
+
functions: 0,
|
|
16
|
+
lines: 0
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
package/jest.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// For a detailed explanation regarding each configuration property, visit:
|
|
2
|
-
// https://jestjs.io/docs/en/configuration.html
|
|
3
|
-
const config = require("@tsed/jest-config");
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
...config,
|
|
7
|
-
roots: ["<rootDir>/src", "<rootDir>/test"],
|
|
8
|
-
moduleNameMapper: {
|
|
9
|
-
...config.moduleNameMapper,
|
|
10
|
-
"@tsed/schema-formio": "<rootDir>/src/index.ts"
|
|
11
|
-
},
|
|
12
|
-
coverageThreshold: {
|
|
13
|
-
global: {
|
|
14
|
-
statements: 0,
|
|
15
|
-
branches: 0,
|
|
16
|
-
functions: 0,
|
|
17
|
-
lines: 0
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
package/lib/cjs/package.json
DELETED
package/lib/esm/package.json
DELETED
package/tsconfig.esm.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsed/typescript/tsconfig.node.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"module": "ES2020",
|
|
6
|
-
"rootDir": "src",
|
|
7
|
-
"outDir": "./lib/esm",
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"declarationDir": "./lib/types",
|
|
10
|
-
"composite": true,
|
|
11
|
-
"noEmit": false
|
|
12
|
-
},
|
|
13
|
-
"include": ["src", "src/**/*.json"],
|
|
14
|
-
"exclude": [
|
|
15
|
-
"node_modules",
|
|
16
|
-
"test",
|
|
17
|
-
"lib",
|
|
18
|
-
"benchmark",
|
|
19
|
-
"coverage",
|
|
20
|
-
"spec",
|
|
21
|
-
"**/*.benchmark.ts",
|
|
22
|
-
"**/*.spec.ts",
|
|
23
|
-
"keys",
|
|
24
|
-
"jest.config.js",
|
|
25
|
-
"**/__mock__/**",
|
|
26
|
-
"webpack.config.js"
|
|
27
|
-
],
|
|
28
|
-
"references": [
|
|
29
|
-
{
|
|
30
|
-
"path": "../../core"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../specs/openspec"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../specs/schema"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../formio-types"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|