@bpmn-io/form-js-editor 0.8.0 → 0.9.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.
Files changed (80) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +118 -118
  3. package/dist/assets/form-js-editor.css +272 -267
  4. package/dist/index.cjs +199 -199
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.es.js +199 -199
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/types/FormEditor.d.ts +155 -155
  9. package/dist/types/core/Debounce.d.ts +10 -10
  10. package/dist/types/core/EventBus.d.ts +1 -1
  11. package/dist/types/core/FieldFactory.d.ts +18 -18
  12. package/dist/types/core/FormFieldRegistry.d.ts +19 -19
  13. package/dist/types/core/index.d.ts +17 -17
  14. package/dist/types/features/editor-actions/FormEditorActions.d.ts +8 -8
  15. package/dist/types/features/editor-actions/index.d.ts +6 -6
  16. package/dist/types/features/keyboard/FormEditorKeyboardBindings.d.ts +8 -8
  17. package/dist/types/features/keyboard/index.d.ts +7 -7
  18. package/dist/types/features/modeling/Modeling.d.ts +34 -34
  19. package/dist/types/features/modeling/behavior/IdBehavior.d.ts +7 -7
  20. package/dist/types/features/modeling/behavior/KeyBehavior.d.ts +7 -7
  21. package/dist/types/features/modeling/behavior/index.d.ts +8 -8
  22. package/dist/types/features/modeling/cmd/AddFormFieldHandler.d.ts +16 -16
  23. package/dist/types/features/modeling/cmd/EditFormFieldHandler.d.ts +16 -16
  24. package/dist/types/features/modeling/cmd/MoveFormFieldHandler.d.ts +17 -17
  25. package/dist/types/features/modeling/cmd/RemoveFormFieldHandler.d.ts +16 -16
  26. package/dist/types/features/modeling/cmd/UpdateIdClaimHandler.d.ts +14 -14
  27. package/dist/types/features/modeling/cmd/UpdateKeyClaimHandler.d.ts +14 -14
  28. package/dist/types/features/modeling/cmd/Util.d.ts +4 -4
  29. package/dist/types/features/modeling/index.d.ts +7 -7
  30. package/dist/types/features/palette/PaletteRenderer.d.ts +33 -33
  31. package/dist/types/features/palette/components/Palette.d.ts +1 -1
  32. package/dist/types/features/palette/index.d.ts +5 -5
  33. package/dist/types/features/properties-panel/PropertiesPanel.d.ts +1 -1
  34. package/dist/types/features/properties-panel/PropertiesPanelHeaderProvider.d.ts +5 -5
  35. package/dist/types/features/properties-panel/PropertiesPanelPlaceholderProvider.d.ts +8 -8
  36. package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +37 -37
  37. package/dist/types/features/properties-panel/Util.d.ts +7 -7
  38. package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +11 -11
  39. package/dist/types/features/properties-panel/context/index.d.ts +1 -1
  40. package/dist/types/features/properties-panel/entries/ActionEntry.d.ts +9 -9
  41. package/dist/types/features/properties-panel/entries/ColumnsEntry.d.ts +9 -9
  42. package/dist/types/features/properties-panel/entries/CustomValueEntry.d.ts +11 -11
  43. package/dist/types/features/properties-panel/entries/DefaultValueEntry.d.ts +1 -1
  44. package/dist/types/features/properties-panel/entries/DescriptionEntry.d.ts +9 -9
  45. package/dist/types/features/properties-panel/entries/DisabledEntry.d.ts +9 -9
  46. package/dist/types/features/properties-panel/entries/IdEntry.d.ts +9 -9
  47. package/dist/types/features/properties-panel/entries/InputKeyValuesSourceEntry.d.ts +11 -11
  48. package/dist/types/features/properties-panel/entries/KeyEntry.d.ts +9 -9
  49. package/dist/types/features/properties-panel/entries/LabelEntry.d.ts +9 -9
  50. package/dist/types/features/properties-panel/entries/StaticValuesSourceEntry.d.ts +4 -4
  51. package/dist/types/features/properties-panel/entries/TextEntry.d.ts +9 -9
  52. package/dist/types/features/properties-panel/entries/ValueEntry.d.ts +11 -11
  53. package/dist/types/features/properties-panel/entries/ValuesSourceSelectEntry.d.ts +9 -9
  54. package/dist/types/features/properties-panel/entries/ValuesSourceUtil.d.ts +15 -15
  55. package/dist/types/features/properties-panel/entries/index.d.ts +14 -14
  56. package/dist/types/features/properties-panel/groups/CustomValuesGroup.d.ts +31 -31
  57. package/dist/types/features/properties-panel/groups/GeneralGroup.d.ts +5 -5
  58. package/dist/types/features/properties-panel/groups/ValidationGroup.d.ts +14 -14
  59. package/dist/types/features/properties-panel/groups/ValuesGroups.d.ts +1 -1
  60. package/dist/types/features/properties-panel/groups/index.d.ts +4 -4
  61. package/dist/types/features/properties-panel/hooks/index.d.ts +1 -1
  62. package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +1 -1
  63. package/dist/types/features/properties-panel/icons/index.d.ts +1 -1
  64. package/dist/types/features/properties-panel/index.d.ts +6 -6
  65. package/dist/types/features/selection/Selection.d.ts +14 -14
  66. package/dist/types/features/selection/SelectionBehavior.d.ts +7 -7
  67. package/dist/types/features/selection/index.d.ts +8 -8
  68. package/dist/types/import/Importer.d.ts +51 -51
  69. package/dist/types/import/index.d.ts +5 -5
  70. package/dist/types/index.d.ts +15 -15
  71. package/dist/types/render/Renderer.d.ts +26 -26
  72. package/dist/types/render/components/FormEditor.d.ts +1 -1
  73. package/dist/types/render/components/icons/index.d.ts +13 -13
  74. package/dist/types/render/context/DragAndDropContext.d.ts +4 -4
  75. package/dist/types/render/context/FormEditorContext.d.ts +11 -11
  76. package/dist/types/render/context/index.d.ts +2 -2
  77. package/dist/types/render/hooks/useService.d.ts +1 -1
  78. package/dist/types/render/index.d.ts +8 -8
  79. package/dist/types/types.d.ts +28 -28
  80. package/package.json +3 -3
