@bpmn-io/form-js-editor 0.6.1 → 0.7.2
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/index.cjs +220 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +221 -23
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +16 -6
- package/dist/types/render/components/properties-panel/entries/CustomValueEntry.d.ts +1 -0
- package/dist/types/render/components/properties-panel/entries/index.d.ts +1 -0
- package/dist/types/render/components/properties-panel/groups/CustomValuesGroup.d.ts +10 -0
- package/dist/types/render/components/properties-panel/groups/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -11,6 +11,10 @@ export function exportSchema(schema: any, exporter: any, schemaVersion: any): an
|
|
|
11
11
|
* properties: FormEditorProperties,
|
|
12
12
|
* schema: Schema
|
|
13
13
|
* } } State
|
|
14
|
+
*
|
|
15
|
+
* @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
|
|
16
|
+
* @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
|
|
17
|
+
* @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
|
|
14
18
|
*/
|
|
15
19
|
/**
|
|
16
20
|
* The form editor.
|
|
@@ -21,6 +25,11 @@ export default class FormEditor {
|
|
|
21
25
|
* @param {FormEditorOptions} options
|
|
22
26
|
*/
|
|
23
27
|
constructor(options?: FormEditorOptions);
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* @type {OnEventType}
|
|
31
|
+
*/
|
|
32
|
+
public on: OnEventType;
|
|
24
33
|
/**
|
|
25
34
|
* @public
|
|
26
35
|
* @type {String}
|
|
@@ -77,12 +86,6 @@ export default class FormEditor {
|
|
|
77
86
|
* @param {any} value
|
|
78
87
|
*/
|
|
79
88
|
setProperty(property: any, value: any): void;
|
|
80
|
-
/**
|
|
81
|
-
* @param {string} type
|
|
82
|
-
* @param {number} priority
|
|
83
|
-
* @param {Function} handler
|
|
84
|
-
*/
|
|
85
|
-
on(type: string, priority: number, handler: Function): void;
|
|
86
89
|
/**
|
|
87
90
|
* @param {string} type
|
|
88
91
|
* @param {Function} handler
|
|
@@ -128,6 +131,10 @@ export default class FormEditor {
|
|
|
128
131
|
selection: (string | typeof import("./features/selection/Selection").default)[];
|
|
129
132
|
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
|
|
130
133
|
})[];
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
_onEvent(type: any, priority: any, handler: any): void;
|
|
131
138
|
}
|
|
132
139
|
export type Injector = any;
|
|
133
140
|
export type Module = import('./types').Module;
|
|
@@ -138,3 +145,6 @@ export type State = {
|
|
|
138
145
|
properties: FormEditorProperties;
|
|
139
146
|
schema: Schema;
|
|
140
147
|
};
|
|
148
|
+
export type OnEventWithPriority = OnEventWithPriority;
|
|
149
|
+
export type OnEventWithOutPriority = OnEventWithOutPriority;
|
|
150
|
+
export type OnEventType = OnEventWithPriority & OnEventWithOutPriority;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CustomValueEntry(props: any): any;
|
|
@@ -8,3 +8,4 @@ export { default as KeyEntry } from "./KeyEntry";
|
|
|
8
8
|
export { default as LabelEntry } from "./LabelEntry";
|
|
9
9
|
export { default as TextEntry } from "./TextEntry";
|
|
10
10
|
export { default as ValueEntry } from "./ValueEntry";
|
|
11
|
+
export { default as CustomValueEntry } from "./CustomValueEntry";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function CustomValuesGroup(field: any, editField: any): any;
|
|
2
|
+
/**
|
|
3
|
+
* Returns copy of object without key.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} properties
|
|
6
|
+
* @param {string} oldKey
|
|
7
|
+
*
|
|
8
|
+
* @returns {Object}
|
|
9
|
+
*/
|
|
10
|
+
export function removeKey(properties: any, oldKey: string): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Edit forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"url": "https://github.com/bpmn-io"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@bpmn-io/form-js-viewer": "^0.
|
|
44
|
+
"@bpmn-io/form-js-viewer": "^0.7.2",
|
|
45
45
|
"array-move": "^3.0.1",
|
|
46
46
|
"dragula": "^3.7.3",
|
|
47
47
|
"ids": "^1.0.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"files": [
|
|
56
56
|
"dist"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "46631f707eea5537cbeb81aa05423fd9be71a3c0"
|
|
59
59
|
}
|