@bpmn-io/form-js-editor 1.7.3 → 1.8.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/LICENSE +22 -22
- package/README.md +152 -152
- package/dist/assets/form-js-editor-base.css +35 -16
- package/dist/assets/form-js-editor.css +34 -16
- package/dist/index.cjs +139 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +140 -16
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +1 -0
- package/dist/types/features/palette/index.d.ts +1 -0
- package/dist/types/features/properties-panel/entries/ExpressionFieldEntries.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/index.d.ts +1 -0
- package/dist/types/render/components/editor-form-fields/EditorExpressionField.d.ts +13 -0
- package/dist/types/render/components/editor-form-fields/index.d.ts +2 -1
- package/dist/types/types.d.ts +28 -28
- package/package.json +3 -3
|
@@ -155,6 +155,7 @@ export class FormEditor {
|
|
|
155
155
|
selection: (string | typeof import("./features/selection/Selection").Selection)[];
|
|
156
156
|
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").SelectionBehavior)[];
|
|
157
157
|
} | {
|
|
158
|
+
__init__: string[];
|
|
158
159
|
palette: (string | typeof import("./features/palette/PaletteRenderer").PaletteRenderer)[];
|
|
159
160
|
} | {
|
|
160
161
|
__depends__: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function ExpressionFieldEntries(props: any): {
|
|
2
|
+
id: string;
|
|
3
|
+
component: typeof ExpressionFieldExpression;
|
|
4
|
+
isEdited: any;
|
|
5
|
+
editField: any;
|
|
6
|
+
field: any;
|
|
7
|
+
isDefaultVisible: {};
|
|
8
|
+
}[];
|
|
9
|
+
declare function ExpressionFieldExpression(props: any): any;
|
|
10
|
+
export {};
|
|
@@ -16,6 +16,7 @@ export { TextEntry } from "./TextEntry";
|
|
|
16
16
|
export { HtmlEntry } from "./HtmlEntry";
|
|
17
17
|
export { HeightEntry } from "./HeightEntry";
|
|
18
18
|
export { NumberEntries } from "./NumberEntries";
|
|
19
|
+
export { ExpressionFieldEntries } from "./ExpressionFieldEntries";
|
|
19
20
|
export { NumberSerializationEntry } from "./NumberSerializationEntry";
|
|
20
21
|
export { DateTimeEntry } from "./DateTimeEntry";
|
|
21
22
|
export { DateTimeConstraintsEntry } from "./DateTimeConstraintsEntry";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function EditorExpressionField(props: any): import("preact").JSX.Element;
|
|
2
|
+
export namespace EditorExpressionField {
|
|
3
|
+
let config: {
|
|
4
|
+
escapeGridRender: boolean;
|
|
5
|
+
create(options?: {}): {
|
|
6
|
+
computeOn: string;
|
|
7
|
+
};
|
|
8
|
+
type: "expression";
|
|
9
|
+
label: string;
|
|
10
|
+
group: string;
|
|
11
|
+
keyed: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export const editorFormFields: (typeof EditorIFrame | typeof EditorText | typeof EditorHtml | typeof EditorTable)[];
|
|
1
|
+
export const editorFormFields: (typeof EditorIFrame | typeof EditorText | typeof EditorHtml | typeof EditorTable | typeof EditorExpressionField)[];
|
|
2
2
|
import { EditorIFrame } from './EditorIFrame';
|
|
3
3
|
import { EditorText } from './EditorText';
|
|
4
4
|
import { EditorHtml } from './EditorHtml';
|
|
5
5
|
import { EditorTable } from './EditorTable';
|
|
6
|
+
import { EditorExpressionField } from './EditorExpressionField';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Injector } from 'didi';
|
|
2
|
-
|
|
3
|
-
export type Module = any;
|
|
4
|
-
export type Schema = any;
|
|
5
|
-
|
|
6
|
-
export interface FormEditorProperties {
|
|
7
|
-
[x: string]: any
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface FormEditorOptions {
|
|
11
|
-
additionalModules?: Module[];
|
|
12
|
-
container?: Element | null | string;
|
|
13
|
-
exporter?: {
|
|
14
|
-
name: string,
|
|
15
|
-
version: string
|
|
16
|
-
};
|
|
17
|
-
injector?: Injector;
|
|
18
|
-
modules?: Module[];
|
|
19
|
-
properties?: FormEditorProperties;
|
|
20
|
-
[x:string]: any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface CreateFormEditorOptions extends FormEditorOptions {
|
|
24
|
-
schema?: Schema
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
Injector
|
|
1
|
+
import { Injector } from 'didi';
|
|
2
|
+
|
|
3
|
+
export type Module = any;
|
|
4
|
+
export type Schema = any;
|
|
5
|
+
|
|
6
|
+
export interface FormEditorProperties {
|
|
7
|
+
[x: string]: any
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface FormEditorOptions {
|
|
11
|
+
additionalModules?: Module[];
|
|
12
|
+
container?: Element | null | string;
|
|
13
|
+
exporter?: {
|
|
14
|
+
name: string,
|
|
15
|
+
version: string
|
|
16
|
+
};
|
|
17
|
+
injector?: Injector;
|
|
18
|
+
modules?: Module[];
|
|
19
|
+
properties?: FormEditorProperties;
|
|
20
|
+
[x:string]: any;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CreateFormEditorOptions extends FormEditorOptions {
|
|
24
|
+
schema?: Schema
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
Injector
|
|
29
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Edit forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@bpmn-io/draggle": "^4.0.0",
|
|
50
|
-
"@bpmn-io/form-js-viewer": "^1.
|
|
50
|
+
"@bpmn-io/form-js-viewer": "^1.8.0",
|
|
51
51
|
"@bpmn-io/properties-panel": "^3.18.1",
|
|
52
52
|
"array-move": "^3.0.1",
|
|
53
53
|
"big.js": "^6.2.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "ec587c5fb75597a73d3d689fb7a8079499391a8c"
|
|
66
66
|
}
|