@@ -1,155 +1,155 @@
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
- * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
16
- * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
17
- * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
18
- */
19
- /**
20
- * The form editor.
21
- */
22
- export default class FormEditor {
23
- /**
24
- * @constructor
25
- * @param {FormEditorOptions} options
26
- */
27
- constructor(options?: FormEditorOptions);
28
- /**
29
- * @public
30
- * @type {OnEventType}
31
- */
32
- public on: OnEventType;
33
- /**
34
- * @public
35
- * @type {String}
36
- */
37
- public _id: string;
38
- /**
39
- * @private
40
- * @type {Element}
41
- */
42
- private _container;
43
- /**
44
- * @private
45
- * @type {any}
46
- */
47
- private exporter;
48
- /**
49
- * @private
50
- * @type {State}
51
- */
52
- private _state;
53
- get: <T>(name: string, strict?: boolean) => T;
54
- invoke: <T_1>(func: (...args: unknown[]) => T_1, context: unknown, locals: import("didi").LocalsMap) => T_1;
55
- clear(): void;
56
- destroy(): void;
57
- /**
58
- * @param {Schema} schema
59
- *
60
- * @return {Promise<{ warnings: Array<any> }>}
61
- */
62
- importSchema(schema: Schema): Promise<{
63
- warnings: Array<any>;
64
- }>;
65
- /**
66
- * @returns {Schema}
67
- */
68
- saveSchema(): Schema;
69
- /**
70
- * @returns {Schema}
71
- */
72
- getSchema(): Schema;
73
- /**
74
- * @param {Element|string} parentNode
75
- */
76
- attachTo(parentNode: Element | string): void;
77
- detach(): void;
78
- /**
79
- * @internal
80
- *
81
- * @param {boolean} [emit]
82
- */
83
- _detach(emit?: boolean): void;
84
- /**
85
- * @param {any} property
86
- * @param {any} value
87
- */
88
- setProperty(property: any, value: any): void;
89
- /**
90
- * @param {string} type
91
- * @param {Function} handler
92
- */
93
- off(type: string, handler: Function): void;
94
- /**
95
- * @internal
96
- *
97
- * @param {FormEditorOptions} options
98
- * @param {Element} container
99
- *
100
- * @returns {Injector}
101
- */
102
- _createInjector(options: FormEditorOptions, container: Element): Injector;
103
- /**
104
- * @internal
105
- */
106
- _emit(type: any, data: any): void;
107
- /**
108
- * @internal
109
- */
110
- _getState(): State;
111
- /**
112
- * @internal
113
- */
114
- _setState(state: any): void;
115
- /**
116
- * @internal
117
- */
118
- _getModules(): ({
119
- __depends__: any[];
120
- __init__: string[];
121
- modeling: (string | typeof import("./features/modeling/Modeling").default)[];
122
- } | {
123
- __depends__: any[];
124
- editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").default)[];
125
- } | {
126
- __depends__: any[];
127
- __init__: string[];
128
- keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").default)[];
129
- } | {
130
- __init__: string[];
131
- selection: (string | typeof import("./features/selection/Selection").default)[];
132
- selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
133
- } | {
134
- palette: (string | typeof import("./features/palette/PaletteRenderer").default)[];
135
- } | {
136
- __init__: string[];
137
- propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelRenderer").default)[];
138
- })[];
139
- /**
140
- * @internal
141
- */
142
- _onEvent(type: any, priority: any, handler: any): void;
143
- }
144
- export type Injector = import('./types').Injector;
145
- export type Module = import('./types').Module;
146
- export type Schema = import('./types').Schema;
147
- export type FormEditorOptions = import('./types').FormEditorOptions;
148
- export type FormEditorProperties = import('./types').FormEditorProperties;
149
- export type State = {
150
- properties: FormEditorProperties;
151
- schema: Schema;
152
- };
153
- export type OnEventWithPriority = OnEventWithPriority;
154
- export type OnEventWithOutPriority = OnEventWithOutPriority;
155
- export type OnEventType = OnEventWithPriority & OnEventWithOutPriority;
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
+ * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
16
+ * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
17
+ * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
18
+ */
19
+ /**
20
+ * The form editor.
21
+ */
22
+ export default class FormEditor {
23
+ /**
24
+ * @constructor
25
+ * @param {FormEditorOptions} options
26
+ */
27
+ constructor(options?: FormEditorOptions);
28
+ /**
29
+ * @public
30
+ * @type {OnEventType}
31
+ */
32
+ public on: OnEventType;
33
+ /**
34
+ * @public
35
+ * @type {String}
36
+ */
37
+ public _id: string;
38
+ /**
39
+ * @private
40
+ * @type {Element}
41
+ */
42
+ private _container;
43
+ /**
44
+ * @private
45
+ * @type {any}
46
+ */
47
+ private exporter;
48
+ /**
49
+ * @private
50
+ * @type {State}
51
+ */
52
+ private _state;
53
+ get: <T>(name: string, strict?: boolean) => T;
54
+ invoke: <T_1>(func: (...args: unknown[]) => T_1, context: unknown, locals: import("didi").LocalsMap) => T_1;
55
+ clear(): void;
56
+ destroy(): void;
57
+ /**
58
+ * @param {Schema} schema
59
+ *
60
+ * @return {Promise<{ warnings: Array<any> }>}
61
+ */
62
+ importSchema(schema: Schema): Promise<{
63
+ warnings: Array<any>;
64
+ }>;
65
+ /**
66
+ * @returns {Schema}
67
+ */
68
+ saveSchema(): Schema;
69
+ /**
70
+ * @returns {Schema}
71
+ */
72
+ getSchema(): Schema;
73
+ /**
74
+ * @param {Element|string} parentNode
75
+ */
76
+ attachTo(parentNode: Element | string): void;
77
+ detach(): void;
78
+ /**
79
+ * @internal
80
+ *
81
+ * @param {boolean} [emit]
82
+ */
83
+ _detach(emit?: boolean): void;
84
+ /**
85
+ * @param {any} property
86
+ * @param {any} value
87
+ */
88
+ setProperty(property: any, value: any): void;
89
+ /**
90
+ * @param {string} type
91
+ * @param {Function} handler
92
+ */
93
+ off(type: string, handler: Function): void;
94
+ /**
95
+ * @internal
96
+ *
97
+ * @param {FormEditorOptions} options
98
+ * @param {Element} container
99
+ *
100
+ * @returns {Injector}
101
+ */
102
+ _createInjector(options: FormEditorOptions, container: Element): Injector;
103
+ /**
104
+ * @internal
105
+ */
106
+ _emit(type: any, data: any): void;
107
+ /**
108
+ * @internal
109
+ */
110
+ _getState(): State;
111
+ /**
112
+ * @internal
113
+ */
114
+ _setState(state: any): void;
115
+ /**
116
+ * @internal
117
+ */
118
+ _getModules(): ({
119
+ __depends__: any[];
120
+ __init__: string[];
121
+ modeling: (string | typeof import("./features/modeling/Modeling").default)[];
122
+ } | {
123
+ __depends__: any[];
124
+ editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").default)[];
125
+ } | {
126
+ __depends__: any[];
127
+ __init__: string[];
128
+ keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").default)[];
129
+ } | {
130
+ __init__: string[];
131
+ selection: (string | typeof import("./features/selection/Selection").default)[];
132
+ selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
133
+ } | {
134
+ palette: (string | typeof import("./features/palette/PaletteRenderer").default)[];
135
+ } | {
136
+ __init__: string[];
137
+ propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelRenderer").default)[];
138
+ })[];
139
+ /**
140
+ * @internal
141
+ */
142
+ _onEvent(type: any, priority: any, handler: any): void;
143
+ }
144
+ export type Injector = import('./types').Injector;
145
+ export type Module = import('./types').Module;
146
+ export type Schema = import('./types').Schema;
147
+ export type FormEditorOptions = import('./types').FormEditorOptions;
148
+ export type FormEditorProperties = import('./types').FormEditorProperties;
149
+ export type State = {
150
+ properties: FormEditorProperties;
151
+ schema: Schema;
152
+ };
153
+ export type OnEventWithPriority = OnEventWithPriority;
154
+ export type OnEventWithOutPriority = OnEventWithOutPriority;
155
+ export type OnEventType = OnEventWithPriority & OnEventWithOutPriority;
@@ -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";