@bpmn-io/form-js-viewer 0.5.1 → 0.6.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/dist/assets/form-js.css +36 -38
- package/dist/index.cjs +57 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +58 -23
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +130 -130
- package/dist/types/core/EventBus.d.ts +1 -1
- package/dist/types/core/FormFieldRegistry.d.ts +17 -17
- package/dist/types/core/Validator.d.ts +3 -3
- package/dist/types/core/index.d.ts +16 -16
- package/dist/types/import/Importer.d.ts +43 -38
- package/dist/types/import/index.d.ts +5 -5
- package/dist/types/index.d.ts +18 -18
- package/dist/types/render/FormFields.d.ts +5 -5
- package/dist/types/render/Renderer.d.ts +23 -23
- package/dist/types/render/components/Description.d.ts +1 -1
- package/dist/types/render/components/Errors.d.ts +1 -1
- package/dist/types/render/components/FormComponent.d.ts +1 -1
- package/dist/types/render/components/FormField.d.ts +1 -1
- package/dist/types/render/components/Label.d.ts +1 -1
- package/dist/types/render/components/PoweredBy.d.ts +1 -1
- package/dist/types/render/components/Sanitizer.d.ts +7 -7
- package/dist/types/render/components/Util.d.ts +4 -4
- package/dist/types/render/components/form-fields/Button.d.ts +11 -11
- package/dist/types/render/components/form-fields/Checkbox.d.ts +10 -9
- package/dist/types/render/components/form-fields/Default.d.ts +9 -9
- package/dist/types/render/components/form-fields/Number.d.ts +10 -9
- package/dist/types/render/components/form-fields/Radio.d.ts +15 -14
- package/dist/types/render/components/form-fields/Select.d.ts +15 -14
- package/dist/types/render/components/form-fields/Text.d.ts +10 -10
- package/dist/types/render/components/form-fields/Textfield.d.ts +10 -9
- package/dist/types/render/components/index.d.ts +11 -11
- package/dist/types/render/context/FormContext.d.ts +12 -12
- package/dist/types/render/context/FormRenderContext.d.ts +6 -6
- package/dist/types/render/context/index.d.ts +2 -2
- package/dist/types/render/hooks/useService.d.ts +1 -1
- package/dist/types/render/index.d.ts +11 -11
- package/dist/types/util/form.d.ts +6 -6
- package/dist/types/util/index.d.ts +16 -16
- package/dist/types/util/injector.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
declare function Number(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Number {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const keyed: boolean;
|
|
6
|
-
export const label: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
declare function Number(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Number {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const keyed: boolean;
|
|
6
|
+
export const label: string;
|
|
7
|
+
export const emptyValue: any;
|
|
8
|
+
}
|
|
9
|
+
export default Number;
|
|
10
|
+
declare const type: "number";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
declare function Radio(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Radio {
|
|
3
|
-
export function create(options?: {}): {
|
|
4
|
-
values: {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}[];
|
|
8
|
-
};
|
|
9
|
-
export { type };
|
|
10
|
-
export const label: string;
|
|
11
|
-
export const keyed: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
declare function Radio(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Radio {
|
|
3
|
+
export function create(options?: {}): {
|
|
4
|
+
values: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
export { type };
|
|
10
|
+
export const label: string;
|
|
11
|
+
export const keyed: boolean;
|
|
12
|
+
export const emptyValue: any;
|
|
13
|
+
}
|
|
14
|
+
export default Radio;
|
|
15
|
+
declare const type: "radio";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
declare function Select(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Select {
|
|
3
|
-
export function create(options?: {}): {
|
|
4
|
-
values: {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}[];
|
|
8
|
-
};
|
|
9
|
-
export { type };
|
|
10
|
-
export const label: string;
|
|
11
|
-
export const keyed: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
declare function Select(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Select {
|
|
3
|
+
export function create(options?: {}): {
|
|
4
|
+
values: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
export { type };
|
|
10
|
+
export const label: string;
|
|
11
|
+
export const keyed: boolean;
|
|
12
|
+
export const emptyValue: any;
|
|
13
|
+
}
|
|
14
|
+
export default Select;
|
|
15
|
+
declare const type: "select";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare function Text(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Text {
|
|
3
|
-
export function create(options?: {}): {
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
export { type };
|
|
7
|
-
export const keyed: boolean;
|
|
8
|
-
}
|
|
9
|
-
export default Text;
|
|
10
|
-
declare const type: "text";
|
|
1
|
+
declare function Text(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Text {
|
|
3
|
+
export function create(options?: {}): {
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
export { type };
|
|
7
|
+
export const keyed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default Text;
|
|
10
|
+
declare const type: "text";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
declare function Textfield(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Textfield {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
declare function Textfield(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Textfield {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: string;
|
|
8
|
+
}
|
|
9
|
+
export default Textfield;
|
|
10
|
+
declare const type: "textfield";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export const formFields: (typeof
|
|
2
|
-
import Button from "./form-fields/Button";
|
|
3
|
-
import Checkbox from "./form-fields/Checkbox";
|
|
4
|
-
import Default from "./form-fields/Default";
|
|
5
|
-
import FormComponent from "./FormComponent";
|
|
6
|
-
import Number from "./form-fields/Number";
|
|
7
|
-
import Radio from "./form-fields/Radio";
|
|
8
|
-
import Select from "./form-fields/Select";
|
|
9
|
-
import Text from "./form-fields/Text";
|
|
10
|
-
import Textfield from "./form-fields/Textfield";
|
|
11
|
-
export { Button, Checkbox, Default, FormComponent, Number, Radio, Select, Text, Textfield };
|
|
1
|
+
export const formFields: (typeof Button | typeof Default | typeof Number | typeof Text)[];
|
|
2
|
+
import Button from "./form-fields/Button";
|
|
3
|
+
import Checkbox from "./form-fields/Checkbox";
|
|
4
|
+
import Default from "./form-fields/Default";
|
|
5
|
+
import FormComponent from "./FormComponent";
|
|
6
|
+
import Number from "./form-fields/Number";
|
|
7
|
+
import Radio from "./form-fields/Radio";
|
|
8
|
+
import Select from "./form-fields/Select";
|
|
9
|
+
import Text from "./form-fields/Text";
|
|
10
|
+
import Textfield from "./form-fields/Textfield";
|
|
11
|
+
export { Button, Checkbox, Default, FormComponent, Number, Radio, Select, Text, Textfield };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export default FormContext;
|
|
2
|
-
declare const FormContext: import("preact").Context<{
|
|
3
|
-
getService: typeof getService;
|
|
4
|
-
formId: any;
|
|
5
|
-
}>;
|
|
6
|
-
/**
|
|
7
|
-
* @param {string} type
|
|
8
|
-
* @param {boolean} [strict]
|
|
9
|
-
*
|
|
10
|
-
* @returns {any}
|
|
11
|
-
*/
|
|
12
|
-
declare function getService(type: string, strict?: boolean): any;
|
|
1
|
+
export default FormContext;
|
|
2
|
+
declare const FormContext: import("preact").Context<{
|
|
3
|
+
getService: typeof getService;
|
|
4
|
+
formId: any;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* @param {string} type
|
|
8
|
+
* @param {boolean} [strict]
|
|
9
|
+
*
|
|
10
|
+
* @returns {any}
|
|
11
|
+
*/
|
|
12
|
+
declare function getService(type: string, strict?: boolean): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export default FormRenderContext;
|
|
2
|
-
declare const FormRenderContext: import("preact").Context<{
|
|
3
|
-
Empty: (props: any) => any;
|
|
4
|
-
Children: (props: any) => any;
|
|
5
|
-
Element: (props: any) => any;
|
|
6
|
-
}>;
|
|
1
|
+
export default FormRenderContext;
|
|
2
|
+
declare const FormRenderContext: import("preact").Context<{
|
|
3
|
+
Empty: (props: any) => any;
|
|
4
|
+
Children: (props: any) => any;
|
|
5
|
+
Element: (props: any) => any;
|
|
6
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as FormRenderContext } from "./FormRenderContext";
|
|
2
|
-
export { default as FormContext } from "./FormContext";
|
|
1
|
+
export { default as FormRenderContext } from "./FormRenderContext";
|
|
2
|
+
export { default as FormContext } from "./FormContext";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function _default(type: any, strict: any): any;
|
|
1
|
+
export default function _default(type: any, strict: any): any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { FormFields };
|
|
2
|
-
export * from "./components";
|
|
3
|
-
export * from "./context";
|
|
4
|
-
declare namespace _default {
|
|
5
|
-
const __init__: string[];
|
|
6
|
-
const formFields: (string | typeof FormFields)[];
|
|
7
|
-
const renderer: (string | typeof Renderer)[];
|
|
8
|
-
}
|
|
9
|
-
export default _default;
|
|
10
|
-
import FormFields from "./FormFields";
|
|
11
|
-
import Renderer from "./Renderer";
|
|
1
|
+
export { FormFields };
|
|
2
|
+
export * from "./components";
|
|
3
|
+
export * from "./context";
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
const __init__: string[];
|
|
6
|
+
const formFields: (string | typeof FormFields)[];
|
|
7
|
+
const renderer: (string | typeof Renderer)[];
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
import FormFields from "./FormFields";
|
|
11
|
+
import Renderer from "./Renderer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {string?} prefix
|
|
3
|
-
*
|
|
4
|
-
* @returns Element
|
|
5
|
-
*/
|
|
6
|
-
export function createFormContainer(prefix?: string | null): HTMLDivElement;
|
|
1
|
+
/**
|
|
2
|
+
* @param {string?} prefix
|
|
3
|
+
*
|
|
4
|
+
* @returns Element
|
|
5
|
+
*/
|
|
6
|
+
export function createFormContainer(prefix?: string | null): HTMLDivElement;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export function findErrors(errors: any, path: any): any;
|
|
2
|
-
export function isRequired(field: any): any;
|
|
3
|
-
export function pathParse(path: any): any;
|
|
4
|
-
export function pathsEqual(a: any, b: any): any;
|
|
5
|
-
export function pathStringify(path: any): any;
|
|
6
|
-
export function generateIndexForType(type: any): any;
|
|
7
|
-
export function generateIdForType(type: any): string;
|
|
8
|
-
/**
|
|
9
|
-
* @template T
|
|
10
|
-
* @param {T} data
|
|
11
|
-
* @param {(this: any, key: string, value: any) => any} [replacer]
|
|
12
|
-
* @return {T}
|
|
13
|
-
*/
|
|
14
|
-
export function clone<T>(data: T, replacer?: (this: any, key: string, value: any) => any): T;
|
|
15
|
-
export * from "./injector";
|
|
16
|
-
export * from "./form";
|
|
1
|
+
export function findErrors(errors: any, path: any): any;
|
|
2
|
+
export function isRequired(field: any): any;
|
|
3
|
+
export function pathParse(path: any): any;
|
|
4
|
+
export function pathsEqual(a: any, b: any): any;
|
|
5
|
+
export function pathStringify(path: any): any;
|
|
6
|
+
export function generateIndexForType(type: any): any;
|
|
7
|
+
export function generateIdForType(type: any): string;
|
|
8
|
+
/**
|
|
9
|
+
* @template T
|
|
10
|
+
* @param {T} data
|
|
11
|
+
* @param {(this: any, key: string, value: any) => any} [replacer]
|
|
12
|
+
* @return {T}
|
|
13
|
+
*/
|
|
14
|
+
export function clone<T>(data: T, replacer?: (this: any, key: string, value: any) => any): T;
|
|
15
|
+
export * from "./injector";
|
|
16
|
+
export * from "./form";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function createInjector(bootstrapModules: any): any;
|
|
1
|
+
export function createInjector(bootstrapModules: any): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "View forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"files": [
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "37498a3b4097c4905deb3ee6f0ccd35935a9001a"
|
|
55
55
|
}
|