@bpmn-io/form-js-viewer 1.12.0 → 1.13.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-base.css +83 -4
- package/dist/assets/form-js.css +78 -4
- package/dist/index.cjs +524 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +524 -182
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/render/components/Errors.d.ts +13 -1
- package/dist/types/render/components/form-fields/DocumentPreview.d.ts +61 -0
- package/dist/types/render/components/index.d.ts +3 -2
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export * from "./util";
|
|
|
14
14
|
export * from "./features";
|
|
15
15
|
export type CreateFormOptions = import('./types').CreateFormOptions;
|
|
16
16
|
import { Form } from './Form';
|
|
17
|
-
export const schemaVersion:
|
|
17
|
+
export const schemaVersion: 18;
|
|
18
18
|
export { Form };
|
|
19
19
|
export { FormFieldRegistry, FormLayouter, Importer, FieldFactory, PathRegistry } from "./core";
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @typedef Props
|
|
3
|
+
* @property {string} id
|
|
4
|
+
* @property {string[]} errors
|
|
5
|
+
*
|
|
6
|
+
* @param {Props} props
|
|
7
|
+
* @returns {import("preact").JSX.Element}
|
|
8
|
+
*/
|
|
9
|
+
export function Errors(props: Props): import("preact").JSX.Element;
|
|
10
|
+
export type Props = {
|
|
11
|
+
id: string;
|
|
12
|
+
errors: string[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef DocumentMetadata
|
|
3
|
+
* @property {string} documentId
|
|
4
|
+
* @property {Object} metadata
|
|
5
|
+
* @property {string|undefined} [metadata.contentType]
|
|
6
|
+
* @property {string} metadata.fileName
|
|
7
|
+
*
|
|
8
|
+
* @typedef Field
|
|
9
|
+
* @property {string} id
|
|
10
|
+
* @property {string} [title]
|
|
11
|
+
* @property {string} [dataSource]
|
|
12
|
+
* @property {string} [endpointKey]
|
|
13
|
+
* @property {number} [maxHeight]
|
|
14
|
+
* @property {string} [label]
|
|
15
|
+
*
|
|
16
|
+
* @typedef Props
|
|
17
|
+
* @property {Field} field
|
|
18
|
+
* @property {string} domId
|
|
19
|
+
*
|
|
20
|
+
* @param {Props} props
|
|
21
|
+
* @returns {import("preact").JSX.Element}
|
|
22
|
+
*/
|
|
23
|
+
export function DocumentPreview(props: Props): import("preact").JSX.Element;
|
|
24
|
+
export namespace DocumentPreview {
|
|
25
|
+
namespace config {
|
|
26
|
+
export { type };
|
|
27
|
+
export let keyed: boolean;
|
|
28
|
+
export let group: string;
|
|
29
|
+
export let name: string;
|
|
30
|
+
export function create(options?: {}): {
|
|
31
|
+
label: string;
|
|
32
|
+
endpointKey: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export type DocumentMetadata = {
|
|
37
|
+
documentId: string;
|
|
38
|
+
metadata: {
|
|
39
|
+
contentType?: string | undefined;
|
|
40
|
+
fileName: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type Field = {
|
|
44
|
+
id: string;
|
|
45
|
+
title?: string;
|
|
46
|
+
dataSource?: string;
|
|
47
|
+
endpointKey?: string;
|
|
48
|
+
maxHeight?: number;
|
|
49
|
+
label?: string;
|
|
50
|
+
};
|
|
51
|
+
export type Props = {
|
|
52
|
+
field: Field;
|
|
53
|
+
domId: string;
|
|
54
|
+
};
|
|
55
|
+
export type GetErrorOptions = {
|
|
56
|
+
dataSource: string | undefined;
|
|
57
|
+
endpointKey: string | undefined;
|
|
58
|
+
endpoint: string | null;
|
|
59
|
+
};
|
|
60
|
+
declare const type: "documentPreview";
|
|
61
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const formFields: (typeof Button | typeof Default | typeof Datetime | typeof Group | typeof IFrame | typeof Image | typeof Radio | typeof Separator | typeof Spacer | typeof Html | typeof ExpressionField | typeof Table | typeof FilePicker)[];
|
|
1
|
+
export const formFields: (typeof Button | typeof Default | typeof Datetime | typeof Group | typeof IFrame | typeof Image | typeof Radio | typeof Separator | typeof Spacer | typeof Html | typeof ExpressionField | typeof Table | typeof FilePicker | typeof DocumentPreview)[];
|
|
2
2
|
export * from "./icons";
|
|
3
3
|
export * from "./Sanitizer";
|
|
4
4
|
export * from "./util/domUtil";
|
|
@@ -30,4 +30,5 @@ import { Textfield } from './form-fields/Textfield';
|
|
|
30
30
|
import { Textarea } from './form-fields/Textarea';
|
|
31
31
|
import { Table } from './form-fields/Table';
|
|
32
32
|
import { FilePicker } from './form-fields/FilePicker';
|
|
33
|
-
|
|
33
|
+
import { DocumentPreview } from './form-fields/DocumentPreview';
|
|
34
|
+
export { Label, Description, Errors, Button, Checkbox, Checklist, Default, Datetime, FormComponent, FormField, Group, IFrame, DynamicList, Image, Numberfield, ExpressionField, Radio, Select, Separator, Spacer, Taglist, Text, Html, Textfield, Textarea, Table, FilePicker, DocumentPreview };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "View forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"files": [
|
|
67
67
|
"dist"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "82af423ed60e728ce0f2b5fe8fa3779f7895b7d2"
|
|
70
70
|
}
|