@bpmn-io/form-js-editor 0.6.0 → 0.6.1
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 +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +2 -3
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +140 -140
- package/dist/types/core/Debounce.d.ts +10 -10
- package/dist/types/core/EventBus.d.ts +1 -1
- package/dist/types/core/FieldFactory.d.ts +18 -18
- package/dist/types/core/FormFieldRegistry.d.ts +19 -19
- package/dist/types/core/index.d.ts +17 -17
- package/dist/types/features/editor-actions/FormEditorActions.d.ts +8 -8
- package/dist/types/features/editor-actions/index.d.ts +6 -6
- package/dist/types/features/keyboard/FormEditorKeyboardBindings.d.ts +8 -8
- package/dist/types/features/keyboard/index.d.ts +7 -7
- package/dist/types/features/modeling/Modeling.d.ts +34 -34
- package/dist/types/features/modeling/behavior/IdBehavior.d.ts +7 -7
- package/dist/types/features/modeling/behavior/KeyBehavior.d.ts +7 -7
- package/dist/types/features/modeling/behavior/index.d.ts +8 -8
- package/dist/types/features/modeling/cmd/AddFormFieldHandler.d.ts +16 -16
- package/dist/types/features/modeling/cmd/EditFormFieldHandler.d.ts +16 -16
- package/dist/types/features/modeling/cmd/MoveFormFieldHandler.d.ts +17 -17
- package/dist/types/features/modeling/cmd/RemoveFormFieldHandler.d.ts +16 -16
- package/dist/types/features/modeling/cmd/UpdateIdClaimHandler.d.ts +14 -14
- package/dist/types/features/modeling/cmd/UpdateKeyClaimHandler.d.ts +14 -14
- package/dist/types/features/modeling/cmd/Util.d.ts +4 -4
- package/dist/types/features/modeling/index.d.ts +7 -7
- package/dist/types/features/selection/Selection.d.ts +14 -14
- package/dist/types/features/selection/SelectionBehavior.d.ts +7 -7
- package/dist/types/features/selection/index.d.ts +8 -8
- package/dist/types/import/Importer.d.ts +51 -51
- package/dist/types/import/index.d.ts +5 -5
- package/dist/types/index.d.ts +15 -15
- package/dist/types/render/Renderer.d.ts +26 -26
- package/dist/types/render/components/FormEditor.d.ts +1 -1
- package/dist/types/render/components/palette/Palette.d.ts +1 -1
- package/dist/types/render/components/palette/icons/index.d.ts +11 -11
- package/dist/types/render/components/properties-panel/PropertiesPanel.d.ts +1 -1
- package/dist/types/render/components/properties-panel/Util.d.ts +6 -6
- package/dist/types/render/components/properties-panel/components/CheckboxInput.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/CheckboxInputEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/CollapsibleEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/Group.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/NumberInput.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/NumberInputEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/Select.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/SelectEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/TextInput.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/TextInputEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/Textarea.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/TextareaEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/components/index.d.ts +12 -12
- package/dist/types/render/components/properties-panel/entries/ActionEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/ColumnsEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/DefaultValueEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/DescriptionEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/DisabledEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/IdEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/KeyEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/LabelEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/TextEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/ValueEntry.d.ts +1 -1
- package/dist/types/render/components/properties-panel/entries/index.d.ts +10 -10
- package/dist/types/render/components/properties-panel/groups/GeneralGroup.d.ts +1 -1
- package/dist/types/render/components/properties-panel/groups/ValidationGroup.d.ts +1 -1
- package/dist/types/render/components/properties-panel/groups/ValuesGroup.d.ts +1 -1
- package/dist/types/render/components/properties-panel/groups/index.d.ts +3 -3
- package/dist/types/render/components/properties-panel/icons/index.d.ts +1 -1
- package/dist/types/render/context/DragAndDropContext.d.ts +4 -4
- package/dist/types/render/context/FormEditorContext.d.ts +11 -11
- package/dist/types/render/context/index.d.ts +2 -2
- package/dist/types/render/hooks/index.d.ts +3 -3
- package/dist/types/render/hooks/useDebounce.d.ts +1 -1
- package/dist/types/render/hooks/usePrevious.d.ts +1 -1
- package/dist/types/render/hooks/useService.d.ts +1 -1
- package/dist/types/render/index.d.ts +8 -8
- package/package.json +2 -2
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
export function exportSchema(schema: any, exporter: any, schemaVersion: any): any;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef { import('./types').Injector } Injector
|
|
4
|
-
* @typedef { import('./types').Module } Module
|
|
5
|
-
* @typedef { import('./types').Schema } Schema
|
|
6
|
-
*
|
|
7
|
-
* @typedef { import('./types').FormEditorOptions } FormEditorOptions
|
|
8
|
-
* @typedef { import('./types').FormEditorProperties } FormEditorProperties
|
|
9
|
-
*
|
|
10
|
-
* @typedef { {
|
|
11
|
-
* properties: FormEditorProperties,
|
|
12
|
-
* schema: Schema
|
|
13
|
-
* } } State
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* The form editor.
|
|
17
|
-
*/
|
|
18
|
-
export default class FormEditor {
|
|
19
|
-
/**
|
|
20
|
-
* @constructor
|
|
21
|
-
* @param {FormEditorOptions} options
|
|
22
|
-
*/
|
|
23
|
-
constructor(options?: FormEditorOptions);
|
|
24
|
-
/**
|
|
25
|
-
* @public
|
|
26
|
-
* @type {String}
|
|
27
|
-
*/
|
|
28
|
-
public _id: string;
|
|
29
|
-
/**
|
|
30
|
-
* @private
|
|
31
|
-
* @type {Element}
|
|
32
|
-
*/
|
|
33
|
-
private _container;
|
|
34
|
-
/**
|
|
35
|
-
* @private
|
|
36
|
-
* @type {any}
|
|
37
|
-
*/
|
|
38
|
-
private exporter;
|
|
39
|
-
/**
|
|
40
|
-
* @private
|
|
41
|
-
* @type {State}
|
|
42
|
-
*/
|
|
43
|
-
private _state;
|
|
44
|
-
get: any;
|
|
45
|
-
invoke: any;
|
|
46
|
-
clear(): void;
|
|
47
|
-
destroy(): void;
|
|
48
|
-
/**
|
|
49
|
-
* @param {Schema} schema
|
|
50
|
-
*
|
|
51
|
-
* @return {Promise<{ warnings: Array<any> }>}
|
|
52
|
-
*/
|
|
53
|
-
importSchema(schema: Schema): Promise<{
|
|
54
|
-
warnings: Array<any>;
|
|
55
|
-
}>;
|
|
56
|
-
/**
|
|
57
|
-
* @returns {Schema}
|
|
58
|
-
*/
|
|
59
|
-
saveSchema(): Schema;
|
|
60
|
-
/**
|
|
61
|
-
* @returns {Schema}
|
|
62
|
-
*/
|
|
63
|
-
getSchema(): Schema;
|
|
64
|
-
/**
|
|
65
|
-
* @param {Element|string} parentNode
|
|
66
|
-
*/
|
|
67
|
-
attachTo(parentNode: Element | string): void;
|
|
68
|
-
detach(): void;
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*
|
|
72
|
-
* @param {boolean} [emit]
|
|
73
|
-
*/
|
|
74
|
-
_detach(emit?: boolean): void;
|
|
75
|
-
/**
|
|
76
|
-
* @param {any} property
|
|
77
|
-
* @param {any} value
|
|
78
|
-
*/
|
|
79
|
-
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
|
-
/**
|
|
87
|
-
* @param {string} type
|
|
88
|
-
* @param {Function} handler
|
|
89
|
-
*/
|
|
90
|
-
off(type: string, handler: Function): void;
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*
|
|
94
|
-
* @param {FormEditorOptions} options
|
|
95
|
-
* @param {Element} container
|
|
96
|
-
*
|
|
97
|
-
* @returns {Injector}
|
|
98
|
-
*/
|
|
99
|
-
_createInjector(options: FormEditorOptions, container: Element): any;
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
_emit(type: any, data: any): void;
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
_getState(): State;
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
_setState(state: any): void;
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
|
-
_getModules(): ({
|
|
116
|
-
__depends__: any[];
|
|
117
|
-
__init__: string[];
|
|
118
|
-
modeling: (string | typeof import("./features/modeling/Modeling").default)[];
|
|
119
|
-
} | {
|
|
120
|
-
__depends__: any[];
|
|
121
|
-
editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").default)[];
|
|
122
|
-
} | {
|
|
123
|
-
__depends__: any[];
|
|
124
|
-
__init__: string[];
|
|
125
|
-
keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").default)[];
|
|
126
|
-
} | {
|
|
127
|
-
__init__: string[];
|
|
128
|
-
selection: (string | typeof import("./features/selection/Selection").default)[];
|
|
129
|
-
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
|
|
130
|
-
})[];
|
|
131
|
-
}
|
|
132
|
-
export type Injector = any;
|
|
133
|
-
export type Module = import('./types').Module;
|
|
134
|
-
export type Schema = import('./types').Schema;
|
|
135
|
-
export type FormEditorOptions = import('./types').FormEditorOptions;
|
|
136
|
-
export type FormEditorProperties = import('./types').FormEditorProperties;
|
|
137
|
-
export type State = {
|
|
138
|
-
properties: FormEditorProperties;
|
|
139
|
-
schema: Schema;
|
|
140
|
-
};
|
|
1
|
+
export function exportSchema(schema: any, exporter: any, schemaVersion: any): any;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef { import('./types').Injector } Injector
|
|
4
|
+
* @typedef { import('./types').Module } Module
|
|
5
|
+
* @typedef { import('./types').Schema } Schema
|
|
6
|
+
*
|
|
7
|
+
* @typedef { import('./types').FormEditorOptions } FormEditorOptions
|
|
8
|
+
* @typedef { import('./types').FormEditorProperties } FormEditorProperties
|
|
9
|
+
*
|
|
10
|
+
* @typedef { {
|
|
11
|
+
* properties: FormEditorProperties,
|
|
12
|
+
* schema: Schema
|
|
13
|
+
* } } State
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* The form editor.
|
|
17
|
+
*/
|
|
18
|
+
export default class FormEditor {
|
|
19
|
+
/**
|
|
20
|
+
* @constructor
|
|
21
|
+
* @param {FormEditorOptions} options
|
|
22
|
+
*/
|
|
23
|
+
constructor(options?: FormEditorOptions);
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* @type {String}
|
|
27
|
+
*/
|
|
28
|
+
public _id: string;
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
* @type {Element}
|
|
32
|
+
*/
|
|
33
|
+
private _container;
|
|
34
|
+
/**
|
|
35
|
+
* @private
|
|
36
|
+
* @type {any}
|
|
37
|
+
*/
|
|
38
|
+
private exporter;
|
|
39
|
+
/**
|
|
40
|
+
* @private
|
|
41
|
+
* @type {State}
|
|
42
|
+
*/
|
|
43
|
+
private _state;
|
|
44
|
+
get: any;
|
|
45
|
+
invoke: any;
|
|
46
|
+
clear(): void;
|
|
47
|
+
destroy(): void;
|
|
48
|
+
/**
|
|
49
|
+
* @param {Schema} schema
|
|
50
|
+
*
|
|
51
|
+
* @return {Promise<{ warnings: Array<any> }>}
|
|
52
|
+
*/
|
|
53
|
+
importSchema(schema: Schema): Promise<{
|
|
54
|
+
warnings: Array<any>;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* @returns {Schema}
|
|
58
|
+
*/
|
|
59
|
+
saveSchema(): Schema;
|
|
60
|
+
/**
|
|
61
|
+
* @returns {Schema}
|
|
62
|
+
*/
|
|
63
|
+
getSchema(): Schema;
|
|
64
|
+
/**
|
|
65
|
+
* @param {Element|string} parentNode
|
|
66
|
+
*/
|
|
67
|
+
attachTo(parentNode: Element | string): void;
|
|
68
|
+
detach(): void;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*
|
|
72
|
+
* @param {boolean} [emit]
|
|
73
|
+
*/
|
|
74
|
+
_detach(emit?: boolean): void;
|
|
75
|
+
/**
|
|
76
|
+
* @param {any} property
|
|
77
|
+
* @param {any} value
|
|
78
|
+
*/
|
|
79
|
+
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
|
+
/**
|
|
87
|
+
* @param {string} type
|
|
88
|
+
* @param {Function} handler
|
|
89
|
+
*/
|
|
90
|
+
off(type: string, handler: Function): void;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*
|
|
94
|
+
* @param {FormEditorOptions} options
|
|
95
|
+
* @param {Element} container
|
|
96
|
+
*
|
|
97
|
+
* @returns {Injector}
|
|
98
|
+
*/
|
|
99
|
+
_createInjector(options: FormEditorOptions, container: Element): any;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
_emit(type: any, data: any): void;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
_getState(): State;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
_setState(state: any): void;
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
_getModules(): ({
|
|
116
|
+
__depends__: any[];
|
|
117
|
+
__init__: string[];
|
|
118
|
+
modeling: (string | typeof import("./features/modeling/Modeling").default)[];
|
|
119
|
+
} | {
|
|
120
|
+
__depends__: any[];
|
|
121
|
+
editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").default)[];
|
|
122
|
+
} | {
|
|
123
|
+
__depends__: any[];
|
|
124
|
+
__init__: string[];
|
|
125
|
+
keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").default)[];
|
|
126
|
+
} | {
|
|
127
|
+
__init__: string[];
|
|
128
|
+
selection: (string | typeof import("./features/selection/Selection").default)[];
|
|
129
|
+
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
|
|
130
|
+
})[];
|
|
131
|
+
}
|
|
132
|
+
export type Injector = any;
|
|
133
|
+
export type Module = import('./types').Module;
|
|
134
|
+
export type Schema = import('./types').Schema;
|
|
135
|
+
export type FormEditorOptions = import('./types').FormEditorOptions;
|
|
136
|
+
export type FormEditorProperties = import('./types').FormEditorProperties;
|
|
137
|
+
export type State = {
|
|
138
|
+
properties: FormEditorProperties;
|
|
139
|
+
schema: Schema;
|
|
140
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A factory to create a configurable debouncer.
|
|
3
|
-
*
|
|
4
|
-
* @param {number|boolean} [config=true]
|
|
5
|
-
*/
|
|
6
|
-
declare function DebounceFactory(config?: number | boolean): (fn: any) => any;
|
|
7
|
-
declare namespace DebounceFactory {
|
|
8
|
-
const $inject: string[];
|
|
9
|
-
}
|
|
10
|
-
export default DebounceFactory;
|
|
1
|
+
/**
|
|
2
|
+
* A factory to create a configurable debouncer.
|
|
3
|
+
*
|
|
4
|
+
* @param {number|boolean} [config=true]
|
|
5
|
+
*/
|
|
6
|
+
declare function DebounceFactory(config?: number | boolean): (fn: any) => any;
|
|
7
|
+
declare namespace DebounceFactory {
|
|
8
|
+
const $inject: string[];
|
|
9
|
+
}
|
|
10
|
+
export default DebounceFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
declare class FieldFactory {
|
|
2
|
-
/**
|
|
3
|
-
* @constructor
|
|
4
|
-
*
|
|
5
|
-
* @param { import('./FormFieldRegistry').default } formFieldRegistry
|
|
6
|
-
* @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
|
|
7
|
-
*/
|
|
8
|
-
constructor(formFieldRegistry: import('./FormFieldRegistry').default, formFields: import('@bpmn-io/form-js-viewer').FormFields);
|
|
9
|
-
_formFieldRegistry: import("./FormFieldRegistry").default;
|
|
10
|
-
_formFields: import("@bpmn-io/form-js-viewer").FormFields;
|
|
11
|
-
create(attrs: any, applyDefaults?: boolean): any;
|
|
12
|
-
_ensureId(field: any): void;
|
|
13
|
-
_ensureKey(field: any, applyDefaults: any): void;
|
|
14
|
-
}
|
|
15
|
-
declare namespace FieldFactory {
|
|
16
|
-
const $inject: string[];
|
|
17
|
-
}
|
|
18
|
-
export default FieldFactory;
|
|
1
|
+
declare class FieldFactory {
|
|
2
|
+
/**
|
|
3
|
+
* @constructor
|
|
4
|
+
*
|
|
5
|
+
* @param { import('./FormFieldRegistry').default } formFieldRegistry
|
|
6
|
+
* @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
|
|
7
|
+
*/
|
|
8
|
+
constructor(formFieldRegistry: import('./FormFieldRegistry').default, formFields: import('@bpmn-io/form-js-viewer').FormFields);
|
|
9
|
+
_formFieldRegistry: import("./FormFieldRegistry").default;
|
|
10
|
+
_formFields: import("@bpmn-io/form-js-viewer").FormFields;
|
|
11
|
+
create(attrs: any, applyDefaults?: boolean): any;
|
|
12
|
+
_ensureId(field: any): void;
|
|
13
|
+
_ensureKey(field: any, applyDefaults: any): void;
|
|
14
|
+
}
|
|
15
|
+
declare namespace FieldFactory {
|
|
16
|
+
const $inject: string[];
|
|
17
|
+
}
|
|
18
|
+
export default FieldFactory;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export default class FormFieldRegistry extends BaseFieldRegistry {
|
|
2
|
-
/**
|
|
3
|
-
* Updates a form fields id.
|
|
4
|
-
*
|
|
5
|
-
* @param {Object} formField
|
|
6
|
-
* @param {string} newId
|
|
7
|
-
*/
|
|
8
|
-
updateId(formField: any, newId: string): void;
|
|
9
|
-
/**
|
|
10
|
-
* Validate the suitability of the given id and signals a problem
|
|
11
|
-
* with an exception.
|
|
12
|
-
*
|
|
13
|
-
* @param {string} id
|
|
14
|
-
*
|
|
15
|
-
* @throws {Error} if id is empty or already assigned
|
|
16
|
-
*/
|
|
17
|
-
_validateId(id: string): void;
|
|
18
|
-
}
|
|
19
|
-
import { FormFieldRegistry as BaseFieldRegistry } from "@bpmn-io/form-js-viewer";
|
|
1
|
+
export default class FormFieldRegistry extends BaseFieldRegistry {
|
|
2
|
+
/**
|
|
3
|
+
* Updates a form fields id.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} formField
|
|
6
|
+
* @param {string} newId
|
|
7
|
+
*/
|
|
8
|
+
updateId(formField: any, newId: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Validate the suitability of the given id and signals a problem
|
|
11
|
+
* with an exception.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} id
|
|
14
|
+
*
|
|
15
|
+
* @throws {Error} if id is empty or already assigned
|
|
16
|
+
*/
|
|
17
|
+
_validateId(id: string): void;
|
|
18
|
+
}
|
|
19
|
+
import { FormFieldRegistry as BaseFieldRegistry } from "@bpmn-io/form-js-viewer";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const __depends__: ({
|
|
3
|
-
importer: (string | typeof import("../import/Importer").default)[];
|
|
4
|
-
} | {
|
|
5
|
-
__init__: string[];
|
|
6
|
-
formFields: (string | typeof import("@bpmn-io/form-js-viewer").FormFields)[];
|
|
7
|
-
renderer: (string | typeof import("../render/Renderer").default)[];
|
|
8
|
-
})[];
|
|
9
|
-
const eventBus: any[];
|
|
10
|
-
const formFieldRegistry: (string | typeof FormFieldRegistry)[];
|
|
11
|
-
const fieldFactory: (string | typeof FieldFactory)[];
|
|
12
|
-
const debounce: (string | typeof DebounceFactory)[];
|
|
13
|
-
}
|
|
14
|
-
export default _default;
|
|
15
|
-
import FormFieldRegistry from "./FormFieldRegistry";
|
|
16
|
-
import FieldFactory from "./FieldFactory";
|
|
17
|
-
import DebounceFactory from "./Debounce";
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __depends__: ({
|
|
3
|
+
importer: (string | typeof import("../import/Importer").default)[];
|
|
4
|
+
} | {
|
|
5
|
+
__init__: string[];
|
|
6
|
+
formFields: (string | typeof import("@bpmn-io/form-js-viewer").FormFields)[];
|
|
7
|
+
renderer: (string | typeof import("../render/Renderer").default)[];
|
|
8
|
+
})[];
|
|
9
|
+
const eventBus: any[];
|
|
10
|
+
const formFieldRegistry: (string | typeof FormFieldRegistry)[];
|
|
11
|
+
const fieldFactory: (string | typeof FieldFactory)[];
|
|
12
|
+
const debounce: (string | typeof DebounceFactory)[];
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|
|
15
|
+
import FormFieldRegistry from "./FormFieldRegistry";
|
|
16
|
+
import FieldFactory from "./FieldFactory";
|
|
17
|
+
import DebounceFactory from "./Debounce";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare class FormEditorActions {
|
|
2
|
-
constructor(eventBus: any, injector: any);
|
|
3
|
-
_registerDefaultActions(injector: any): void;
|
|
4
|
-
}
|
|
5
|
-
declare namespace FormEditorActions {
|
|
6
|
-
const $inject: string[];
|
|
7
|
-
}
|
|
8
|
-
export default FormEditorActions;
|
|
1
|
+
declare class FormEditorActions {
|
|
2
|
+
constructor(eventBus: any, injector: any);
|
|
3
|
+
_registerDefaultActions(injector: any): void;
|
|
4
|
+
}
|
|
5
|
+
declare namespace FormEditorActions {
|
|
6
|
+
const $inject: string[];
|
|
7
|
+
}
|
|
8
|
+
export default FormEditorActions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const __depends__: any[];
|
|
3
|
-
const editorActions: (string | typeof FormEditorActions)[];
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
import FormEditorActions from "./FormEditorActions";
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __depends__: any[];
|
|
3
|
+
const editorActions: (string | typeof FormEditorActions)[];
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
import FormEditorActions from "./FormEditorActions";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare class FormEditorKeyboardBindings {
|
|
2
|
-
constructor(eventBus: any, keyboard: any);
|
|
3
|
-
registerBindings(keyboard: any, editorActions: any): void;
|
|
4
|
-
}
|
|
5
|
-
declare namespace FormEditorKeyboardBindings {
|
|
6
|
-
const $inject: string[];
|
|
7
|
-
}
|
|
8
|
-
export default FormEditorKeyboardBindings;
|
|
1
|
+
declare class FormEditorKeyboardBindings {
|
|
2
|
+
constructor(eventBus: any, keyboard: any);
|
|
3
|
+
registerBindings(keyboard: any, editorActions: any): void;
|
|
4
|
+
}
|
|
5
|
+
declare namespace FormEditorKeyboardBindings {
|
|
6
|
+
const $inject: string[];
|
|
7
|
+
}
|
|
8
|
+
export default FormEditorKeyboardBindings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const __depends__: any[];
|
|
3
|
-
const __init__: string[];
|
|
4
|
-
const keyboardBindings: (string | typeof FormEditorKeyboardBindings)[];
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
import FormEditorKeyboardBindings from "./FormEditorKeyboardBindings";
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __depends__: any[];
|
|
3
|
+
const __init__: string[];
|
|
4
|
+
const keyboardBindings: (string | typeof FormEditorKeyboardBindings)[];
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
import FormEditorKeyboardBindings from "./FormEditorKeyboardBindings";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
declare class Modeling {
|
|
2
|
-
constructor(commandStack: any, eventBus: any, formEditor: any, formFieldRegistry: any, fieldFactory: any);
|
|
3
|
-
_commandStack: any;
|
|
4
|
-
_formEditor: any;
|
|
5
|
-
_formFieldRegistry: any;
|
|
6
|
-
_fieldFactory: any;
|
|
7
|
-
registerHandlers(): void;
|
|
8
|
-
getHandlers(): {
|
|
9
|
-
'formField.add': typeof AddFormFieldHandler;
|
|
10
|
-
'formField.edit': typeof EditFormFieldHandler;
|
|
11
|
-
'formField.move': typeof MoveFormFieldHandler;
|
|
12
|
-
'formField.remove': typeof RemoveFormFieldHandler;
|
|
13
|
-
'id.updateClaim': typeof UpdateIdClaimHandler;
|
|
14
|
-
'key.updateClaim': typeof UpdateKeyClaimHandler;
|
|
15
|
-
};
|
|
16
|
-
addFormField(attrs: any, targetFormField: any, targetIndex: any): any;
|
|
17
|
-
editFormField(formField: any, properties: any, value: any): void;
|
|
18
|
-
moveFormField(formField: any, sourceFormField: any, targetFormField: any, sourceIndex: any, targetIndex: any): void;
|
|
19
|
-
removeFormField(formField: any, sourceFormField: any, sourceIndex: any): void;
|
|
20
|
-
claimId(formField: any, id: any): void;
|
|
21
|
-
unclaimId(formField: any, id: any): void;
|
|
22
|
-
claimKey(formField: any, key: any): void;
|
|
23
|
-
unclaimKey(formField: any, key: any): void;
|
|
24
|
-
}
|
|
25
|
-
declare namespace Modeling {
|
|
26
|
-
const $inject: string[];
|
|
27
|
-
}
|
|
28
|
-
export default Modeling;
|
|
29
|
-
import AddFormFieldHandler from "./cmd/AddFormFieldHandler";
|
|
30
|
-
import EditFormFieldHandler from "./cmd/EditFormFieldHandler";
|
|
31
|
-
import MoveFormFieldHandler from "./cmd/MoveFormFieldHandler";
|
|
32
|
-
import RemoveFormFieldHandler from "./cmd/RemoveFormFieldHandler";
|
|
33
|
-
import UpdateIdClaimHandler from "./cmd/UpdateIdClaimHandler";
|
|
34
|
-
import UpdateKeyClaimHandler from "./cmd/UpdateKeyClaimHandler";
|
|
1
|
+
declare class Modeling {
|
|
2
|
+
constructor(commandStack: any, eventBus: any, formEditor: any, formFieldRegistry: any, fieldFactory: any);
|
|
3
|
+
_commandStack: any;
|
|
4
|
+
_formEditor: any;
|
|
5
|
+
_formFieldRegistry: any;
|
|
6
|
+
_fieldFactory: any;
|
|
7
|
+
registerHandlers(): void;
|
|
8
|
+
getHandlers(): {
|
|
9
|
+
'formField.add': typeof AddFormFieldHandler;
|
|
10
|
+
'formField.edit': typeof EditFormFieldHandler;
|
|
11
|
+
'formField.move': typeof MoveFormFieldHandler;
|
|
12
|
+
'formField.remove': typeof RemoveFormFieldHandler;
|
|
13
|
+
'id.updateClaim': typeof UpdateIdClaimHandler;
|
|
14
|
+
'key.updateClaim': typeof UpdateKeyClaimHandler;
|
|
15
|
+
};
|
|
16
|
+
addFormField(attrs: any, targetFormField: any, targetIndex: any): any;
|
|
17
|
+
editFormField(formField: any, properties: any, value: any): void;
|
|
18
|
+
moveFormField(formField: any, sourceFormField: any, targetFormField: any, sourceIndex: any, targetIndex: any): void;
|
|
19
|
+
removeFormField(formField: any, sourceFormField: any, sourceIndex: any): void;
|
|
20
|
+
claimId(formField: any, id: any): void;
|
|
21
|
+
unclaimId(formField: any, id: any): void;
|
|
22
|
+
claimKey(formField: any, key: any): void;
|
|
23
|
+
unclaimKey(formField: any, key: any): void;
|
|
24
|
+
}
|
|
25
|
+
declare namespace Modeling {
|
|
26
|
+
const $inject: string[];
|
|
27
|
+
}
|
|
28
|
+
export default Modeling;
|
|
29
|
+
import AddFormFieldHandler from "./cmd/AddFormFieldHandler";
|
|
30
|
+
import EditFormFieldHandler from "./cmd/EditFormFieldHandler";
|
|
31
|
+
import MoveFormFieldHandler from "./cmd/MoveFormFieldHandler";
|
|
32
|
+
import RemoveFormFieldHandler from "./cmd/RemoveFormFieldHandler";
|
|
33
|
+
import UpdateIdClaimHandler from "./cmd/UpdateIdClaimHandler";
|
|
34
|
+
import UpdateKeyClaimHandler from "./cmd/UpdateKeyClaimHandler";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare class IdBehavior {
|
|
2
|
-
constructor(eventBus: any, modeling: any);
|
|
3
|
-
}
|
|
4
|
-
declare namespace IdBehavior {
|
|
5
|
-
const $inject: string[];
|
|
6
|
-
}
|
|
7
|
-
export default IdBehavior;
|
|
1
|
+
declare class IdBehavior {
|
|
2
|
+
constructor(eventBus: any, modeling: any);
|
|
3
|
+
}
|
|
4
|
+
declare namespace IdBehavior {
|
|
5
|
+
const $inject: string[];
|
|
6
|
+
}
|
|
7
|
+
export default IdBehavior;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare class KeyBehavior {
|
|
2
|
-
constructor(eventBus: any, modeling: any);
|
|
3
|
-
}
|
|
4
|
-
declare namespace KeyBehavior {
|
|
5
|
-
const $inject: string[];
|
|
6
|
-
}
|
|
7
|
-
export default KeyBehavior;
|
|
1
|
+
declare class KeyBehavior {
|
|
2
|
+
constructor(eventBus: any, modeling: any);
|
|
3
|
+
}
|
|
4
|
+
declare namespace KeyBehavior {
|
|
5
|
+
const $inject: string[];
|
|
6
|
+
}
|
|
7
|
+
export default KeyBehavior;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const __init__: string[];
|
|
3
|
-
const idBehavior: (string | typeof IdBehavior)[];
|
|
4
|
-
const keyBehavior: (string | typeof KeyBehavior)[];
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
import IdBehavior from "./IdBehavior";
|
|
8
|
-
import KeyBehavior from "./KeyBehavior";
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __init__: string[];
|
|
3
|
+
const idBehavior: (string | typeof IdBehavior)[];
|
|
4
|
+
const keyBehavior: (string | typeof KeyBehavior)[];
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
import IdBehavior from "./IdBehavior";
|
|
8
|
+
import KeyBehavior from "./KeyBehavior";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
declare class AddFormFieldHandler {
|
|
2
|
-
/**
|
|
3
|
-
* @constructor
|
|
4
|
-
* @param { import('../../../FormEditor').default } formEditor
|
|
5
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
6
|
-
*/
|
|
7
|
-
constructor(formEditor: import('../../../FormEditor').default, formFieldRegistry: import('../../../core/FormFieldRegistry').default);
|
|
8
|
-
_formEditor: import("../../../FormEditor").default;
|
|
9
|
-
_formFieldRegistry: import("../../../core/FormFieldRegistry").default;
|
|
10
|
-
execute(context: any): void;
|
|
11
|
-
revert(context: any): void;
|
|
12
|
-
}
|
|
13
|
-
declare namespace AddFormFieldHandler {
|
|
14
|
-
const $inject: string[];
|
|
15
|
-
}
|
|
16
|
-
export default AddFormFieldHandler;
|
|
1
|
+
declare class AddFormFieldHandler {
|
|
2
|
+
/**
|
|
3
|
+
* @constructor
|
|
4
|
+
* @param { import('../../../FormEditor').default } formEditor
|
|
5
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
6
|
+
*/
|
|
7
|
+
constructor(formEditor: import('../../../FormEditor').default, formFieldRegistry: import('../../../core/FormFieldRegistry').default);
|
|
8
|
+
_formEditor: import("../../../FormEditor").default;
|
|
9
|
+
_formFieldRegistry: import("../../../core/FormFieldRegistry").default;
|
|
10
|
+
execute(context: any): void;
|
|
11
|
+
revert(context: any): void;
|
|
12
|
+
}
|
|
13
|
+
declare namespace AddFormFieldHandler {
|
|
14
|
+
const $inject: string[];
|
|
15
|
+
}
|
|
16
|
+
export default AddFormFieldHandler;
|